TIMER_InitCC_TypeDef Struct Reference
TIMER compare/capture initialization structure.
#include <em_timer.h>
Data Fields |
|
TIMER_Event_TypeDef | eventCtrl |
Input capture event control.
|
|
TIMER_Edge_TypeDef | edge |
Input capture edge select.
|
|
TIMER_PRSSEL_TypeDef | prsSel |
Peripheral reflex system trigger selection.
|
|
TIMER_OutputAction_TypeDef | cufoa |
Counter underflow output action.
|
|
TIMER_OutputAction_TypeDef | cofoa |
Counter overflow output action.
|
|
TIMER_OutputAction_TypeDef | cmoa |
Counter match output action.
|
|
TIMER_CCMode_TypeDef | mode |
Compare/capture channel mode.
|
|
bool | filter |
Enable digital filter.
|
|
bool | prsInput |
Select TIMERnCCx (false) or PRS input (true).
|
|
bool | coist |
Compare output initial state.
|
|
bool | outInvert |
Invert output from compare/capture channel.
|
|
TIMER_PrsOutput_t | prsOutput |
PRS output configuration.
|
|
TIMER_PrsInput_TypeDef | prsInputType |
When PRS input is used this field is used to configure the type of PRS input.
|
|
TIMER compare/capture initialization structure.
Field Documentation
◆ eventCtrl
TIMER_Event_TypeDef TIMER_InitCC_TypeDef::eventCtrl |
Input capture event control.
◆ edge
TIMER_Edge_TypeDef TIMER_InitCC_TypeDef::edge |
Input capture edge select.
◆ prsSel
TIMER_PRSSEL_TypeDef TIMER_InitCC_TypeDef::prsSel |
Peripheral reflex system trigger selection.
Only applicable if
prsInput
is enabled.
◆ cufoa
TIMER_OutputAction_TypeDef TIMER_InitCC_TypeDef::cufoa |
Counter underflow output action.
◆ cofoa
TIMER_OutputAction_TypeDef TIMER_InitCC_TypeDef::cofoa |
Counter overflow output action.
◆ cmoa
TIMER_OutputAction_TypeDef TIMER_InitCC_TypeDef::cmoa |
Counter match output action.
◆ mode
TIMER_CCMode_TypeDef TIMER_InitCC_TypeDef::mode |
Compare/capture channel mode.
◆ filter
bool TIMER_InitCC_TypeDef::filter |
Enable digital filter.
◆ prsInput
bool TIMER_InitCC_TypeDef::prsInput |
Select TIMERnCCx (false) or PRS input (true).
◆ 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.
◆ outInvert
bool TIMER_InitCC_TypeDef::outInvert |
Invert output from compare/capture channel.
◆ 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.
◆ prsInputType
TIMER_PrsInput_TypeDef TIMER_InitCC_TypeDef::prsInputType |
When PRS input is used this field is used to configure the type of PRS input.