[−][src]Trait wio_terminal::prelude::RawAccelerometer
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
Loading content...Required methods
pub fn accel_raw(&mut self) -> Result<V, Error<Self::Error>>
[src]
Get raw acceleration data from the accelerometer
Implementations on Foreign Types
impl<I2C, E> RawAccelerometer<I16x3> for Lis3dh<I2C> where
E: Debug,
I2C: WriteRead<Error = E> + Write<Error = E>,
[src]
E: Debug,
I2C: WriteRead<Error = E> + Write<Error = E>,
type Error = Error<E>
pub fn accel_raw(
&mut self
) -> Result<I16x3, Error<<Lis3dh<I2C> as RawAccelerometer<I16x3>>::Error>>
[src]
&mut self
) -> Result<I16x3, Error<<Lis3dh<I2C> as RawAccelerometer<I16x3>>::Error>>
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
.