PCNT_TCC_TypeDef Struct Reference
TCC initialization structure.
      
       #include <em_pcnt.h>
      
     
| Data Fields | |
| PCNT_TCCMode_TypeDef | mode | 
| Mode to operate in. | |
| PCNT_TCCPresc_Typedef | prescaler | 
| Prescaler value for LFACLK in LFA mode. | |
| PCNT_TCCComp_Typedef | compare | 
| Choose the event that will trigger a clear. | |
| PCNT_PRSSel_TypeDef | tccPRS | 
| PRS input to TCC module, either for gating the PCNT clock, triggering the TCC comparison, or both. | |
| bool | prsPolarity | 
| TCC PRS input polarity. | |
| bool | prsGateEnable | 
| Enable gating PCNT input clock through TCC PRS signal. | |
TCC initialization structure.
Field Documentation
◆ mode
| PCNT_TCCMode_TypeDef PCNT_TCC_TypeDef::mode | 
Mode to operate in.
◆ prescaler
| PCNT_TCCPresc_Typedef PCNT_TCC_TypeDef::prescaler | 
Prescaler value for LFACLK in LFA mode.
◆ compare
| PCNT_TCCComp_Typedef PCNT_TCC_TypeDef::compare | 
Choose the event that will trigger a clear.
◆ 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.