Struct stm32f103xx_hal::qei::Qei
[−]
[src]
pub struct Qei<TIM, PINS> { /* fields omitted */ }
Methods
impl<PINS> Qei<TIM2, PINS>
[src]
pub fn tim2(tim: TIM2, pins: PINS, mapr: &mut MAPR, apb: &mut APB1) -> Self where
PINS: Pins<TIM2>,
[src]
PINS: Pins<TIM2>,
impl<PINS> Qei<TIM3, PINS>
[src]
pub fn tim3(tim: TIM3, pins: PINS, mapr: &mut MAPR, apb: &mut APB1) -> Self where
PINS: Pins<TIM3>,
[src]
PINS: Pins<TIM3>,
impl<PINS> Qei<TIM4, PINS>
[src]
pub fn tim4(tim: TIM4, pins: PINS, mapr: &mut MAPR, apb: &mut APB1) -> Self where
PINS: Pins<TIM4>,
[src]
PINS: Pins<TIM4>,
impl<PINS> Qei<TIM2, PINS>
[src]
impl<PINS> Qei<TIM3, PINS>
[src]
impl<PINS> Qei<TIM4, PINS>
[src]
Trait Implementations
impl<PINS> Qei for Qei<TIM2, PINS>
[src]
type Count = u16
The type of the value returned by count
fn count(&self) -> u16
[src]
Returns the current pulse count of the encoder
fn direction(&self) -> Direction
[src]
Returns the count direction
impl<PINS> Qei for Qei<TIM3, PINS>
[src]
type Count = u16
The type of the value returned by count
fn count(&self) -> u16
[src]
Returns the current pulse count of the encoder
fn direction(&self) -> Direction
[src]
Returns the count direction