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: CtrlModePCNT low control mode
hctrl_mode: CtrlModePCNT high control mode
pos_edge: EdgeModePCNT signal positive edge count mode
neg_edge: EdgeModePCNT signal negative edge count mode
invert_ctrl: bool§invert_sig: bool