[][src]Struct embedded_drivers::bme280::BME280

pub struct BME280<I2C> { /* fields omitted */ }

Representation of a BME280

Implementations

impl<I2C, E> BME280<I2C> where
    I2C: Read<Error = E> + Write<Error = E> + WriteRead<Error = E>, 
[src]

pub fn new_primary(i2c: I2C) -> Self[src]

Create a new BME280 struct using the primary I²C address 0x76

pub fn new_secondary(i2c: I2C) -> Self[src]

Create a new BME280 struct using the secondary I²C address 0x77

pub fn new(i2c: I2C, address: u8) -> Self[src]

Create a new BME280 struct using a custom I²C address

pub fn init<D: DelayMs<u8>>(&mut self, delay: &mut D) -> Result<(), Error<E>>[src]

Initializes the BME280

pub fn release(self) -> I2C[src]

pub fn measure<D: DelayMs<u8>>(
    &mut self,
    delay: &mut D
) -> Result<Measurements<E>, Error<E>>
[src]

Captures and processes sensor data for temperature, pressure, and humidity

Trait Implementations

impl<I2C: Debug> Debug for BME280<I2C>[src]

impl<I2C: Default> Default for BME280<I2C>[src]

Auto Trait Implementations

impl<I2C> Send for BME280<I2C> where
    I2C: Send
[src]

impl<I2C> Sync for BME280<I2C> where
    I2C: Sync
[src]

impl<I2C> Unpin for BME280<I2C> where
    I2C: Unpin
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.