pub enum Error<I>where
I: I2c,{
WriteError(I::Error),
WriteReadError(I::Error),
WrongDevice,
}Expand description
Errors that can occur during normal sensor operation.
These errors typically happen when:
- Reading sensor data
- Writing configuration values
- Accessing the FIFO buffer
- Loading DMP firmware
Variants§
WriteError(I::Error)
Failed to write data to sensor Common causes:
- I2C bus busy
- Device not responding
- Incorrect address
WriteReadError(I::Error)
Failed to read data from sensor Common causes:
- I2C bus busy
- Device not responding
- Invalid register address
WrongDevice
Connected device is not an MPU6050 Common causes:
- Wrong device connected
- Incorrect I2C address
- Device malfunction
Trait Implementations§
Auto Trait Implementations§
impl<I> Freeze for Error<I>
impl<I> RefUnwindSafe for Error<I>
impl<I> Send for Error<I>
impl<I> Sync for Error<I>
impl<I> Unpin for Error<I>
impl<I> UnwindSafe for Error<I>
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