Struct esp32s2_hal::pcnt::channel::Config
source · 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: boolTrait 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