This structure includes the configuration for each channel Implements : pwm_channel_t_Class. More...

#include <platform/pal/pwm/inc/pwm_pal.h>

Data Fields

uint8_t channel
 
pwm_channel_type_t channelType
 
uint32_t period
 
uint32_t duty
 
pwm_polarity_t polarity
 
bool insertDeadtime
 
uint8_t deadtime
 
bool enableComplementaryChannel
 
pwm_complementarty_mode_t complementaryChannelPolarity
 
void * timebase
 

Detailed Description

This structure includes the configuration for each channel Implements : pwm_channel_t_Class.

Definition at line 151 of file pwm_pal.h.

Field Documentation

uint8_t channel

Channel number

Definition at line 153 of file pwm_pal.h.

pwm_channel_type_t channelType

Channel waveform type

Definition at line 154 of file pwm_pal.h.

pwm_complementarty_mode_t complementaryChannelPolarity

Configure the polarity of the complementary channel relative to the main channel

Definition at line 161 of file pwm_pal.h.

uint8_t deadtime

Dead-time value in ticks

Definition at line 159 of file pwm_pal.h.

uint32_t duty

Duty cycle in ticks

Definition at line 156 of file pwm_pal.h.

bool enableComplementaryChannel

Enable a complementary channel. This option can take control over other channel than the channel configured in this structure.

Definition at line 160 of file pwm_pal.h.

bool insertDeadtime

Enable/disable dead-time insertion. This feature is available only if complementary mode is enabled

Definition at line 158 of file pwm_pal.h.

uint32_t period

Period of the PWM signal in ticks

Definition at line 155 of file pwm_pal.h.

pwm_polarity_t polarity

Channel polarity

Definition at line 157 of file pwm_pal.h.

void* timebase

This field is platform specific and it's used to configure the clocking tree for different time-bases. If FTM is use this field must be filled by a pointer to pwm_ftm_timebase_t

Definition at line 162 of file pwm_pal.h.


The documentation for this struct was generated from the following file: