[][src]Trait adxl355::Accelerometer

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

Accelerometers which measure acceleration vectors of type V

Associated Types

type Error: Debug

Error type

Loading content...

Required methods

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

Get acceleration vector reading from the accelerometer

Loading content...

Implementors

impl<SPI, CS, E> Accelerometer<I32x3> for Adxl355<SPI, CS> where
    SPI: Transfer<u8, Error = E> + Write<u8, Error = E>,
    CS: OutputPin<Error = ()>,
    E: Debug
[src]

type Error = Error<E>

fn acceleration(&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...