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#

mode#

PCNT_TCCMode_TypeDef PCNT_TCC_TypeDef::mode

Mode to operate in.


Definition at line 447 of file platform/emlib/inc/em_pcnt.h

prescaler#

PCNT_TCCPresc_Typedef PCNT_TCC_TypeDef::prescaler

Prescaler value for LFACLK in LFA mode.


Definition at line 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.


Definition at line 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.


Definition at line 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.


Definition at line 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.


Definition at line 465 of file platform/emlib/inc/em_pcnt.h