pub struct Bme280Bus<SPI> { /* private fields */ }Expand description
BME280 bus.
Implementations§
Trait Implementations§
Source§impl<SPI> Bme280Bus for Bme280Bus<SPI>where
SPI: SpiDevice,
impl<SPI> Bme280Bus for Bme280Bus<SPI>where
SPI: SpiDevice,
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.
Source§impl<SPI> Bme280BusAsync for Bme280Bus<SPI>where
SPI: SpiDevice,
impl<SPI> Bme280BusAsync for Bme280Bus<SPI>where
SPI: SpiDevice,
Source§async fn read_regs(
&mut self,
reg: u8,
buf: &mut [u8],
) -> Result<(), Self::Error>
async fn read_regs( &mut self, reg: u8, buf: &mut [u8], ) -> Result<(), Self::Error>
Read from the BME280. Read more
Source§async fn write_reg(&mut self, reg: u8, data: u8) -> Result<(), Self::Error>
async fn write_reg(&mut self, reg: u8, data: u8) -> Result<(), Self::Error>
Write a single register to the BME280. Read more
Source§async fn calibration(&mut self) -> Result<Calibration, Self::Error>
async fn calibration(&mut self) -> Result<Calibration, Self::Error>
Read the calibration from the chip.
Auto Trait Implementations§
impl<SPI> Freeze for Bme280Bus<SPI>where
SPI: Freeze,
impl<SPI> RefUnwindSafe for Bme280Bus<SPI>where
SPI: RefUnwindSafe,
impl<SPI> Send for Bme280Bus<SPI>where
SPI: Send,
impl<SPI> Sync for Bme280Bus<SPI>where
SPI: Sync,
impl<SPI> Unpin for Bme280Bus<SPI>where
SPI: Unpin,
impl<SPI> UnwindSafe for Bme280Bus<SPI>where
SPI: 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