PCNT_Init_TypeDef Struct ReferenceEMLIB > PCNT

Initialization structure.

Definition at line 176 of file em_pcnt.h .

#include < em_pcnt.h >

Data Fields

PCNT_CntEvent_TypeDef auxCntEvent
PCNT_CntEvent_TypeDef cntEvent
bool countDown
uint32_t counter
bool filter
bool hyst
PCNT_Mode_TypeDef mode
bool negEdge
PCNT_PRSSel_TypeDef s0PRS
bool s1CntDir
PCNT_PRSSel_TypeDef s1PRS
uint32_t top

Field Documentation

PCNT_CntEvent_TypeDef PCNT_Init_TypeDef::auxCntEvent

Selects whether the auxiliary counter responds to up-count events, down-count events, both, or none.

Definition at line 222 of file em_pcnt.h .

Referenced by PCNT_Init() .

PCNT_CntEvent_TypeDef PCNT_Init_TypeDef::cntEvent

Selects whether the regular counter responds to up-count events, down-count events, both, or none.

Definition at line 218 of file em_pcnt.h .

Referenced by PCNT_Init() .

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() .

bool PCNT_Init_TypeDef::hyst

Set to true to enable hysteresis. When enabled, PCNT will always overflow and underflow to TOP/2.

Definition at line 208 of file em_pcnt.h .

Referenced by PCNT_Init() .

PCNT_Mode_TypeDef PCNT_Init_TypeDef::mode

Mode to operate in.

Definition at line 178 of file em_pcnt.h .

Referenced by PCNT_Init() .

bool PCNT_Init_TypeDef::negEdge

Polarity of incoming edge.

Definition at line 196 of file em_pcnt.h .

Referenced by PCNT_Init() .

PCNT_PRSSel_TypeDef PCNT_Init_TypeDef::s0PRS

Select PRS channel as input to S0IN in PCNTx_INPUT register.

Definition at line 225 of file em_pcnt.h .

Referenced by PCNT_Init() .

bool PCNT_Init_TypeDef::s1CntDir

Set to true to enable S1 to determine the direction of counting in OVSSINGLE or EXTCLKSINGLE modes.
When S1 is high, the count direction is given by CNTDIR, and when S1 is low, the count direction is the opposite.

Definition at line 214 of file em_pcnt.h .

Referenced by PCNT_Init() .

PCNT_PRSSel_TypeDef PCNT_Init_TypeDef::s1PRS

Select PRS channel as input to S1IN in PCNTx_INPUT register.

Definition at line 228 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:/cygwin/home/caamunds/work/super/platform/emlib/inc/ em_pcnt.h