[][src]Trait mpu9250::NineDOFDevice

pub trait NineDOFDevice: Device + AK8963<Error = Self::Error> {
    fn read_9dof(
        &mut self,
        reg: Register
    ) -> Result<GenericArray<u8, U21>, Self::Error>; }

The trait describes how to aquire 9 degrees-of-freedom measurements (plug a temperature reading) from an MPU

Required methods

fn read_9dof(
    &mut self,
    reg: Register
) -> Result<GenericArray<u8, U21>, Self::Error>

Perform a 9DOF reading

The trait assumes a contiguous reading of (x, y, z) accelerometer, temperature, (x,y,z) gyroscope, and (x, y, z) magnetometer. Essentially, this is the layout of a single SPI read transaction. Any other implementors are required to meet this layout.

Loading content...

Implementors

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

impl<SPI, NCS, E> NineDOFDevice for SpiDevice<SPI, NCS> where
    SPI: Write<u8, Error = E> + Transfer<u8, Error = E>,
    NCS: OutputPin
[src]

Loading content...