Enum md22::OperatingMode[][src]

pub enum OperatingMode {
    Mode0,
    Mode1,
}

I2C operating mode

Variants

Mode0

(Default) The meaning of the speed registers is literal speeds in the range of:

  • 0 (full reverse)
  • 128 (stop)
  • 255 (full forward)
Mode1

The speed registers are interpreted as signed values:

  • -128 (full reverse)
  • 0 (stop)
  • 127 (full forward)

Implementations

impl OperatingMode[src]

pub fn bits(self) -> u8[src]

Get raw representation of operating mode.

pub fn is_turn_mode(&self) -> bool[src]

Trait Implementations

impl Clone for OperatingMode[src]

impl Copy for OperatingMode[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.