Struct embassy_stm32::timer::qei::QeiPin
source · pub struct QeiPin<'d, T, Channel> { /* private fields */ }
Expand description
Wrapper for using a pin with QEI.
Implementations§
source§impl<'d, T: CaptureCompare16bitInstance> QeiPin<'d, T, Ch1>
impl<'d, T: CaptureCompare16bitInstance> QeiPin<'d, T, Ch1>
sourcepub fn new_ch1(pin: impl Peripheral<P = impl Channel1Pin<T>> + 'd) -> Self
pub fn new_ch1(pin: impl Peripheral<P = impl Channel1Pin<T>> + 'd) -> Self
Create a new Ch1 QEI pin instance.
source§impl<'d, T: CaptureCompare16bitInstance> QeiPin<'d, T, Ch2>
impl<'d, T: CaptureCompare16bitInstance> QeiPin<'d, T, Ch2>
sourcepub fn new_ch2(pin: impl Peripheral<P = impl Channel2Pin<T>> + 'd) -> Self
pub fn new_ch2(pin: impl Peripheral<P = impl Channel2Pin<T>> + 'd) -> Self
Create a new Ch2 QEI pin instance.
Auto Trait Implementations§
impl<'d, T, Channel> Freeze for QeiPin<'d, T, Channel>
impl<'d, T, Channel> RefUnwindSafe for QeiPin<'d, T, Channel>where
T: RefUnwindSafe,
Channel: RefUnwindSafe,
impl<'d, T, Channel> Send for QeiPin<'d, T, Channel>
impl<'d, T, Channel> Sync for QeiPin<'d, T, Channel>
impl<'d, T, Channel> Unpin for QeiPin<'d, T, Channel>
impl<'d, T, Channel> !UnwindSafe for QeiPin<'d, T, Channel>
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