no-OS
|
Structure representing an PWM generator device. More...
#include <no_os_pwm.h>
Public Attributes | |
void * | mutex |
uint32_t | id |
uint32_t | period_ns |
uint32_t | duty_cycle_ns |
uint32_t | phase_ns |
enum no_os_pwm_polarity | polarity |
bool | enabled |
struct no_os_gpio_desc * | pwm_gpio |
uint32_t | irq_id |
void(* | pwm_callback )(void *arg) |
const struct no_os_pwm_platform_ops * | platform_ops |
void * | extra |
Structure representing an PWM generator device.
uint32_t no_os_pwm_desc::duty_cycle_ns |
PWM generator duty cycle
bool no_os_pwm_desc::enabled |
PWM generator enabled
void* no_os_pwm_desc::extra |
PWM extra parameters (device specific)
uint32_t no_os_pwm_desc::id |
Pwm id
uint32_t no_os_pwm_desc::irq_id |
void* no_os_pwm_desc::mutex |
PWM mutex
uint32_t no_os_pwm_desc::period_ns |
PWM generator period
uint32_t no_os_pwm_desc::phase_ns |
PWM generator phase
const struct no_os_pwm_platform_ops* no_os_pwm_desc::platform_ops |
PWM platform specific functions
enum no_os_pwm_polarity no_os_pwm_desc::polarity |
PWM generator polarity
void(* no_os_pwm_desc::pwm_callback) (void *arg) |
PWM callback
struct no_os_gpio_desc* no_os_pwm_desc::pwm_gpio |
PWM gpio pin instance