[][src]Trait wio_terminal::prelude::RawAccelerometer

pub trait RawAccelerometer<V> where
    V: Vector
{ type Error: Debug; pub 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[src]

Error type

Loading content...

Required methods

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

Get raw acceleration data from the accelerometer

Loading content...

Implementations on Foreign Types

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

type Error = Error<E>

pub fn accel_raw(
    &mut self
) -> Result<I16x3, Error<<Lis3dh<I2C> as RawAccelerometer<I16x3>>::Error>>
[src]

Get raw acceleration data from the accelerometer. You should be reading based on data ready interrupt or if reading in a tight loop you should waiting for is_data_ready.

Loading content...

Implementors

Loading content...