[−][src]Struct stm32f7x7_hal::qei::Qei
Hardware quadrature encoder interface peripheral
Methods
impl<PINS> Qei<TIM1, PINS>[src]
pub fn tim1(tim: TIM1, pins: PINS) -> Self where
PINS: Pins<TIM1>, [src]
PINS: Pins<TIM1>,
Configures a TIM peripheral as a quadrature encoder interface input
pub fn release(self) -> (TIM1, PINS)[src]
Releases the TIM peripheral and QEI pins
impl<PINS> Qei<TIM5, PINS>[src]
pub fn tim5(tim: TIM5, pins: PINS) -> Self where
PINS: Pins<TIM5>, [src]
PINS: Pins<TIM5>,
Configures a TIM peripheral as a quadrature encoder interface input
pub fn release(self) -> (TIM5, PINS)[src]
Releases the TIM peripheral and QEI pins
impl<PINS> Qei<TIM2, PINS>[src]
pub fn tim2(tim: TIM2, pins: PINS) -> Self where
PINS: Pins<TIM2>, [src]
PINS: Pins<TIM2>,
Configures a TIM peripheral as a quadrature encoder interface input
pub fn release(self) -> (TIM2, PINS)[src]
Releases the TIM peripheral and QEI pins
impl<PINS> Qei<TIM3, PINS>[src]
pub fn tim3(tim: TIM3, pins: PINS) -> Self where
PINS: Pins<TIM3>, [src]
PINS: Pins<TIM3>,
Configures a TIM peripheral as a quadrature encoder interface input
pub fn release(self) -> (TIM3, PINS)[src]
Releases the TIM peripheral and QEI pins
impl<PINS> Qei<TIM4, PINS>[src]
pub fn tim4(tim: TIM4, pins: PINS) -> Self where
PINS: Pins<TIM4>, [src]
PINS: Pins<TIM4>,
Configures a TIM peripheral as a quadrature encoder interface input
pub fn release(self) -> (TIM4, PINS)[src]
Releases the TIM peripheral and QEI pins
impl<PINS> Qei<TIM8, PINS>[src]
pub fn tim8(tim: TIM8, pins: PINS) -> Self where
PINS: Pins<TIM8>, [src]
PINS: Pins<TIM8>,
Configures a TIM peripheral as a quadrature encoder interface input
pub fn release(self) -> (TIM8, PINS)[src]
Releases the TIM peripheral and QEI pins
Trait Implementations
impl<PINS> Qei for Qei<TIM1, PINS>[src]
type Count = u16
The type of the value returned by count
fn count(&self) -> u16[src]
fn direction(&self) -> Direction[src]
impl<PINS> Qei for Qei<TIM5, PINS>[src]
type Count = u32
The type of the value returned by count
fn count(&self) -> u32[src]
fn direction(&self) -> Direction[src]
impl<PINS> Qei for Qei<TIM2, PINS>[src]
type Count = u32
The type of the value returned by count
fn count(&self) -> u32[src]
fn direction(&self) -> Direction[src]
impl<PINS> Qei for Qei<TIM3, PINS>[src]
type Count = u16
The type of the value returned by count
fn count(&self) -> u16[src]
fn direction(&self) -> Direction[src]
impl<PINS> Qei for Qei<TIM4, PINS>[src]
type Count = u16
The type of the value returned by count
fn count(&self) -> u16[src]
fn direction(&self) -> Direction[src]
impl<PINS> Qei for Qei<TIM8, PINS>[src]
Auto Trait Implementations
impl<TIM, PINS> Send for Qei<TIM, PINS> where
PINS: Send,
TIM: Send,
PINS: Send,
TIM: Send,
impl<TIM, PINS> Sync for Qei<TIM, PINS> where
PINS: Sync,
TIM: Sync,
PINS: Sync,
TIM: Sync,
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self