Struct esp32_hal::pcnt::channel::PcntSource
source · pub struct PcntSource { /* private fields */ }
Expand description
PcntPin can be always high, always low, or an actual pin
Implementations§
source§impl PcntSource
impl PcntSource
pub fn from_pin<'a, P>(pin: impl Peripheral<P = P> + 'a) -> PcntSourcewhere
P: InputPin,
pub fn always_high() -> PcntSource
pub fn always_low() -> PcntSource
Trait Implementations§
source§impl Clone for PcntSource
impl Clone for PcntSource
source§fn clone(&self) -> PcntSource
fn clone(&self) -> PcntSource
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for PcntSource
Auto Trait Implementations§
impl RefUnwindSafe for PcntSource
impl Send for PcntSource
impl Sync for PcntSource
impl Unpin for PcntSource
impl UnwindSafe for PcntSource
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