PCNT_Init_TypeDef Struct ReferenceEMLIB > PCNT
Initialization structure.
Definition at line
176
of file
em_pcnt.h
.
#include <
em_pcnt.h
>
Data Fields |
|
bool | countDown |
uint32_t | counter |
bool | filter |
PCNT_Mode_TypeDef | mode |
bool | negEdge |
uint32_t | top |
Field Documentation
bool PCNT_Init_TypeDef::countDown |
Counting direction, only applicable for pcntModeOvsSingle and pcntModeExtSingle modes.
Definition at line
200
of file
em_pcnt.h
.
Referenced by PCNT_Init() .
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.
Definition at line
184
of file
em_pcnt.h
.
Referenced by PCNT_Init() .
bool PCNT_Init_TypeDef::filter |
Enable filter, only available in #pcntModeOvs* modes.
Definition at line
203
of file
em_pcnt.h
.
Referenced by PCNT_Init() .
PCNT_Mode_TypeDef PCNT_Init_TypeDef::mode |
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.
Definition at line
196
of file
em_pcnt.h
.
Referenced by PCNT_Init() .
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.
Definition at line
190
of file
em_pcnt.h
.
Referenced by PCNT_Init() .
The documentation for this struct was generated from the following file:
-
C:/repos/super_h1/platform/emlib/inc/
em_pcnt.h