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]
TIM: Instance,
pub fn new(tim: TIM, pins: PINS) -> Qei<TIM, PINS> where
PINS: Pins<TIM>,
[src]
PINS: Pins<TIM>,
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]
PINS: Pins<TIM1>,
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]
PINS: Pins<TIM5>,
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]
PINS: Pins<TIM2>,
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]
PINS: Pins<TIM3>,
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]
PINS: Pins<TIM4>,
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]
PINS: Pins<TIM8>,
Please use new instead
Configures a TIM peripheral as a quadrature encoder interface input
Trait Implementations
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,
impl<TIM, PINS> Unpin for Qei<TIM, PINS> where
PINS: Unpin,
TIM: Unpin,
PINS: Unpin,
TIM: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,