pub struct CapturePin<'d, T, C> { /* private fields */ }
Expand description
Capture pin wrapper.
This wraps a pin to make it usable with capture.
Implementations§
source§impl<'d, T: GeneralInstance4Channel> CapturePin<'d, T, Ch1>
impl<'d, T: GeneralInstance4Channel> CapturePin<'d, T, Ch1>
sourcepub fn new_ch1(
pin: impl Peripheral<P = impl Channel1Pin<T>> + 'd,
pull: Pull,
) -> Self
pub fn new_ch1( pin: impl Peripheral<P = impl Channel1Pin<T>> + 'd, pull: Pull, ) -> Self
Create a new Ch1 capture pin instance.
source§impl<'d, T: GeneralInstance4Channel> CapturePin<'d, T, Ch2>
impl<'d, T: GeneralInstance4Channel> CapturePin<'d, T, Ch2>
sourcepub fn new_ch2(
pin: impl Peripheral<P = impl Channel2Pin<T>> + 'd,
pull: Pull,
) -> Self
pub fn new_ch2( pin: impl Peripheral<P = impl Channel2Pin<T>> + 'd, pull: Pull, ) -> Self
Create a new Ch2 capture pin instance.
source§impl<'d, T: GeneralInstance4Channel> CapturePin<'d, T, Ch3>
impl<'d, T: GeneralInstance4Channel> CapturePin<'d, T, Ch3>
sourcepub fn new_ch3(
pin: impl Peripheral<P = impl Channel3Pin<T>> + 'd,
pull: Pull,
) -> Self
pub fn new_ch3( pin: impl Peripheral<P = impl Channel3Pin<T>> + 'd, pull: Pull, ) -> Self
Create a new Ch3 capture pin instance.
source§impl<'d, T: GeneralInstance4Channel> CapturePin<'d, T, Ch4>
impl<'d, T: GeneralInstance4Channel> CapturePin<'d, T, Ch4>
sourcepub fn new_ch4(
pin: impl Peripheral<P = impl Channel4Pin<T>> + 'd,
pull: Pull,
) -> Self
pub fn new_ch4( pin: impl Peripheral<P = impl Channel4Pin<T>> + 'd, pull: Pull, ) -> Self
Create a new Ch4 capture pin instance.
Auto Trait Implementations§
impl<'d, T, C> Freeze for CapturePin<'d, T, C>
impl<'d, T, C> RefUnwindSafe for CapturePin<'d, T, C>where
T: RefUnwindSafe,
C: RefUnwindSafe,
impl<'d, T, C> Send for CapturePin<'d, T, C>
impl<'d, T, C> Sync for CapturePin<'d, T, C>
impl<'d, T, C> Unpin for CapturePin<'d, T, C>
impl<'d, T, C> !UnwindSafe for CapturePin<'d, T, C>
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