Enum sdmmc_spi::Error

source ·
pub enum Error<T, S> {
Show 13 variants Transport(T), SelectError(S), CantEnableCRC, TimeoutReadBuffer, TimeoutWaitAvailable, TimeoutCommand(u8), ErrorCommand(u8), RegisterReadError, CrcError(u16u16), ReadError, WriteError, BadState, CardNotFound,
}
Expand description

SdMmcSpi result error.

T - transport error type. S - select switch type.

Variants§

§

Transport(T)

Error from the SPI peripheral.

§

SelectError(S)

Couldn’t set a select.

§

CantEnableCRC

Failed to enable CRC checking on the card.

§

TimeoutReadBuffer

No response when reading data from the card.

§

TimeoutWaitAvailable

No response when waiting for the card to not be busy.

§

TimeoutCommand(u8)

No response when executing this command.

§

ErrorCommand(u8)

Command error.

§

RegisterReadError

Failed to read the Card Specific Data register.

§

CrcError(u16u16)

CRC mismatch (card, host).

§

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
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

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.

Consumes the IoPin returning a Switch of the appropriate ActiveLevel. Read more
Consumes the IoPin returning a Switch<IoPin, ActiveLow>. Read more
Consumes the IoPin returning a Switch<IoPin, ActiveHigh>. Read more
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.