pub enum Error<E> {
InvalidDevice(u8),
ModeNotSupported(u8),
BusError(E),
CalibrationError,
ReInitError,
DmpRead,
DmpWrite,
DmpFirmware,
DmpDataNotReady,
DmpDataInvalid,
}
Expand description
MPU Error
Variants§
InvalidDevice(u8)
WHO_AM_I returned invalid value (returned value is argument).
ModeNotSupported(u8)
Mode not supported by device (WHO_AM_I is argument)
BusError(E)
Underlying bus error.
CalibrationError
Calibration error (not enough data gathered)
ReInitError
Reinitialization error (user provided function was unable to re-init device)
DmpRead
DMP read internal memory error
DmpWrite
DMP write internal memory error
DmpFirmware
DMP firmware loading error
DmpDataNotReady
DMP data are not ready yet
DmpDataInvalid
DMP data do not correspond to the expected format
Trait Implementations§
impl<E: Copy> Copy for Error<E>
Auto Trait Implementations§
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