[][src]Struct bmi088::Accelerometer

pub struct Accelerometer<SI> { /* fields omitted */ }

Methods

impl<SI, CommE, PinE> Accelerometer<SI> where
    SI: SensorInterface<InterfaceError = Error<CommE, PinE>>, 
[src]

pub fn probe(
    &mut self,
    delay_source: &mut impl DelayMs<u8>
) -> Result<bool, SI::InterfaceError>
[src]

Read the sensor identifiers and return true if they match the expected value

pub fn soft_reset(
    &mut self,
    delay_source: &mut impl DelayMs<u8>
) -> Result<(), SI::InterfaceError>
[src]

Perform a soft reset on the chip

pub fn setup(
    &mut self,
    delay_source: &mut impl DelayMs<u8>
) -> Result<(), SI::InterfaceError>
[src]

Give the sensor interface a chance to set up

pub fn get_accel(&mut self) -> Result<[i16; 3], SI::InterfaceError>[src]

Auto Trait Implementations

impl<SI> Send for Accelerometer<SI> where
    SI: Send

impl<SI> Sync for Accelerometer<SI> where
    SI: Sync

impl<SI> Unpin for Accelerometer<SI> where
    SI: 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.