Struct bme280_multibus::i2c::Bme280Bus[][src]

pub struct Bme280Bus<I2C> { /* fields omitted */ }
Expand description

BME280 bus.

Implementations

Creates a new Bme280Bus from a I2C peripheral, and an I2C device address.

Example
use bme280_multibus::i2c::{Address, Bme280Bus};

let mut bme: Bme280Bus<_> = Bme280Bus::new(i2c, Address::SdoGnd);

Free the I2C bus from the BME280.

Example
use bme280_multibus::i2c::{Address, Bme280Bus};

let mut bme: Bme280Bus<_> = Bme280Bus::new(i2c, Address::SdoGnd);
let i2c = bme.free();

Trait Implementations

BME280 bus error.

Read from the BME280. Read more

Write a single register to the BME280. Read more

Read the calibration from the chip.

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.