pub enum Error<E> {
I2c(E),
InvalidChipId(u8),
InvalidMode,
Init,
Data,
}
Expand description
Driver error type.
This error type wraps the underlying I2C error and adds BMI323-specific error conditions.
Variants§
I2c(E)
I2C communication error
InvalidChipId(u8)
Chip ID mismatch (expected 0x43)
InvalidMode
Invalid mode or configuration
Init
Initialization failed (e.g., feature engine activation timeout)
Data
Data error (e.g., timeout waiting for data ready)
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> 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