TIMER initialization structure.

Public Attributes#

Prescaling factor, if HFPER / HFPERB clock used.

bool

Timer can be start/stop/reload by other timers.

bool

Determines if only counting up or down once.

bool

Select X2 or X4 quadrature decode mode (if used)

bool

Counter shall keep running during debug halt.

bool

DMA request clear on active.

bool

Enable retiming of PWM output.

bool

Disable ability of timer to start/stop/reload other timers that have their SYNC bit set.

bool

ATI (Always Track Inputs) makes CCPOL always track the polarity of the inputs.

bool

When enabled, compare output is set to COIST value on a Reload-Start event.

bool

2x Count mode, counter increments/decrements by 2, meant for PWM mode.

Public Attribute Documentation#

count_mode#

sl_hal_timer_mode_t sl_hal_timer_init_t::count_mode

Counting mode.


clock_select#

sl_hal_timer_clock_select_t sl_hal_timer_init_t::clock_select

Clock selection.


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.


count_one_shot#

bool sl_hal_timer_init_t::count_one_shot

Determines if only counting up or down once.


quad_mode_x4#

bool sl_hal_timer_init_t::quad_mode_x4

Select X2 or X4 quadrature decode mode (if used)


debug_run#

bool sl_hal_timer_init_t::debug_run

Counter shall keep running during debug halt.


dma_clear_on_active#

bool sl_hal_timer_init_t::dma_clear_on_active

DMA request clear on active.


enable_retime#

bool sl_hal_timer_init_t::enable_retime

Enable retiming of PWM output.


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.