[−][src]Struct lsm9ds1::LSM9DS1
LSM9DS1 IMU
Methods
impl<T> LSM9DS1<T> where
T: Interface,
[src]
T: Interface,
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,
T: Send,
impl<T> Sync for LSM9DS1<T> where
T: Sync,
T: Sync,
impl<T> Unpin for LSM9DS1<T> where
T: Unpin,
T: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,