Astra MCU SDK Peripheral Driver Library
 
Loading...
Searching...
No Matches
spwm_pwm_cfg_t Struct Reference

PWM mode configuration. More...

#include <spwm.h>

Data Fields

bool auto_reload_cc0
 
bool auto_reload_cc1
 
bool auto_reload_period
 
bool auto_reload_line_sel
 
bool cc0_match_up_en
 
bool cc1_match_up_en
 
bool cc0_match_down_en
 
bool cc1_match_down_en
 
bool pwm_imm_kill
 
bool pwm_stop_on_kill
 
bool pwm_sync_kill
 
spwm_disable_mode_en disable_mode
 
spwm_pwm_ctrl_mode_en cc0_match_mode
 
spwm_pwm_ctrl_mode_en overflow_mode
 
spwm_pwm_ctrl_mode_en underflow_mode
 
spwm_pwm_ctrl_mode_en cc1_match_mode
 
uint32_t line_sel
 
uint32_t line_sel_buff
 

Detailed Description

PWM mode configuration.

This structure defines configuration specific to standard PWM mode operation, including compare actions, kill modes, and output control.

Field Documentation

◆ auto_reload_cc0

bool spwm_pwm_cfg_t::auto_reload_cc0

Auto-load CC0 from buffer

◆ auto_reload_cc1

bool spwm_pwm_cfg_t::auto_reload_cc1

Auto-load CC1 from buffer

◆ auto_reload_period

bool spwm_pwm_cfg_t::auto_reload_period

Auto-load PERIOD from buffer

◆ auto_reload_line_sel

bool spwm_pwm_cfg_t::auto_reload_line_sel

Auto-load line select from buffer

◆ cc0_match_up_en

bool spwm_pwm_cfg_t::cc0_match_up_en

Enable CC0 action on up-count

◆ cc1_match_up_en

bool spwm_pwm_cfg_t::cc1_match_up_en

Enable CC1 action on up-count

◆ cc0_match_down_en

bool spwm_pwm_cfg_t::cc0_match_down_en

Enable CC0 action on down-count

◆ cc1_match_down_en

bool spwm_pwm_cfg_t::cc1_match_down_en

Enable CC1 action on down-count

◆ pwm_imm_kill

bool spwm_pwm_cfg_t::pwm_imm_kill

Enable immediate kill mode

◆ pwm_stop_on_kill

bool spwm_pwm_cfg_t::pwm_stop_on_kill

Stop counter on kill signal

◆ pwm_sync_kill

bool spwm_pwm_cfg_t::pwm_sync_kill

Synchronize kill with clock edge

◆ disable_mode

spwm_disable_mode_en spwm_pwm_cfg_t::disable_mode

Output behavior when disabled

◆ cc0_match_mode

spwm_pwm_ctrl_mode_en spwm_pwm_cfg_t::cc0_match_mode

Action on CC0 match

◆ overflow_mode

spwm_pwm_ctrl_mode_en spwm_pwm_cfg_t::overflow_mode

Action on overflow

◆ underflow_mode

spwm_pwm_ctrl_mode_en spwm_pwm_cfg_t::underflow_mode

Action on underflow

◆ cc1_match_mode

spwm_pwm_ctrl_mode_en spwm_pwm_cfg_t::cc1_match_mode

Action on CC1 match

◆ line_sel

uint32_t spwm_pwm_cfg_t::line_sel

Output line routing configuration

◆ line_sel_buff

uint32_t spwm_pwm_cfg_t::line_sel_buff

Buffered output line routing