[][src]Struct lsm9ds1::LSM9DS1

pub struct LSM9DS1<T> where
    T: Interface
{ /* fields omitted */ }

LSM9DS1 IMU

Methods

impl<T> LSM9DS1<T> where
    T: Interface
[src]

pub fn accel_is_reacheable(&mut self) -> Result<bool, T::Error>[src]

Verifies communication with WHO_AM_I register

pub fn mag_is_reacheable(&mut self) -> Result<bool, T::Error>[src]

Verifies communication with WHO_AM_I register

pub fn begin_accel(&mut self) -> Result<(), T::Error>[src]

Initializes Accelerometer with sensor settings.

pub fn begin_gyro(&mut self) -> Result<(), T::Error>[src]

Initializes Gyro with sensor settings.

pub fn begin_mag(&mut self) -> Result<(), T::Error>[src]

Initializes Magnetometer with sensor settings.

pub fn accel_data_available(&mut self) -> Result<bool, T::Error>[src]

Sees if new Accelerometer data is available

pub fn gyro_data_available(&mut self) -> Result<bool, T::Error>[src]

Sees if new Gyro data is available

pub fn mag_data_available(&mut self) -> Result<bool, T::Error>[src]

Sees if new Magnetometer data is available

pub fn temp_data_available(&mut self) -> Result<bool, T::Error>[src]

Sees if new Temperature data is available

pub fn read_accel_raw(&mut self) -> Result<(i16, i16, i16), T::Error>[src]

raw accelerometer readings

pub fn read_accel(&mut self) -> Result<(f32, f32, f32), T::Error>[src]

calculated accelerometer readings (x, y, z)

pub fn read_gyro_raw(&mut self) -> Result<(i16, i16, i16), T::Error>[src]

raw gyro readings

pub fn read_gyro(&mut self) -> Result<(f32, f32, f32), T::Error>[src]

calculated gyro readings (x, y, z)

pub fn read_mag_raw(&mut self) -> Result<(i16, i16, i16), T::Error>[src]

raw magnetometer readings

pub fn read_mag(&mut self) -> Result<(f32, f32, f32), T::Error>[src]

calculated magnetometer readings (x, y, z)

pub fn read_temp(&mut self) -> Result<f32, T::Error>[src]

Reads calculated temperature in Celsius

Auto Trait Implementations

impl<T> Send for LSM9DS1<T> where
    T: Send

impl<T> Sync for LSM9DS1<T> where
    T: Sync

impl<T> Unpin for LSM9DS1<T> where
    T: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.