Struct esp32c6_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 more