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 400 of file platform/emlib/inc/em_timer.h

edge#

TIMER_Edge_TypeDef TIMER_InitCC_TypeDef::edge

Input capture edge select.


Definition at line 403 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 409 of file platform/emlib/inc/em_timer.h

cufoa#

TIMER_OutputAction_TypeDef TIMER_InitCC_TypeDef::cufoa

Counter underflow output action.


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

cofoa#

TIMER_OutputAction_TypeDef TIMER_InitCC_TypeDef::cofoa

Counter overflow output action.


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

cmoa#

TIMER_OutputAction_TypeDef TIMER_InitCC_TypeDef::cmoa

Counter match output action.


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

mode#

TIMER_CCMode_TypeDef TIMER_InitCC_TypeDef::mode

Compare/capture channel mode.


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

filter#

bool TIMER_InitCC_TypeDef::filter

Enable digital filter.


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

prsInput#

bool TIMER_InitCC_TypeDef::prsInput

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


Definition at line 427 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 436 of file platform/emlib/inc/em_timer.h

outInvert#

bool TIMER_InitCC_TypeDef::outInvert

Invert output from compare/capture channel.


Definition at line 439 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 445 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 450 of file platform/emlib/inc/em_timer.h