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.

bool

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

bool

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

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.


Definition at line 280 of file platform/emlib/inc/em_timer.h

debugRun#

bool TIMER_Init_TypeDef::debugRun

Counter shall keep running during debug halt.


Definition at line 283 of file platform/emlib/inc/em_timer.h

prescale#

TIMER_Prescale_TypeDef TIMER_Init_TypeDef::prescale

Prescaling factor, if HFPER / HFPERB clock used.


Definition at line 286 of file platform/emlib/inc/em_timer.h

clkSel#

TIMER_ClkSel_TypeDef TIMER_Init_TypeDef::clkSel

Clock selection.


Definition at line 289 of file platform/emlib/inc/em_timer.h

count2x#

bool TIMER_Init_TypeDef::count2x

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


Definition at line 293 of file platform/emlib/inc/em_timer.h

ati#

bool TIMER_Init_TypeDef::ati

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


Definition at line 297 of file platform/emlib/inc/em_timer.h

fallAction#

TIMER_InputAction_TypeDef TIMER_Init_TypeDef::fallAction

Action on falling input edge.


Definition at line 301 of file platform/emlib/inc/em_timer.h

riseAction#

TIMER_InputAction_TypeDef TIMER_Init_TypeDef::riseAction

Action on rising input edge.


Definition at line 304 of file platform/emlib/inc/em_timer.h

mode#

TIMER_Mode_TypeDef TIMER_Init_TypeDef::mode

Counting mode.


Definition at line 307 of file platform/emlib/inc/em_timer.h

dmaClrAct#

bool TIMER_Init_TypeDef::dmaClrAct

DMA request clear on active.


Definition at line 310 of file platform/emlib/inc/em_timer.h

quadModeX4#

bool TIMER_Init_TypeDef::quadModeX4

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


Definition at line 313 of file platform/emlib/inc/em_timer.h

oneShot#

bool TIMER_Init_TypeDef::oneShot

Determines if only counting up or down once.


Definition at line 316 of file platform/emlib/inc/em_timer.h

sync#

bool TIMER_Init_TypeDef::sync

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


Definition at line 319 of file platform/emlib/inc/em_timer.h