[][src]Struct bmi088::Builder

pub struct Builder {}

Methods

impl Builder[src]

pub fn new_accel_i2c<I2C, CommE>(
    &self,
    i2c: I2C,
    address: u8
) -> Accelerometer<I2cInterface<I2C>> where
    I2C: Write<Error = CommE> + Read<Error = CommE> + WriteRead<Error = CommE>,
    CommE: Debug
[src]

Create a new driver using I2C interface

pub fn new_accel_spi<SPI, CSN, CommE, PinE>(
    spi: SPI,
    csn: CSN
) -> Accelerometer<SpiInterface<SPI, CSN>> where
    SPI: Transfer<u8, Error = CommE> + Write<u8, Error = CommE>,
    CSN: OutputPin<Error = PinE>,
    CommE: Debug,
    PinE: Debug
[src]

Create a new driver using SPI interface

pub fn new_gyro_i2c<I2C, CommE>(
    &self,
    i2c: I2C,
    address: u8
) -> Gyroscope<I2cInterface<I2C>> where
    I2C: Write<Error = CommE> + Read<Error = CommE> + WriteRead<Error = CommE>,
    CommE: Debug
[src]

Create a new driver using I2C interface

pub fn new_gyro_spi<SPI, CSN, CommE, PinE>(
    spi: SPI,
    csn: CSN
) -> Gyroscope<SpiInterface<SPI, CSN>> where
    SPI: Transfer<u8, Error = CommE> + Write<u8, Error = CommE>,
    CSN: OutputPin<Error = PinE>,
    CommE: Debug,
    PinE: Debug
[src]

Create a new driver using SPI interface

Auto Trait Implementations

impl Send for Builder

impl Sync for Builder

impl Unpin for Builder

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.