PWM init Structure definition. More...
#include <gr55xx_hal_pwm.h>
Data Fields | |
uint32_t | mode |
uint32_t | align |
uint32_t | freq |
uint32_t | bperiod |
uint32_t | hperiod |
pwm_channel_init_t | channel_a |
pwm_channel_init_t | channel_b |
pwm_channel_init_t | channel_c |
PWM init Structure definition.
uint32_t pwm_init_t::align |
Specifies the PWM alignment mode with three channels This parameter can be a value of PWM Pulses Aligned.
uint32_t pwm_init_t::bperiod |
Specifies the PWM breath period in breath mode. Unit: ms. This parameter must be a number between 0 ~ 0xFFFFFFFF/SystemFreq*1000.
pwm_channel_init_t pwm_init_t::channel_a |
Specifies the configuration parameters of channel A.
pwm_channel_init_t pwm_init_t::channel_b |
Specifies the configuration parameters of channel B.
pwm_channel_init_t pwm_init_t::channel_c |
Specifies the configuration parameters of channel C.
uint32_t pwm_init_t::freq |
Specifies the PWM frequency. This parameter must be a number between 0 ~ SystemFreq/2 (max = 32Mhz).
uint32_t pwm_init_t::hperiod |
Specifies the PWM hold period in breath mode. Unit: ms. This parameter must be a number between 0 ~ 0xFFFFFF/SystemFreq*1000.
uint32_t pwm_init_t::mode |
Specifies the PWM output mode state. This parameter can be a value of PWM Mode