Go to the documentation of this file.
33 #ifndef ADUCM3029_PWM_H_
34 #define ADUCM3029_PWM_H_
53 #endif // ADUCM3029_PWM_H_
const struct no_os_pwm_platform_ops aducm3029_pwm_ops
ADUCM3029 platform specific PWM platform ops structure.
Definition: aducm3029_pwm.c:302
#define NO_OS_NS_PER_SEC
Definition: aducm3029_pwm.c:41
int32_t aducm3029_pwm_get_polarity(struct no_os_pwm_desc *desc, enum no_os_pwm_polarity *polarity)
Definition: aducm3029_pwm.c:288
uint32_t duty_cycle_ns
Definition: no_os_pwm.h:101
Structure containing the init parameters needed by the PWM generator.
Definition: no_os_pwm.h:66
uint32_t id
Definition: no_os_pwm.h:97
#define NO_OS_IS_ERR_VALUE(x)
Definition: no_os_error.h:50
uint32_t period_ns
Definition: no_os_pwm.h:70
int32_t aducm3029_pwm_set_polarity(struct no_os_pwm_desc *desc, enum no_os_pwm_polarity polarity)
Definition: aducm3029_pwm.c:276
const struct no_os_pwm_platform_ops aducm3029_pwm_ops
ADUCM3029 specific PWM platform ops structure.
Definition: aducm3029_pwm.c:302
uint32_t id
Definition: no_os_pwm.h:68
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
Possible polarities of the PWM signal.
Definition: no_os_pwm.h:55
uint32_t period_ns
Definition: no_os_pwm.h:99
enum no_os_pwm_polarity polarity
Definition: no_os_pwm.h:76
enum no_os_pwm_polarity polarity
Definition: no_os_pwm.h:105
int32_t aducm3029_pwm_set_duty_cycle(struct no_os_pwm_desc *desc, uint32_t duty_cycle_ns)
Definition: aducm3029_pwm.c:252
int32_t aducm3029_pwm_get_duty_cycle(struct no_os_pwm_desc *desc, uint32_t *duty_cycle_ns)
Definition: aducm3029_pwm.c:264
int32_t aducm3029_pwm_remove(struct no_os_pwm_desc *desc)
Definition: aducm3029_pwm.c:186
@ NO_OS_PWM_POLARITY_HIGH
Definition: no_os_pwm.h:57
Structure representing an PWM generator device.
Definition: no_os_pwm.h:93
uint32_t duty_cycle_ns
Definition: no_os_pwm.h:72
int32_t aducm3029_pwm_disable(struct no_os_pwm_desc *desc)
Definition: aducm3029_pwm.c:213
Header file of PWM Interface.
void * extra
Definition: no_os_pwm.h:117
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
#define NULL
Definition: wrapper.h:64
int32_t aducm3029_pwm_set_period(struct no_os_pwm_desc *desc, uint32_t period_ns)
Definition: aducm3029_pwm.c:228
int32_t aducm3029_pwm_enable(struct no_os_pwm_desc *desc)
Definition: aducm3029_pwm.c:198
int32_t aducm3029_pwm_get_period(struct no_os_pwm_desc *desc, uint32_t *period_ns)
Definition: aducm3029_pwm.c:240
int32_t aducm3029_pwm_init(struct no_os_pwm_desc **desc, const struct no_os_pwm_init_param *param)
Definition: aducm3029_pwm.c:146