[][src]Enum embedded_sdmmc::SdMmcError

pub enum SdMmcError {
    Transport,
    CantEnableCRC,
    TimeoutReadBuffer,
    TimeoutWaitNotBusy,
    TimeoutCommand(u8),
    TimeoutACommand(u8),
    Cmd58Error,
    RegisterReadError,
    CrcError(u16u16),
    ReadError,
    WriteError,
    BadState,
    CardNotFound,
    GpioError,
}

The possible errors SdMmcSpi can generate.

Variants

Transport

We got an error from the SPI peripheral

CantEnableCRC

We failed to enable CRC checking on the SD card

TimeoutReadBuffer

We didn't get a response when reading data from the card

TimeoutWaitNotBusy

We didn't get a response when waiting for the card to not be busy

TimeoutCommand(u8)

We didn't get a response when executing this command

TimeoutACommand(u8)

We didn't get a response when executing this application-specific command

Cmd58Error

We got a bad response from Command 58

RegisterReadError

We failed to read the Card Specific Data register

CrcError(u16u16)

We got a CRC mismatch (card gave us, we calculated)

ReadError

Error reading from the card

WriteError

Error writing to the card

BadState

Can't perform this operation with the card in this state

CardNotFound

Couldn't find the card

GpioError

Couldn't set a GPIO pin

Trait Implementations

impl Clone for Error[src]

impl Copy for Error[src]

impl Debug for Error[src]

Auto Trait Implementations

impl RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl UnwindSafe for Error

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.