Microchip® Advanced Software Framework

pwm_channel_t Struct Reference

Input parameters when configuring a PWM channel mode.

#include <pwm.h>

Data Fields

pwm_align_t alignment
 Channel alignment. More...
 
bool b_deadtime_generator
 Boolean of channel dead-time generator. More...
 
bool b_pwmh_output_inverted
 Boolean of channel dead-time PWMH output inverted. More...
 
bool b_pwml_output_inverted
 Boolean of channel dead-time PWML output inverted. More...
 
bool b_sync_ch
 Boolean of Synchronous Channel. More...
 
uint32_t channel
 Channel number. More...
 
pwm_counter_event_t counter_event
 Channel counter event. More...
 
pwm_fault_id_t fault_id
 Fault ID of the channel. More...
 
pwm_output_t output_selection
 Channel output. More...
 
pwm_level_t polarity
 Channel initial polarity. More...
 
pwm_spread_spectrum_mode_t spread_spectrum_mode
 Spread Spectrum Mode. More...
 
uint32_t ul_duty
 Duty Cycle Value. More...
 
pwm_level_t ul_fault_output_pwmh
 Channel PWMH output level in fault protection. More...
 
pwm_level_t ul_fault_output_pwml
 Channel PWML output level in fault protection. More...
 
uint32_t ul_period
 Period Cycle Value. More...
 
uint32_t ul_prescaler
 Channel prescaler. More...
 
uint32_t ul_spread
 Spread Spectrum Value. More...
 
uint16_t us_deadtime_pwmh
 Dead-time Value for PWMH Output. More...
 
uint16_t us_deadtime_pwml
 Dead-time Value for PWML Output. More...
 

pwm_align_t pwm_channel_t::alignment

Channel alignment.

Referenced by main(), and pwm_channel_init().

bool pwm_channel_t::b_deadtime_generator

Boolean of channel dead-time generator.

Referenced by pwm_channel_init().

bool pwm_channel_t::b_pwmh_output_inverted

Boolean of channel dead-time PWMH output inverted.

Referenced by pwm_channel_init().

bool pwm_channel_t::b_pwml_output_inverted

Boolean of channel dead-time PWML output inverted.

Referenced by pwm_channel_init().

bool pwm_channel_t::b_sync_ch

Boolean of Synchronous Channel.

Referenced by pwm_channel_init().

pwm_counter_event_t pwm_channel_t::counter_event

Channel counter event.

Referenced by pwm_channel_init().

pwm_fault_id_t pwm_channel_t::fault_id

Fault ID of the channel.

Referenced by pwm_channel_init().

pwm_output_t pwm_channel_t::output_selection

Channel output.

Referenced by pwm_channel_init(), and pwm_channel_update_output().

pwm_level_t pwm_channel_t::polarity

Channel initial polarity.

Referenced by main(), pwm_channel_init(), and pwm_channel_update_polarity_mode().

pwm_spread_spectrum_mode_t pwm_channel_t::spread_spectrum_mode

Spread Spectrum Mode.

Referenced by pwm_channel_init().

uint32_t pwm_channel_t::ul_duty
pwm_level_t pwm_channel_t::ul_fault_output_pwmh

Channel PWMH output level in fault protection.

Referenced by pwm_channel_init().

pwm_level_t pwm_channel_t::ul_fault_output_pwml

Channel PWML output level in fault protection.

Referenced by pwm_channel_init().

uint32_t pwm_channel_t::ul_period
uint32_t pwm_channel_t::ul_prescaler

Channel prescaler.

Referenced by main(), and pwm_channel_init().

uint32_t pwm_channel_t::ul_spread

Spread Spectrum Value.

Referenced by pwm_channel_init(), and pwm_channel_update_spread().

uint16_t pwm_channel_t::us_deadtime_pwmh

Dead-time Value for PWMH Output.

Referenced by pwm_channel_update_dead_time().

uint16_t pwm_channel_t::us_deadtime_pwml

Dead-time Value for PWML Output.

Referenced by pwm_channel_update_dead_time().