Trait bme280_multibus::Bme280BusAsync
source · pub trait Bme280BusAsync {
type Error;
// Required methods
async fn read_regs(
&mut self,
reg: u8,
buf: &mut [u8]
) -> Result<(), Self::Error>;
async fn write_reg(&mut self, reg: u8, data: u8) -> Result<(), Self::Error>;
// Provided method
async fn calibration(&mut self) -> Result<Calibration, Self::Error> { ... }
}Available on crate feature
async only.Expand description
Asynchronous BME280 bus.
Required Associated Types§
Required Methods§
Provided Methods§
sourceasync fn calibration(&mut self) -> Result<Calibration, Self::Error>
async fn calibration(&mut self) -> Result<Calibration, Self::Error>
Read the calibration from the chip.
Object Safety§
This trait is not object safe.