no-OS
|
Structure containing the init parameters needed by the PWM generator. More...
#include <no_os_pwm.h>
Public Attributes | |
uint32_t | id |
uint32_t | period_ns |
uint32_t | duty_cycle_ns |
uint32_t | phase_ns |
enum no_os_pwm_polarity | polarity |
struct no_os_gpio_init_param * | pwm_gpio |
uint32_t | irq_id |
void(* | pwm_callback )(void *arg) |
const struct no_os_pwm_platform_ops * | platform_ops |
void * | extra |
Structure containing the init parameters needed by the PWM generator.
uint32_t no_os_pwm_init_param::duty_cycle_ns |
PWM generator duty cycle
void* no_os_pwm_init_param::extra |
PWM extra parameters (device specific)
uint32_t no_os_pwm_init_param::id |
Pwm id (Ex. Pin number, timer_id)
uint32_t no_os_pwm_init_param::irq_id |
uint32_t no_os_pwm_init_param::period_ns |
PWM generator period
uint32_t no_os_pwm_init_param::phase_ns |
PWM generator phase
const struct no_os_pwm_platform_ops* no_os_pwm_init_param::platform_ops |
PWM platform specific functions
enum no_os_pwm_polarity no_os_pwm_init_param::polarity |
PWM generator polarity
void(* no_os_pwm_init_param::pwm_callback) (void *arg) |
PWM callback
struct no_os_gpio_init_param* no_os_pwm_init_param::pwm_gpio |
PWM gpio pin init param