MCUSW
|
Pwm channel configuration.
Data Fields | |
uint32 | instanceClkHz |
uint16 | dutyCycle |
uint32 | hwPeriod |
Pwm_OutputStateType | polarity |
Pwm_OutputStateType | idleState |
Pwm_ChannelClassType | channelClass |
uint32 | prescale |
uint32 | hsPrescale |
boolean | enableHR |
Pwm_NotifyFuncType | notificationHandler |
uint32 Pwm_ChannelConfigType::instanceClkHz |
System clock frequency
uint16 Pwm_ChannelConfigType::dutyCycle |
Initial dutycycle
uint32 Pwm_ChannelConfigType::hwPeriod |
Number of HW Unit ticks value which sets initial period
Pwm_OutputStateType Pwm_ChannelConfigType::polarity |
Initial polarity
Pwm_OutputStateType Pwm_ChannelConfigType::idleState |
Initial idle state
Pwm_ChannelClassType Pwm_ChannelConfigType::channelClass |
Fixed or Variable period
uint32 Pwm_ChannelConfigType::prescale |
Prescaler, part of PWM HW time-base clock Range - 0 <= prescale <= 7, TBCLK = SYSCLK / (prescale) 0x0 = /1 (No prescale) 0x1 = /2 0x2 = /4 0x3 = /8 0x4 = /16 0x5 = /32 0x6 = /64 0x7 = /128
uint32 Pwm_ChannelConfigType::hsPrescale |
High-Speed Prescaler, part for PWM HW time-base clock Range - 0 <= prescale <= 7, TBCLK = SYSCLK / (hsPrescale x prescale) 0x0 = /1 (No prescale) 0x1 = /2 0x2 = /4 0x3 = /6 0x4 = /8 0x5 = /10 0x6 = /12 0x7 = /14
boolean Pwm_ChannelConfigType::enableHR |
Enable High Resolution Capacbility
Pwm_NotifyFuncType Pwm_ChannelConfigType::notificationHandler |
Notification handler