TIMER compare/capture initialization structure.

Public Attributes#

Input capture event control.

Input capture edge select.

Peripheral reflex system trigger selection.

Counter underflow output action.

Counter overflow output action.

Counter match output action.

Compare/capture channel mode.

bool

Enable digital filter.

bool

Select TIMERnCCx (false) or PRS input (true).

bool

Compare output initial state.

bool

Invert output from compare/capture channel.

PRS output configuration.

When PRS input is used this field is used to configure the type of PRS input.

Public Attribute Documentation#

eventCtrl#

TIMER_Event_TypeDef TIMER_InitCC_TypeDef::eventCtrl

Input capture event control.


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

edge#

TIMER_Edge_TypeDef TIMER_InitCC_TypeDef::edge

Input capture edge select.


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

prsSel#

TIMER_PRSSEL_TypeDef TIMER_InitCC_TypeDef::prsSel

Peripheral reflex system trigger selection.

Only applicable if prsInput is enabled.


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

cufoa#

TIMER_OutputAction_TypeDef TIMER_InitCC_TypeDef::cufoa

Counter underflow output action.


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

cofoa#

TIMER_OutputAction_TypeDef TIMER_InitCC_TypeDef::cofoa

Counter overflow output action.


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

cmoa#

TIMER_OutputAction_TypeDef TIMER_InitCC_TypeDef::cmoa

Counter match output action.


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

mode#

TIMER_CCMode_TypeDef TIMER_InitCC_TypeDef::mode

Compare/capture channel mode.


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

filter#

bool TIMER_InitCC_TypeDef::filter

Enable digital filter.


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

prsInput#

bool TIMER_InitCC_TypeDef::prsInput

Select TIMERnCCx (false) or PRS input (true).


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

coist#

bool TIMER_InitCC_TypeDef::coist

Compare output initial state.

Only used in Output Compare and PWM mode. When true, the compare/PWM output is set high when the counter is disabled. When counting resumes, this value will represent the initial value for the compare/PWM output. If the bit is cleared, the output will be cleared when the counter is disabled.


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

outInvert#

bool TIMER_InitCC_TypeDef::outInvert

Invert output from compare/capture channel.


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

prsOutput#

TIMER_PrsOutput_t TIMER_InitCC_TypeDef::prsOutput

PRS output configuration.

PRS output from a timer can either be a pulse output or a level output that follows the CC out value.


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

prsInputType#

TIMER_PrsInput_TypeDef TIMER_InitCC_TypeDef::prsInputType

When PRS input is used this field is used to configure the type of PRS input.


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