[][src]Struct lsm9ds1::LSM9DS1Init

pub struct LSM9DS1Init {
    pub accel: AccelSettings,
    pub gyro: GyroSettings,
    pub mag: MagSettings,
}

LSM9DS1 init struct. Use this struct to configure sensors and init LSM9DS1 with an interface of your choice.

Fields

accel: AccelSettingsgyro: GyroSettingsmag: MagSettings

Methods

impl LSM9DS1Init[src]

pub fn with_interface<T>(self, interface: T) -> LSM9DS1<T> where
    T: Interface
[src]

Constructs a new LSM9DS1 driver instance with a I2C or SPI peripheral.

Arguments

  • interface - SpiInterface or I2cInterface

Trait Implementations

impl Default for LSM9DS1Init[src]

Auto Trait Implementations

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.