no-OS
aducm3029_pwm.h
Go to the documentation of this file.
1 /***************************************************************************/
33 #ifndef ADUCM3029_PWM_H_
34 #define ADUCM3029_PWM_H_
35 
36 /******************************************************************************/
37 /***************************** Include Files **********************************/
38 /******************************************************************************/
39 #include "no_os_pwm.h"
40 
41 /******************************************************************************/
42 /********************** Macros and Constants Definitions **********************/
43 /******************************************************************************/
44 
45 /******************************************************************************/
46 /*************************** Types Declarations *******************************/
47 /******************************************************************************/
51 extern const struct no_os_pwm_platform_ops aducm3029_pwm_ops;
52 
53 #endif // ADUCM3029_PWM_H_
aducm3029_pwm_ops
const struct no_os_pwm_platform_ops aducm3029_pwm_ops
ADUCM3029 platform specific PWM platform ops structure.
Definition: aducm3029_pwm.c:302
NO_OS_NS_PER_SEC
#define NO_OS_NS_PER_SEC
Definition: aducm3029_pwm.c:41
aducm3029_pwm_get_polarity
int32_t aducm3029_pwm_get_polarity(struct no_os_pwm_desc *desc, enum no_os_pwm_polarity *polarity)
Definition: aducm3029_pwm.c:288
no_os_alloc.h
no_os_pwm_desc::duty_cycle_ns
uint32_t duty_cycle_ns
Definition: no_os_pwm.h:101
no_os_pwm_init_param
Structure containing the init parameters needed by the PWM generator.
Definition: no_os_pwm.h:66
no_os_pwm_desc::id
uint32_t id
Definition: no_os_pwm.h:97
NO_OS_IS_ERR_VALUE
#define NO_OS_IS_ERR_VALUE(x)
Definition: no_os_error.h:50
no_os_pwm_init_param::period_ns
uint32_t period_ns
Definition: no_os_pwm.h:70
aducm3029_pwm_set_polarity
int32_t aducm3029_pwm_set_polarity(struct no_os_pwm_desc *desc, enum no_os_pwm_polarity polarity)
Definition: aducm3029_pwm.c:276
aducm3029_pwm_ops
const struct no_os_pwm_platform_ops aducm3029_pwm_ops
ADUCM3029 specific PWM platform ops structure.
Definition: aducm3029_pwm.c:302
no_os_pwm_init_param::id
uint32_t id
Definition: no_os_pwm.h:68
no_os_calloc
void * no_os_calloc(size_t nitems, size_t size)
Allocate memory and return a pointer to it, set memory to 0.
Definition: chibios_alloc.c:54
no_os_pwm_polarity
no_os_pwm_polarity
Possible polarities of the PWM signal.
Definition: no_os_pwm.h:55
no_os_pwm_desc::period_ns
uint32_t period_ns
Definition: no_os_pwm.h:99
no_os_error.h
Error codes definition.
no_os_pwm_init_param::polarity
enum no_os_pwm_polarity polarity
Definition: no_os_pwm.h:76
no_os_pwm_platform_ops::pwm_ops_init
int32_t(* pwm_ops_init)(struct no_os_pwm_desc **, const struct no_os_pwm_init_param *)
Definition: no_os_pwm.h:127
no_os_pwm_desc::polarity
enum no_os_pwm_polarity polarity
Definition: no_os_pwm.h:105
aducm3029_pwm_set_duty_cycle
int32_t aducm3029_pwm_set_duty_cycle(struct no_os_pwm_desc *desc, uint32_t duty_cycle_ns)
Definition: aducm3029_pwm.c:252
aducm3029_pwm_get_duty_cycle
int32_t aducm3029_pwm_get_duty_cycle(struct no_os_pwm_desc *desc, uint32_t *duty_cycle_ns)
Definition: aducm3029_pwm.c:264
aducm3029_pwm_remove
int32_t aducm3029_pwm_remove(struct no_os_pwm_desc *desc)
Definition: aducm3029_pwm.c:186
NO_OS_PWM_POLARITY_HIGH
@ NO_OS_PWM_POLARITY_HIGH
Definition: no_os_pwm.h:57
no_os_pwm_desc
Structure representing an PWM generator device.
Definition: no_os_pwm.h:93
no_os_pwm_init_param::duty_cycle_ns
uint32_t duty_cycle_ns
Definition: no_os_pwm.h:72
no_os_pwm_platform_ops
Structure holding PWM function pointers that point to the platform specific function.
Definition: no_os_pwm.h:125
aducm3029_pwm_disable
int32_t aducm3029_pwm_disable(struct no_os_pwm_desc *desc)
Definition: aducm3029_pwm.c:213
no_os_pwm.h
Header file of PWM Interface.
no_os_pwm_desc::extra
void * extra
Definition: no_os_pwm.h:117
no_os_free
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
NULL
#define NULL
Definition: wrapper.h:64
aducm3029_pwm_set_period
int32_t aducm3029_pwm_set_period(struct no_os_pwm_desc *desc, uint32_t period_ns)
Definition: aducm3029_pwm.c:228
aducm3029_pwm_enable
int32_t aducm3029_pwm_enable(struct no_os_pwm_desc *desc)
Definition: aducm3029_pwm.c:198
aducm3029_pwm_get_period
int32_t aducm3029_pwm_get_period(struct no_os_pwm_desc *desc, uint32_t *period_ns)
Definition: aducm3029_pwm.c:240
aducm3029_pwm_init
int32_t aducm3029_pwm_init(struct no_os_pwm_desc **desc, const struct no_os_pwm_init_param *param)
Definition: aducm3029_pwm.c:146