[][src]Struct stm32f1xx_hal::qei::QeiOptions

pub struct QeiOptions {
    pub slave_mode: SlaveMode,
    pub auto_reload_value: u16,
}

Quadrature Encoder Interface (QEI) options

The Default implementation provides a configuration for a 4-count pulse which counts from 0-65535. The counter wraps back to 0 on overflow.

Fields

slave_mode: SlaveMode

Encoder slave mode

auto_reload_value: u16

Autoreload value

This value allows the maximum count to be configured, up to 65535. Setting a lower value will overflow the counter to 0 sooner.

Trait Implementations

impl Clone for QeiOptions[src]

impl Copy for QeiOptions[src]

impl Debug for QeiOptions[src]

impl Default for QeiOptions[src]

Auto Trait Implementations

impl Send for QeiOptions

impl Sync for QeiOptions

impl Unpin for QeiOptions

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.