pub enum SdMmcError {
}
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(u16, u16)
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§
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more