Enum mnemos_d1_core::drivers::smhc::ErrorKind
source · #[non_exhaustive]pub enum ErrorKind {
Response,
ResponseCrc,
DataCrc,
ResponseTimeout,
DataTimeout,
DataStarvationTimeout,
FifoUnderrunOverflow,
CommandBusyIllegalWrite,
DataStart,
DataEnd,
Dma,
Other,
}
Expand description
The different errors that can occur in this module.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Response
A transmit bit error, end bit error, or CMD index error has occurred.
ResponseCrc
Invalid CRC in response.
DataCrc
When receiving data, this means that the received data has data CRC error. When transmitting data, this means that the received CRC status taken is negative.
ResponseTimeout
Did not receive a response in time.
DataTimeout
Did not receive data in time.
DataStarvationTimeout
Data starvation detected.
FifoUnderrunOverflow
FIFO underrun or overflow.
CommandBusyIllegalWrite
Command busy and illegal write. TODO: understand this + add better explanation
DataStart
When receiving data, this means that the host controller found an error start bit. When transmitting data, this means that the busy signal is cleared after the last block.
DataEnd
When receiving data, this means that we did not receive a valid data end bit. When transmitting data, this means that we did not receive the CRC status token.
Dma
An error occurred in the internal DMA controller.
Other
A different error occurred. The original error may contain more information.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)