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
Trait Implementations§
impl Copy for Config
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more