pub enum Error<E> {
InvalidDevice(u8),
BusError(E),
Timeout,
InvalidAddress(u8),
}
Expand description
MPU Error
Variants§
InvalidDevice(u8)
WHO_AM_I returned invalid value (returned value is argument).
BusError(E)
Underlying bus error.
Timeout
Timeout
InvalidAddress(u8)
I2C address not valid, needs to be between 0x08 and 0x77. It is a 7 bit address thus the range is 0x00 - 0x7F but 0x00 - 0x07 and 0x78 - 0x7F are reserved I2C addresses and cannot be used.
Trait Implementations§
impl<E: Copy> Copy 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> 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