Struct bme280_multibus::i2c::Bme280Bus
source · [−]pub struct Bme280Bus<I2C> { /* private fields */ }Expand description
BME280 bus.
Implementations
sourceimpl<I2C, E> Bme280Bus<I2C> where
I2C: Write<Error = E> + WriteRead<Error = E>,
impl<I2C, E> Bme280Bus<I2C> where
I2C: Write<Error = E> + WriteRead<Error = E>,
Trait Implementations
sourceimpl<I2C, E> Bme280Bus for Bme280Bus<I2C> where
I2C: Write<Error = E> + WriteRead<Error = E>,
impl<I2C, E> Bme280Bus for Bme280Bus<I2C> where
I2C: Write<Error = E> + WriteRead<Error = E>,
type Error = E
type Error = E
BME280 bus error.
sourcefn read_regs(&mut self, reg: u8, buf: &mut [u8]) -> Result<(), Self::Error>
fn read_regs(&mut self, reg: u8, buf: &mut [u8]) -> Result<(), Self::Error>
Read from the BME280. Read more
sourcefn write_reg(&mut self, reg: u8, data: u8) -> Result<(), Self::Error>
fn write_reg(&mut self, reg: u8, data: u8) -> Result<(), Self::Error>
Write a single register to the BME280. Read more
sourcefn calibration(&mut self) -> Result<Calibration, Self::Error>
fn calibration(&mut self) -> Result<Calibration, Self::Error>
Read the calibration from the chip.
Auto Trait Implementations
impl<I2C> RefUnwindSafe for Bme280Bus<I2C> where
I2C: RefUnwindSafe,
impl<I2C> Send for Bme280Bus<I2C> where
I2C: Send,
impl<I2C> Sync for Bme280Bus<I2C> where
I2C: Sync,
impl<I2C> Unpin for Bme280Bus<I2C> where
I2C: Unpin,
impl<I2C> UnwindSafe for Bme280Bus<I2C> where
I2C: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more