rusEFI
The most advanced open source ECU
|
Type of a PWM driver configuration structure. More...
#include <hal_pwm_lld.h>
Data Fields | |
uint32_t | frequency |
Timer clock in Hz. | |
pwmcnt_t | period |
PWM period in ticks. | |
pwmcallback_t | callback |
Periodic callback pointer. | |
PWMChannelConfig | channels [PWM_CHANNELS] |
Channels configurations. | |
uint32_t | cr2 |
TIM CR2 register initialization data. | |
uint32_t | dier |
TIM DIER register initialization data. | |
Type of a PWM driver configuration structure.
Definition at line 158 of file hal_pwm_lld.h.
pwmcallback_t PWMConfig::callback |
Periodic callback pointer.
NULL
then the callback is disabled. Definition at line 176 of file hal_pwm_lld.h.
Referenced by pwm_lld_serve_interrupt().
PWMChannelConfig PWMConfig::channels[PWM_CHANNELS] |
Channels configurations.
Definition at line 180 of file hal_pwm_lld.h.
Referenced by pwm_lld_enable_channel(), and pwm_lld_serve_interrupt().
uint32_t PWMConfig::cr2 |
TIM CR2 register initialization data.
Definition at line 187 of file hal_pwm_lld.h.
uint32_t PWMConfig::dier |
TIM DIER register initialization data.
Definition at line 193 of file hal_pwm_lld.h.
uint32_t PWMConfig::frequency |
Timer clock in Hz.
Definition at line 164 of file hal_pwm_lld.h.
Referenced by initWS2812(), and pwm_lld_start().
pwmcnt_t PWMConfig::period |
PWM period in ticks.
Definition at line 170 of file hal_pwm_lld.h.