PCNT_Init_TypeDef Struct Reference
Initialization structure.
#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.
|
|
bool | hyst |
Set to true to enable hysteresis.
|
|
bool | s1CntDir |
Set to true to enable S1 to determine the direction of counting in OVSSINGLE or EXTCLKSINGLE modes.
|
|
PCNT_CntEvent_TypeDef | cntEvent |
Selects whether the regular counter responds to up-count events, down-count events, both, or none.
|
|
PCNT_CntEvent_TypeDef | auxCntEvent |