[][src]Trait mma8452q::RawAccelerometer

pub trait RawAccelerometer<V> where
    V: Vector
{ type Error: Debug; fn accel_raw(&mut self) -> Result<V, Error<Self::Error>>; }

Read raw acceleration vectors of type V: Vector.

This is intended to provide direct access to raw accelerometer data and should use a vector type which best matches the raw accelerometer data.

Associated Types

type Error: Debug

Error type

Loading content...

Required methods

fn accel_raw(&mut self) -> Result<V, Error<Self::Error>>

Get raw acceleration data from the accelerometer

Loading content...

Implementors

impl<I2C, E> RawAccelerometer<I16x3> for MMA8452q<I2C> where
    I2C: WriteRead<Error = E> + Write<Error = E>,
    E: Debug
[src]

type Error = E

fn accel_raw(&mut self) -> Result<I16x3, Error<E>>[src]

Get the raw unscaled acceleration readings from the accelerometer

Loading content...