TIMER initialization structure.
Public Attributes#
Start counting when initialization completed.
Counter shall keep running during debug halt.
Prescaling factor, if HFPER / HFPERB clock used.
Clock selection.
2x Count mode, counter increments/decrements by 2, meant for PWM mode.
ATI (Always Track Inputs) makes CCPOL always track the polarity of the inputs.
Reload-Start Sets COIST When enabled, compare output is set to COIST value on a Reload-Start event.
Action on falling input edge.
Action on rising input edge.
Counting mode.
DMA request clear on active.
Select X2 or X4 quadrature decode mode (if used).
Determines if only counting up or down once.
Timer can be start/stop/reload by other timers.
Disable ability of timer to start/stop/reload other timers that have their SYNC bit set.
Public Attribute Documentation#
enable#
bool TIMER_Init_TypeDef::enable
Start counting when initialization completed.
280
of file platform/emlib/inc/em_timer.h
debugRun#
bool TIMER_Init_TypeDef::debugRun
Counter shall keep running during debug halt.
283
of file platform/emlib/inc/em_timer.h
prescale#
TIMER_Prescale_TypeDef TIMER_Init_TypeDef::prescale
Prescaling factor, if HFPER / HFPERB clock used.
286
of file platform/emlib/inc/em_timer.h
clkSel#
TIMER_ClkSel_TypeDef TIMER_Init_TypeDef::clkSel
Clock selection.
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.
294
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.
298
of file platform/emlib/inc/em_timer.h
rssCoist#
bool TIMER_Init_TypeDef::rssCoist
Reload-Start Sets COIST When enabled, compare output is set to COIST value on a Reload-Start event.
302
of file platform/emlib/inc/em_timer.h
fallAction#
TIMER_InputAction_TypeDef TIMER_Init_TypeDef::fallAction
Action on falling input edge.
306
of file platform/emlib/inc/em_timer.h
riseAction#
TIMER_InputAction_TypeDef TIMER_Init_TypeDef::riseAction
Action on rising input edge.
309
of file platform/emlib/inc/em_timer.h
mode#
TIMER_Mode_TypeDef TIMER_Init_TypeDef::mode
Counting mode.
312
of file platform/emlib/inc/em_timer.h
dmaClrAct#
bool TIMER_Init_TypeDef::dmaClrAct
DMA request clear on active.
315
of file platform/emlib/inc/em_timer.h
quadModeX4#
bool TIMER_Init_TypeDef::quadModeX4
Select X2 or X4 quadrature decode mode (if used).
318
of file platform/emlib/inc/em_timer.h
oneShot#
bool TIMER_Init_TypeDef::oneShot
Determines if only counting up or down once.
321
of file platform/emlib/inc/em_timer.h
sync#
bool TIMER_Init_TypeDef::sync
Timer can be start/stop/reload by other timers.
324
of file platform/emlib/inc/em_timer.h
disSyncOut#
bool TIMER_Init_TypeDef::disSyncOut
Disable ability of timer to start/stop/reload other timers that have their SYNC bit set.
328
of file platform/emlib/inc/em_timer.h