pub struct Config {
pub lctrl_mode: CtrlMode,
pub hctrl_mode: CtrlMode,
pub pos_edge: EdgeMode,
pub neg_edge: EdgeMode,
pub invert_ctrl: bool,
pub invert_sig: bool,
}
Expand description
Pulse Counter configuration for a single channel
Fields§
§lctrl_mode: CtrlMode
PCNT low control mode
hctrl_mode: CtrlMode
PCNT high control mode
pos_edge: EdgeMode
PCNT signal positive edge count mode
neg_edge: EdgeMode
PCNT signal negative edge count mode
invert_ctrl: bool
§invert_sig: bool