SAM4SD32 (SAM4S-EK2)
Loading...
Searching...
No Matches
pwm_channel_t Struct Reference

Input parameters when configuring a PWM channel mode. More...

#include <pwm.h>

Data Fields

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

Detailed Description

Input parameters when configuring a PWM channel mode.

Definition at line 284 of file pwm.h.

Field Documentation

◆ alignment

pwm_align_t pwm_channel_t::alignment

Channel alignment.

Definition at line 290 of file pwm.h.

Referenced by pwm_channel_init().

◆ b_deadtime_generator

bool pwm_channel_t::b_deadtime_generator

Boolean of channel dead-time generator.

Definition at line 302 of file pwm.h.

Referenced by pwm_channel_init().

◆ b_pwmh_output_inverted

bool pwm_channel_t::b_pwmh_output_inverted

Boolean of channel dead-time PWMH output inverted.

Definition at line 304 of file pwm.h.

Referenced by pwm_channel_init().

◆ b_pwml_output_inverted

bool pwm_channel_t::b_pwml_output_inverted

Boolean of channel dead-time PWML output inverted.

Definition at line 306 of file pwm.h.

Referenced by pwm_channel_init().

◆ b_sync_ch

bool pwm_channel_t::b_sync_ch

Boolean of Synchronous Channel.

Definition at line 314 of file pwm.h.

Referenced by pwm_channel_init().

◆ channel

uint32_t pwm_channel_t::channel

◆ counter_event

pwm_counter_event_t pwm_channel_t::counter_event

Channel counter event.

Definition at line 300 of file pwm.h.

Referenced by pwm_channel_init().

◆ fault_id

pwm_fault_id_t pwm_channel_t::fault_id

Fault ID of the channel.

Definition at line 316 of file pwm.h.

Referenced by pwm_channel_init().

◆ output_selection

pwm_output_t pwm_channel_t::output_selection

Channel output.

Definition at line 312 of file pwm.h.

Referenced by pwm_channel_init(), and pwm_channel_update_output().

◆ polarity

pwm_level_t pwm_channel_t::polarity

Channel initial polarity.

Definition at line 292 of file pwm.h.

Referenced by pwm_channel_init().

◆ ul_duty

uint32_t pwm_channel_t::ul_duty

Duty Cycle Value.

Definition at line 294 of file pwm.h.

Referenced by pwm_channel_init(), pwm_channel_update_duty(), and pwm_channel_update_period().

◆ ul_fault_output_pwmh

pwm_level_t pwm_channel_t::ul_fault_output_pwmh

Channel PWMH output level in fault protection.

Definition at line 318 of file pwm.h.

Referenced by pwm_channel_init().

◆ ul_fault_output_pwml

pwm_level_t pwm_channel_t::ul_fault_output_pwml

Channel PWML output level in fault protection.

Definition at line 320 of file pwm.h.

Referenced by pwm_channel_init().

◆ ul_period

uint32_t pwm_channel_t::ul_period

Period Cycle Value.

Definition at line 296 of file pwm.h.

Referenced by pwm_channel_init(), pwm_channel_update_duty(), and pwm_channel_update_period().

◆ ul_prescaler

uint32_t pwm_channel_t::ul_prescaler

Channel prescaler.

Definition at line 288 of file pwm.h.

Referenced by pwm_channel_init().

◆ us_deadtime_pwmh

uint16_t pwm_channel_t::us_deadtime_pwmh

Dead-time Value for PWMH Output.

Definition at line 308 of file pwm.h.

Referenced by pwm_channel_update_dead_time().

◆ us_deadtime_pwml

uint16_t pwm_channel_t::us_deadtime_pwml

Dead-time Value for PWML Output.

Definition at line 310 of file pwm.h.

Referenced by pwm_channel_update_dead_time().