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

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.

Required Associated Types§

source

type Error: Debug

Error type

Required Methods§

source

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

Get raw acceleration data from the accelerometer

Implementors§

source§

impl<I2C, E> RawAccelerometer<I16x3> for Lis2dh12<I2C>
where I2C: WriteRead<Error = E> + Write<Error = E>, E: Debug,

§

type Error = E