#[non_exhaustive]pub enum Error<E> {
Spi(E),
NotPresent,
InitFailed(InitStage),
}Expand description
Errors that can occur while talking to the ATM90E32.
The generic parameter E is the underlying SPI transport error type
(usually <SPI as embedded_hal_async::spi::ErrorType>::Error).
This enum is marked #[non_exhaustive] so future variants can be added
without a semver-breaking change.
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.
Spi(E)
Underlying SPI transport error.
NotPresent
Probe did not find a responsive chip. The SysStatus0 register read
back as 0x0000 or 0xFFFF, indicating either a missing device or
a floating SPI bus.
InitFailed(InitStage)
The initialization sequence failed at the given stage.
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for Error<E>where
E: Freeze,
impl<E> RefUnwindSafe for Error<E>where
E: RefUnwindSafe,
impl<E> Send for Error<E>where
E: Send,
impl<E> Sync for Error<E>where
E: Sync,
impl<E> Unpin for Error<E>where
E: Unpin,
impl<E> UnsafeUnpin for Error<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for Error<E>where
E: UnwindSafe,
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