PCNT_Init_TypeDef Struct Reference
      PRS sources for
      
       s0PRS
      
      and
      
       s1PRS
      
      .
     
      
       #include <em_pcnt.h>
      
     
| Data Fields | |
| PCNT_Mode_TypeDef | mode | 
| Mode to operate in. | |
| uint32_t | counter | 
| Initial counter value (refer to reference manual for max value allowed). | |
| uint32_t | top | 
| Initial top value (refer to reference manual for max value allowed). | |
| bool | negEdge | 
| Polarity of incoming edge. | |
| bool | countDown | 
| Counting direction, only applicable for
         
          pcntModeOvsSingle
         
         and
         
          pcntModeExtSingle
         
         modes. | |
| bool | filter | 
| Enable filter, only available in
         
          pcntModeOvsSingle
         
         * mode. | |
       PRS sources for
       
        s0PRS
       
       and
       
        s1PRS
       
       .
      
Initialization structure.
Field Documentation
◆ mode
| PCNT_Mode_TypeDef PCNT_Init_TypeDef::mode | 
Mode to operate in.
◆ counter
| uint32_t PCNT_Init_TypeDef::counter | 
Initial counter value (refer to reference manual for max value allowed).
Only used for pcntModeOvsSingle (and possibly pcntModeDisable ) modes. If using pcntModeExtSingle or pcntModeExtQuad modes, counter value is reset to HW reset value.
◆ top
| uint32_t PCNT_Init_TypeDef::top | 
Initial top value (refer to reference manual for max value allowed).
Only used for pcntModeOvsSingle (and possibly pcntModeDisable ) modes. If using pcntModeExtSingle or pcntModeExtQuad modes, top value is reset to HW reset value.
◆ negEdge
| bool PCNT_Init_TypeDef::negEdge | 
Polarity of incoming edge.
- pcntModeExtSingle mode - if false, positive edges are counted, otherwise negative edges.
- pcntModeExtQuad mode - if true, counting direction is inverted.
◆ countDown
| bool PCNT_Init_TypeDef::countDown | 
Counting direction, only applicable for pcntModeOvsSingle and pcntModeExtSingle modes.
◆ filter
| bool PCNT_Init_TypeDef::filter | 
Enable filter, only available in pcntModeOvsSingle * mode.