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.
bool
TCC PRS input polarity.
bool
Enable gating PCNT input clock through TCC PRS signal.
Public Attribute Documentation#
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.
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.
prsGateEnable#
bool PCNT_TCC_TypeDef::prsGateEnable
Enable gating PCNT input clock through TCC PRS signal.
Polarity selection is done through prsPolarity.