Struct stm32f407g_disc::qei::Qei[][src]

pub struct Qei<TIM, PINS> { /* fields omitted */ }

Hardware quadrature encoder interface peripheral

Implementations

impl<TIM, PINS> Qei<TIM, PINS> where
    TIM: Instance
[src]

pub fn new(tim: TIM, pins: PINS) -> Qei<TIM, PINS> where
    PINS: Pins<TIM>, 
[src]

Configures a TIM peripheral as a quadrature encoder interface input

pub fn release(self) -> (TIM, PINS)[src]

Releases the TIM peripheral and QEI pins

impl<PINS> Qei<TIM1, PINS>[src]

pub fn tim1(tim: TIM1, pins: PINS) -> Qei<TIM1, PINS> where
    PINS: Pins<TIM1>, 
[src]

👎 Deprecated since 0.9.0:

Please use new instead

Configures a TIM peripheral as a quadrature encoder interface input

impl<PINS> Qei<TIM5, PINS>[src]

pub fn tim5(tim: TIM5, pins: PINS) -> Qei<TIM5, PINS> where
    PINS: Pins<TIM5>, 
[src]

👎 Deprecated since 0.9.0:

Please use new instead

Configures a TIM peripheral as a quadrature encoder interface input

impl<PINS> Qei<TIM2, PINS>[src]

pub fn tim2(tim: TIM2, pins: PINS) -> Qei<TIM2, PINS> where
    PINS: Pins<TIM2>, 
[src]

👎 Deprecated since 0.9.0:

Please use new instead

Configures a TIM peripheral as a quadrature encoder interface input

impl<PINS> Qei<TIM3, PINS>[src]

pub fn tim3(tim: TIM3, pins: PINS) -> Qei<TIM3, PINS> where
    PINS: Pins<TIM3>, 
[src]

👎 Deprecated since 0.9.0:

Please use new instead

Configures a TIM peripheral as a quadrature encoder interface input

impl<PINS> Qei<TIM4, PINS>[src]

pub fn tim4(tim: TIM4, pins: PINS) -> Qei<TIM4, PINS> where
    PINS: Pins<TIM4>, 
[src]

👎 Deprecated since 0.9.0:

Please use new instead

Configures a TIM peripheral as a quadrature encoder interface input

impl<PINS> Qei<TIM8, PINS>[src]

pub fn tim8(tim: TIM8, pins: PINS) -> Qei<TIM8, PINS> where
    PINS: Pins<TIM8>, 
[src]

👎 Deprecated since 0.9.0:

Please use new instead

Configures a TIM peripheral as a quadrature encoder interface input

Trait Implementations

impl<TIM, PINS> Qei for Qei<TIM, PINS> where
    TIM: Instance
[src]

type Count = <TIM as Instance>::Count

The type of the value returned by count

Auto Trait Implementations

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.