pub enum SdMmcError {
Show 13 variants Transport, CantEnableCRC, TimeoutReadBuffer, TimeoutWaitNotBusy, TimeoutCommand(u8), TimeoutACommand(u8), Cmd58Error, RegisterReadError, CrcError(u16u16), ReadError, WriteError, BadState, CardNotFound,
}
Expand description

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

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.