[−][src]Struct lsm9ds1::LSM9DS1Init
LSM9DS1 init struct. Use this struct to configure sensors and init LSM9DS1 with an interface of your choice.
Fields
accel: AccelSettings
gyro: GyroSettings
mag: MagSettings
Methods
impl LSM9DS1Init
[src]
pub fn with_interface<T>(self, interface: T) -> LSM9DS1<T> where
T: Interface,
[src]
T: Interface,
Constructs a new LSM9DS1 driver instance with a I2C or SPI peripheral.
Arguments
interface
-SpiInterface
orI2cInterface
Trait Implementations
impl Default for LSM9DS1Init
[src]
Auto Trait Implementations
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>,