#[non_exhaustive]pub enum SpiError {
Overrun,
ModeFault,
CRCError,
FrameFormat,
Impl(ImplError),
}
Expand description
A SPI specific error.
This error type contains errors specific to SPI peripherals. Also it has an Impl
kind to pass
through implementation specific errors occuring while trying to use a SPI peripheral.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Overrun
The peripheral receive buffer was overrun
ModeFault
Multiple devices on the SPI bus are trying across each other, e.g. in a multi-master setup
CRCError
CRC does not match the received data
FrameFormat
Received data does not conform to the peripheral configuration
Impl(ImplError)
Implementation specific error (shared across all peripheral specific error kinds)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpiError
impl RefUnwindSafe for SpiError
impl Send for SpiError
impl Sync for SpiError
impl Unpin for SpiError
impl UnwindSafe for SpiError
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