pub enum Error<E> {
Bus(E),
InvalidChipId(u8),
FatalError,
FeatureEngineNotReady(u8),
SelfTestTimeout,
}Expand description
Driver error type.
Variants§
Bus(E)
Transport-level bus error returned by the underlying HAL.
InvalidChipId(u8)
The chip ID register did not contain the expected BMI323 identifier.
FatalError
The BMI323 reported a fatal internal error.
FeatureEngineNotReady(u8)
The feature engine did not become ready after the expected init sequence.
SelfTestTimeout
The BMI323 self-test did not complete within the expected timeout.
Trait Implementations§
impl<E: Copy> Copy for Error<E>
impl<E: Eq> Eq for Error<E>
impl<E> StructuralPartialEq for Error<E>
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