[][src]Trait adxl355::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<SPI, CS, E, EO> RawAccelerometer<I32x3> for Adxl355<SPI, CS> where
    SPI: Transfer<u8, Error = E> + Write<u8, Error = E>,
    CS: OutputPin<Error = EO>,
    E: Debug
[src]

type Error = E

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

Gets acceleration vector reading from the accelerometer Returns a 3D vector with x,y,z, fields in a Result

Loading content...