pub enum Error<T, S> {
Show 13 variants
Transport(T),
SelectError(S),
CantEnableCRC,
TimeoutReadBuffer,
TimeoutWaitAvailable,
TimeoutCommand(u8),
ErrorCommand(u8),
RegisterReadError,
CrcError(u16, u16),
ReadError,
WriteError,
BadState,
CardNotFound,
}
Expand description
SdMmcSpi
result error.
T
- transport error type.
S
- select switch type.
Error from the SPI peripheral.
Failed to enable CRC checking on the card.
No response when reading data from the card.
No response when waiting for the card to not be busy.
No response when executing this command.
Failed to read the Card Specific Data register.
CRC mismatch (card, host).
Error reading from the card.
Error writing to the card.
Can’t perform this operation with the card in this state.
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.
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.