[][src]Enum remote_hal::common::SpiMode

pub enum SpiMode {
    Mode0,
    Mode1,
    Mode2,
    Mode3,
}

Variants

Mode0

Configure SPI device in mode 0 (CPOL: 0, CPHA: 0)

Mode1

Configure SPI device in mode 1 (CPOL: 0, CPHA: 1)

Mode2

Configure SPI device in mode 2 (CPOL: 1, CPHA: 0)

Mode3

Configure SPI device in mode 3 (CPOL: 0, CPHA: 0)

Trait Implementations

impl Clone for SpiMode[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl ToString for SpiMode[src]

impl Debug for SpiMode[src]

impl FromStr for SpiMode[src]

type Err = SimpleError

The associated error which can be returned from parsing.

impl Serialize for SpiMode[src]

impl<'de> Deserialize<'de> for SpiMode[src]

impl StructOpt for SpiMode[src]

fn from_args() -> Self[src]

Gets the struct from the command line arguments. Print the error message and quit the program in case of failure. Read more

fn from_iter<I>(iter: I) -> Self where
    I: IntoIterator,
    <I as IntoIterator>::Item: Into<OsString>,
    <I as IntoIterator>::Item: Clone
[src]

Gets the struct from any iterator such as a Vec of your making. Print the error message and quit the program in case of failure. Read more

fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
    I: IntoIterator,
    <I as IntoIterator>::Item: Into<OsString>,
    <I as IntoIterator>::Item: Clone
[src]

Gets the struct from any iterator such as a Vec of your making. Read more

Auto Trait Implementations

impl Send for SpiMode

impl Sync for SpiMode

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

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

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.

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<'a, T> TryFrom<&'a str> for T where
    T: FromStr
[src]

type Err = <T as FromStr>::Err

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

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