TIMER initialization structure.
Public Attributes#
Counting mode.
Clock selection.
Prescaling factor, if HFPER / HFPERB clock used.
Action on rising input edge.
Action on falling input edge.
Timer can be start/stop/reload by other timers.
Determines if only counting up or down once.
Select X2 or X4 quadrature decode mode (if used)
Counter shall keep running during debug halt.
DMA request clear on active.
Enable retiming of PWM output.
Disable ability of timer to start/stop/reload other timers that have their SYNC bit set.
ATI (Always Track Inputs) makes CCPOL always track the polarity of the inputs.
When enabled, compare output is set to COIST value on a Reload-Start event.
2x Count mode, counter increments/decrements by 2, meant for PWM mode.
Public Attribute Documentation#
prescaler#
sl_hal_timer_prescaler_t sl_hal_timer_init_t::prescaler
Prescaling factor, if HFPER / HFPERB clock used.
input_rise_action#
sl_hal_timer_input_edge_action_t sl_hal_timer_init_t::input_rise_action
Action on rising input edge.
input_fall_action#
sl_hal_timer_input_edge_action_t sl_hal_timer_init_t::input_fall_action
Action on falling input edge.
input_enable_sync#
bool sl_hal_timer_init_t::input_enable_sync
Timer can be start/stop/reload by other timers.
output_disable_sync#
bool sl_hal_timer_init_t::output_disable_sync
Disable ability of timer to start/stop/reload other timers that have their SYNC bit set.
always_track_input#
bool sl_hal_timer_init_t::always_track_input
ATI (Always Track Inputs) makes CCPOL always track the polarity of the inputs.
reload_start_default#
bool sl_hal_timer_init_t::reload_start_default
When enabled, compare output is set to COIST value on a Reload-Start event.
count_2x#
bool sl_hal_timer_init_t::count_2x
2x Count mode, counter increments/decrements by 2, meant for PWM mode.