pub struct Qei<'d, T: GeneralInstance4Channel> { /* private fields */ }
Expand description
Quadrature decoder driver.
Implementations§
Source§impl<'d, T: GeneralInstance4Channel> Qei<'d, T>
impl<'d, T: GeneralInstance4Channel> Qei<'d, T>
Sourcepub fn new<CH1: QeiChannel, CH2: QeiChannel, A>(
tim: Peri<'d, T>,
ch1: Peri<'d, impl TimerPin<T, CH1, A>>,
ch2: Peri<'d, impl TimerPin<T, CH2, A>>,
config: Config,
) -> Self
pub fn new<CH1: QeiChannel, CH2: QeiChannel, A>( tim: Peri<'d, T>, ch1: Peri<'d, impl TimerPin<T, CH1, A>>, ch2: Peri<'d, impl TimerPin<T, CH2, A>>, config: Config, ) -> Self
Create a new quadrature decoder driver, with a given Config
.
Sourcepub fn read_direction(&self) -> Direction
pub fn read_direction(&self) -> Direction
Get direction.
Auto Trait Implementations§
impl<'d, T> Freeze for Qei<'d, T>where
T: Freeze,
impl<'d, T> RefUnwindSafe for Qei<'d, T>where
T: RefUnwindSafe,
impl<'d, T> Send for Qei<'d, T>where
T: Send,
impl<'d, T> Sync for Qei<'d, T>where
T: Sync,
impl<'d, T> Unpin for Qei<'d, T>where
T: Unpin,
impl<'d, T> !UnwindSafe for Qei<'d, T>
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