pub struct Bme280Bus<I2C> { /* private fields */ }Expand description
BME280 bus.
Implementations§
Source§impl<I2C, E> Bme280Bus<I2C>where
I2C: I2c<Error = E>,
impl<I2C, E> Bme280Bus<I2C>where
I2C: I2c<Error = E>,
Trait Implementations§
Source§impl<I2C, E> Bme280Bus for Bme280Bus<I2C>where
I2C: I2c<Error = E>,
impl<I2C, E> Bme280Bus for Bme280Bus<I2C>where
I2C: I2c<Error = E>,
Source§fn 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
Source§fn 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
Source§fn 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> Freeze for Bme280Bus<I2C>where
I2C: Freeze,
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more