use crate::ImplError;
#[derive(Debug, Clone)]
#[non_exhaustive]
pub enum MciError {
DataError(CommandOrDataError),
CommandInhibited,
CommandError(CommandOrDataError),
Adma,
GroupBusy,
CiaCouldNotFindTuple,
IncorrectDataSize,
CouldNotSelectDevice,
NoCard,
UnusableCard,
ReadError,
WriteProtected,
WriteError,
PinLevelReadError,
Setup(SetupError),
Impl(ImplError),
}
#[derive(Debug, Clone)]
#[non_exhaustive]
pub enum SetupError {
CouldNotSetBusWidth,
CouldNotSetToHighSpeed,
CouldNotCheckIfIsHighSpeed,
}
#[derive(Debug, Clone)]
#[non_exhaustive]
pub enum CommandOrDataError {
Timeout,
Crc,
EndBit,
Index,
}