MCUSW
Pwm_ChannelConfigType Struct Reference

Detailed Description

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
 

Field Documentation

◆ instanceClkHz

uint32 Pwm_ChannelConfigType::instanceClkHz

System clock frequency

◆ dutyCycle

uint16 Pwm_ChannelConfigType::dutyCycle

Initial dutycycle

◆ hwPeriod

uint32 Pwm_ChannelConfigType::hwPeriod

Number of HW Unit ticks value which sets initial period

◆ polarity

Pwm_OutputStateType Pwm_ChannelConfigType::polarity

Initial polarity

◆ idleState

Pwm_OutputStateType Pwm_ChannelConfigType::idleState

Initial idle state

◆ channelClass

Pwm_ChannelClassType Pwm_ChannelConfigType::channelClass

Fixed or Variable period

◆ prescale

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

◆ hsPrescale

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

◆ enableHR

boolean Pwm_ChannelConfigType::enableHR

Enable High Resolution Capacbility

◆ notificationHandler

Pwm_NotifyFuncType Pwm_ChannelConfigType::notificationHandler

Notification handler