PRS sources for s0PRS and s1PRS.

Initialization structure.

Public Attributes#

Mode to operate in.

uint32_t

Initial counter value (refer to reference manual for max value allowed).

uint32_t

Initial top value (refer to reference manual for max value allowed).

bool

Polarity of incoming edge.

bool

Counting direction, only applicable for pcntModeOvsSingle and pcntModeExtSingle modes.

bool

Enable filter, only available in pcntModeOvsSingle* mode.

Public Attribute Documentation#

mode#

PCNT_Mode_TypeDef PCNT_Init_TypeDef::mode

Mode to operate in.


Definition at line 248 of file platform/emlib/inc/em_pcnt.h

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.


Definition at line 254 of file platform/emlib/inc/em_pcnt.h

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.


Definition at line 260 of file platform/emlib/inc/em_pcnt.h

negEdge#

bool PCNT_Init_TypeDef::negEdge

Polarity of incoming edge.


Definition at line 266 of file platform/emlib/inc/em_pcnt.h

countDown#

bool PCNT_Init_TypeDef::countDown

Counting direction, only applicable for pcntModeOvsSingle and pcntModeExtSingle modes.


Definition at line 270 of file platform/emlib/inc/em_pcnt.h

filter#

bool PCNT_Init_TypeDef::filter

Enable filter, only available in pcntModeOvsSingle* mode.


Definition at line 273 of file platform/emlib/inc/em_pcnt.h