Struct bsec::bme::bme680::Bme680Sensor

source ·
pub struct Bme680Sensor<I2C, D>where
    I2C: Read + Write,
    D: DelayMs<u8>,{ /* private fields */ }
Expand description

Implementation of the BmeSensor trait for the BME680 sensor.

For the gas resistance measurement, the last reading of the temperature sensor will be used as ambient temperature.

Use Bme680SensorBuilder to create instances of this struct.

Trait Implementations§

source§

impl<I2C, D> BmeSensor for Bme680Sensor<I2C, D>where D: DelayMs<u8>, I2C: Read + Write, <I2C as Read>::Error: Debug, <I2C as Write>::Error: Debug,

§

type Error = Error<<I2C as Read<u8>>::Error, <I2C as Write<u8>>::Error>

Error type if an operation with the sensor fails.
source§

fn start_measurement( &mut self, settings: &BmeSettingsHandle<'_> ) -> Result<Duration, Self::Error>

Starts a sensor measurement. Read more
source§

fn get_measurement(&mut self) -> Result<Vec<Input>, Self::Error>

Read a finished sensor measurement. Read more

Auto Trait Implementations§

§

impl<I2C, D> RefUnwindSafe for Bme680Sensor<I2C, D>where D: RefUnwindSafe, I2C: RefUnwindSafe,

§

impl<I2C, D> Send for Bme680Sensor<I2C, D>where D: Send, I2C: Send,

§

impl<I2C, D> Sync for Bme680Sensor<I2C, D>where D: Sync, I2C: Sync,

§

impl<I2C, D> Unpin for Bme680Sensor<I2C, D>where D: Unpin, I2C: Unpin,

§

impl<I2C, D> UnwindSafe for Bme680Sensor<I2C, D>where D: UnwindSafe, I2C: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.