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 |
PWM mode configuration.
This structure defines configuration specific to standard PWM mode operation, including compare actions, kill modes, and output control.
| bool spwm_pwm_cfg_t::auto_reload_cc0 |
Auto-load CC0 from buffer
| bool spwm_pwm_cfg_t::auto_reload_cc1 |
Auto-load CC1 from buffer
| bool spwm_pwm_cfg_t::auto_reload_period |
Auto-load PERIOD from buffer
| bool spwm_pwm_cfg_t::auto_reload_line_sel |
Auto-load line select from buffer
| bool spwm_pwm_cfg_t::cc0_match_up_en |
Enable CC0 action on up-count
| bool spwm_pwm_cfg_t::cc1_match_up_en |
Enable CC1 action on up-count
| bool spwm_pwm_cfg_t::cc0_match_down_en |
Enable CC0 action on down-count
| bool spwm_pwm_cfg_t::cc1_match_down_en |
Enable CC1 action on down-count
| bool spwm_pwm_cfg_t::pwm_imm_kill |
Enable immediate kill mode
| bool spwm_pwm_cfg_t::pwm_stop_on_kill |
Stop counter on kill signal
| bool spwm_pwm_cfg_t::pwm_sync_kill |
Synchronize kill with clock edge
| spwm_disable_mode_en spwm_pwm_cfg_t::disable_mode |
Output behavior when disabled
| spwm_pwm_ctrl_mode_en spwm_pwm_cfg_t::cc0_match_mode |
Action on CC0 match
| spwm_pwm_ctrl_mode_en spwm_pwm_cfg_t::overflow_mode |
Action on overflow
| spwm_pwm_ctrl_mode_en spwm_pwm_cfg_t::underflow_mode |
Action on underflow
| spwm_pwm_ctrl_mode_en spwm_pwm_cfg_t::cc1_match_mode |
Action on CC1 match
| uint32_t spwm_pwm_cfg_t::line_sel |
Output line routing configuration
| uint32_t spwm_pwm_cfg_t::line_sel_buff |
Buffered output line routing