TCC initialization structure.
Public Attributes#
Mode to operate in.
Prescaler value for LFACLK in LFA mode.
Choose the event that will trigger a clear.
PRS input to TCC module, either for gating the PCNT clock, triggering the TCC comparison, or both.
TCC PRS input polarity.
Enable gating PCNT input clock through TCC PRS signal.
Public Attribute Documentation#
mode#
PCNT_TCCMode_TypeDef PCNT_TCC_TypeDef::mode
Mode to operate in.
447
of file platform/emlib/inc/em_pcnt.h
prescaler#
PCNT_TCCPresc_Typedef PCNT_TCC_TypeDef::prescaler
Prescaler value for LFACLK in LFA mode.
450
of file platform/emlib/inc/em_pcnt.h
compare#
PCNT_TCCComp_Typedef PCNT_TCC_TypeDef::compare
Choose the event that will trigger a clear.
453
of file platform/emlib/inc/em_pcnt.h
tccPRS#
PCNT_PRSSel_TypeDef PCNT_TCC_TypeDef::tccPRS
PRS input to TCC module, either for gating the PCNT clock, triggering the TCC comparison, or both.
456
of file platform/emlib/inc/em_pcnt.h
prsPolarity#
bool PCNT_TCC_TypeDef::prsPolarity
TCC PRS input polarity.
False = Rising edge for comparison trigger, and PCNT clock gated when PRS signal is high. True = Falling edge for comparison trigger, and PCNT clock gated when PRS signal is low.
461
of file platform/emlib/inc/em_pcnt.h
prsGateEnable#
bool PCNT_TCC_TypeDef::prsGateEnable
Enable gating PCNT input clock through TCC PRS signal.
Polarity selection is done through prsPolarity.
465
of file platform/emlib/inc/em_pcnt.h