[][src]Trait accelerometer::RawAccelerometer

pub trait RawAccelerometer<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

Loading content...