pub struct CaptureInput<'d, T, C> { /* private fields */ }Expand description
Capture pin wrapper.
This wraps a pin or trigger to make it usable with capture.
Implementations§
Source§impl<'d, T: GeneralInstance4Channel, C: TimerChannel> CaptureInput<'d, T, C>
impl<'d, T: GeneralInstance4Channel, C: TimerChannel> CaptureInput<'d, T, C>
Sourcepub fn from_pin(pin: Peri<'d, impl TimerPin<T, C>>, pull: Pull) -> Self
pub fn from_pin(pin: Peri<'d, impl TimerPin<T, C>>, pull: Pull) -> Self
Create a new capture pin instance.
Sourcepub fn from_trigger(trigger: impl TimerInputTrigger<T, C>) -> Self
pub fn from_trigger(trigger: impl TimerInputTrigger<T, C>) -> Self
Create a new capture pin instance.
Auto Trait Implementations§
impl<'d, T, C> Freeze for CaptureInput<'d, T, C>
impl<'d, T, C> RefUnwindSafe for CaptureInput<'d, T, C>where
T: RefUnwindSafe,
C: RefUnwindSafe,
impl<'d, T, C> Send for CaptureInput<'d, T, C>
impl<'d, T, C> Sync for CaptureInput<'d, T, C>
impl<'d, T, C> Unpin for CaptureInput<'d, T, C>
impl<'d, T, C> !UnwindSafe for CaptureInput<'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
Source§impl<T> ToMutAligned for Twhere
T: ?Sized,
impl<T> ToMutAligned for Twhere
T: ?Sized,
Source§fn to_mut_aligned<A>(&mut self) -> &mut Aligned<A, <T as ToMutAligned>::Element>where
A: Alignment,
fn to_mut_aligned<A>(&mut self) -> &mut Aligned<A, <T as ToMutAligned>::Element>where
A: Alignment,
Create a type-checked aligned value from a value that is aligned.