Struct stm32f4xx_hal::qei::Qei
source · [−]pub struct Qei<TIM, PINS> { /* private fields */ }
Expand description
Hardware quadrature encoder interface peripheral
Implementations
sourceimpl<TIM: Instance, PC1, PC2> Qei<TIM, (PC1, PC2)>where
(PC1, PC2): Pins<TIM>,
impl<TIM: Instance, PC1, PC2> Qei<TIM, (PC1, PC2)>where
(PC1, PC2): Pins<TIM>,
sourcepub fn new(tim: TIM, pins: (PC1, PC2)) -> Self
pub fn new(tim: TIM, pins: (PC1, PC2)) -> Self
Configures a TIM peripheral as a quadrature encoder interface input
sourcepub fn release(self) -> (TIM, (PC1, PC2))
pub fn release(self) -> (TIM, (PC1, PC2))
Releases the TIM peripheral and QEI pins
Trait Implementations
Auto Trait Implementations
impl<TIM, PINS> RefUnwindSafe for Qei<TIM, PINS>where
PINS: RefUnwindSafe,
TIM: RefUnwindSafe,
impl<TIM, PINS> Send for Qei<TIM, PINS>where
PINS: Send,
TIM: Send,
impl<TIM, PINS> Sync for Qei<TIM, PINS>where
PINS: Sync,
TIM: Sync,
impl<TIM, PINS> Unpin for Qei<TIM, PINS>where
PINS: Unpin,
TIM: Unpin,
impl<TIM, PINS> UnwindSafe for Qei<TIM, PINS>where
PINS: UnwindSafe,
TIM: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more