pub struct Qei<TIM: Instance> { /* private fields */ }
Expand description
Hardware quadrature encoder interface peripheral
Implementations§
Source§impl<TIM: Instance> Qei<TIM>
impl<TIM: Instance> Qei<TIM>
Sourcepub fn new(
tim: TIM,
pins: (impl Into<<TIM as CPin<0>>::Ch<PushPull>>, impl Into<<TIM as CPin<1>>::Ch<PushPull>>),
) -> Self
pub fn new( tim: TIM, pins: (impl Into<<TIM as CPin<0>>::Ch<PushPull>>, impl Into<<TIM as CPin<1>>::Ch<PushPull>>), ) -> Self
Configures a TIM peripheral as a quadrature encoder interface input
Trait Implementations§
Auto Trait Implementations§
impl<TIM> Freeze for Qei<TIM>
impl<TIM> RefUnwindSafe for Qei<TIM>where
TIM: RefUnwindSafe,
<TIM as TimCPin<0>>::Ch<PushPull>: RefUnwindSafe,
<TIM as TimCPin<1>>::Ch<PushPull>: RefUnwindSafe,
impl<TIM> Send for Qei<TIM>
impl<TIM> Sync for Qei<TIM>
impl<TIM> Unpin for Qei<TIM>
impl<TIM> UnwindSafe for Qei<TIM>where
TIM: UnwindSafe,
<TIM as TimCPin<0>>::Ch<PushPull>: UnwindSafe,
<TIM as TimCPin<1>>::Ch<PushPull>: UnwindSafe,
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