PCNT_Init_TypeDef Struct Reference
[PCNT]

#include <em_pcnt.h>

Collaboration diagram for PCNT_Init_TypeDef:
Collaboration graph
[legend]

Data Fields

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

Detailed Description

Init structure.

Definition at line 152 of file em_pcnt.h.


Field Documentation

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

Definition at line 199 of file em_pcnt.h.

Referenced by PCNT_Init().

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

Definition at line 195 of file em_pcnt.h.

Referenced by PCNT_Init().

Counting direction, only applicable for pcntModeOvsSingle and pcntModeExtSingle modes.

Definition at line 177 of file em_pcnt.h.

Referenced by PCNT_Init().

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, the counter value is reset to HW reset value.

Definition at line 161 of file em_pcnt.h.

Referenced by PCNT_Init().

Enable filter, only available in pcntModeOvsSingle mode.

Definition at line 180 of file em_pcnt.h.

Referenced by PCNT_Init().

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

Definition at line 185 of file em_pcnt.h.

Referenced by PCNT_Init().

Mode to operate in.

Definition at line 155 of file em_pcnt.h.

Referenced by PCNT_Init().

Polarity of incoming edge.

Definition at line 173 of file em_pcnt.h.

Referenced by PCNT_Init().

Select PRS channel as input to S0IN in PCNTx_INPUT register.

Definition at line 202 of file em_pcnt.h.

Referenced by PCNT_Init().

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 191 of file em_pcnt.h.

Referenced by PCNT_Init().

Select PRS channel as input to S1IN in PCNTx_INPUT register.

Definition at line 205 of file em_pcnt.h.

Referenced by PCNT_Init().

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, the top value is reset to HW reset value.

Definition at line 167 of file em_pcnt.h.

Referenced by PCNT_Init().


The documentation for this struct was generated from the following file: