[−][src]Struct bmi088::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]
&self,
i2c: I2C,
address: u8
) -> Accelerometer<I2cInterface<I2C>> where
I2C: Write<Error = CommE> + Read<Error = CommE> + WriteRead<Error = CommE>,
CommE: Debug,
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]
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,
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]
&self,
i2c: I2C,
address: u8
) -> Gyroscope<I2cInterface<I2C>> where
I2C: Write<Error = CommE> + Read<Error = CommE> + WriteRead<Error = CommE>,
CommE: Debug,
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]
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,
Create a new driver using SPI interface
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>,