[][src]Struct mpu9250::I2cDevice

pub struct I2cDevice<I2C> { /* fields omitted */ }

An I2C device. Use I2CDevice when the MPU9250 is connected via I2C

Methods

impl<E, I2C> I2cDevice<I2C> where
    I2C: Read<Error = E> + Write<Error = E> + WriteRead<Error = E>, 
[src]

pub fn new(i2c: I2C) -> Self[src]

Create a new I2C device

Trait Implementations

impl<E, I2C> Device for I2cDevice<I2C> where
    I2C: Read<Error = E> + Write<Error = E> + WriteRead<Error = E>, 
[src]

type Error = E

The type of error for all results

impl<I2C, E> NineDOFDevice for I2cDevice<I2C> where
    I2C: Read<Error = E> + Write<Error = E> + WriteRead<Error = E>, 
[src]

Auto Trait Implementations

impl<I2C> Unpin for I2cDevice<I2C> where
    I2C: Unpin

impl<I2C> Send for I2cDevice<I2C> where
    I2C: Send

impl<I2C> Sync for I2cDevice<I2C> where
    I2C: Sync

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]