pub enum Error<E> {
Bus(E),
InvalidDevice(u8),
InvalidConfig,
BankSwitch,
Magnetometer,
DeviceMoving,
CalibrationOverflow,
FifoOverflow,
}Expand description
Driver errors
Variants§
Bus(E)
Communication error with the device
InvalidDevice(u8)
Invalid WHO_AM_I register value (contains the actual value read)
InvalidConfig
Invalid configuration parameter
BankSwitch
Register bank switching error
Magnetometer
Magnetometer error
DeviceMoving
Device is moving during calibration (variance exceeds threshold)
CalibrationOverflow
Calibration overflow (averaged samples exceed i16 range)
FifoOverflow
FIFO buffer overflow - more records than can fit in output vector (max 64)
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