TIMER initialization structure.

Public Attributes#

bool

Start counting when initialization completed.

bool

Counter shall keep running during debug halt.

Prescaling factor, if HFPER / HFPERB clock used.

Action on falling input edge.

Action on rising input edge.

Counting mode.

bool

DMA request clear on active.

bool

Select X2 or X4 quadrature decode mode (if used).

bool

Determines if only counting up or down once.

bool

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

Public Attribute Documentation#

enable#

bool TIMER_Init_TypeDef::enable

Start counting when initialization completed.


debugRun#

bool TIMER_Init_TypeDef::debugRun

Counter shall keep running during debug halt.


prescale#

TIMER_Prescale_TypeDef TIMER_Init_TypeDef::prescale

Prescaling factor, if HFPER / HFPERB clock used.


clkSel#

TIMER_ClkSel_TypeDef TIMER_Init_TypeDef::clkSel

Clock selection.


fallAction#

TIMER_InputAction_TypeDef TIMER_Init_TypeDef::fallAction

Action on falling input edge.


riseAction#

TIMER_InputAction_TypeDef TIMER_Init_TypeDef::riseAction

Action on rising input edge.


mode#

TIMER_Mode_TypeDef TIMER_Init_TypeDef::mode

Counting mode.


dmaClrAct#

bool TIMER_Init_TypeDef::dmaClrAct

DMA request clear on active.


quadModeX4#

bool TIMER_Init_TypeDef::quadModeX4

Select X2 or X4 quadrature decode mode (if used).


oneShot#

bool TIMER_Init_TypeDef::oneShot

Determines if only counting up or down once.


sync#

bool TIMER_Init_TypeDef::sync

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