PRS sources for s0PRS
and s1PRS
.
Initialization structure.
Public Attributes#
Mode to operate in.
Initial counter value (refer to reference manual for max value allowed).
Initial top value (refer to reference manual for max value allowed).
Polarity of incoming edge.
Counting direction, only applicable for pcntModeOvsSingle and pcntModeExtSingle modes.
Enable filter, only available in pcntModeOvsSingle* mode.
Public Attribute Documentation#
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.
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.
negEdge#
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.
countDown#
bool PCNT_Init_TypeDef::countDown
Counting direction, only applicable for pcntModeOvsSingle and pcntModeExtSingle modes.