Struct bosch_bme680::Bme680
source · pub struct Bme680<I2C, D> { /* private fields */ }Expand description
Sensor driver
Implementations§
source§impl<I2C, D> Bme680<I2C, D>where
I2C: WriteRead + Write,
<I2C as WriteRead>::Error: Debug,
<I2C as Write>::Error: Debug,
D: DelayMs<u8>,
impl<I2C, D> Bme680<I2C, D>where
I2C: WriteRead + Write,
<I2C as WriteRead>::Error: Debug,
<I2C as Write>::Error: Debug,
D: DelayMs<u8>,
sourcepub fn new(
i2c_interface: I2C,
device_address: DeviceAddress,
delayer: D,
sensor_config: &Configuration,
ambient_temperature: i32
) -> Result<Self, BmeError<I2C>>
pub fn new(
i2c_interface: I2C,
device_address: DeviceAddress,
delayer: D,
sensor_config: &Configuration,
ambient_temperature: i32
) -> Result<Self, BmeError<I2C>>
Creates a new instance of the Sensor
Arguments
delayer- Used to wait for the triggered measurment to finishambient_temperature- Needed to calculate the heater target temperature
sourcepub fn into_inner(self) -> I2C
pub fn into_inner(self) -> I2C
Returns the wrapped i2c interface