pub enum CommandError<B: SpiDevice<u8>, P: OutputPin> {
TransferError(B::Error),
HoldPinError(P::Error),
WriteProtectionPinError(P::Error),
Busy,
InvalidAddress,
BufferTooSmall,
BufferUneven,
}Expand description
Error when communicating with the device
Variants§
TransferError(B::Error)
SPI transfer error
HoldPinError(P::Error)
Error while setting GPIO state of HOLD pin
WriteProtectionPinError(P::Error)
Error while setting GPIO state of WP pin
Busy
Chip is still busy executing another operation
InvalidAddress
The given memory address is out of range
BufferTooSmall
The given buffer size is too small for the called operation
BufferUneven
The called operation requires an even buffer size
Trait Implementations§
impl<B: Eq + SpiDevice<u8>, P: Eq + OutputPin> Eq for CommandError<B, P>
Source§impl<B: PartialEq + SpiDevice<u8>, P: PartialEq + OutputPin> PartialEq for CommandError<B, P>
impl<B: PartialEq + SpiDevice<u8>, P: PartialEq + OutputPin> PartialEq for CommandError<B, P>
impl<B: PartialEq + SpiDevice<u8>, P: PartialEq + OutputPin> StructuralPartialEq for CommandError<B, P>
Auto Trait Implementations§
impl<B, P> Freeze for CommandError<B, P>
impl<B, P> RefUnwindSafe for CommandError<B, P>
impl<B, P> Send for CommandError<B, P>
impl<B, P> Sync for CommandError<B, P>
impl<B, P> Unpin for CommandError<B, P>
impl<B, P> UnsafeUnpin for CommandError<B, P>
impl<B, P> UnwindSafe for CommandError<B, P>
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