[−][src]Struct embedded_drivers::bme280::BME280
Representation of a BME280
Implementations
impl<I2C, E> BME280<I2C> where
I2C: Read<Error = E> + Write<Error = E> + WriteRead<Error = E>,
[src]
I2C: Read<Error = E> + Write<Error = E> + WriteRead<Error = E>,
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]
&mut self,
delay: &mut D
) -> Result<Measurements<E>, Error<E>>
Captures and processes sensor data for temperature, pressure, and humidity
Trait Implementations
Auto Trait Implementations
impl<I2C> Send for BME280<I2C> where
I2C: Send,
[src]
I2C: Send,
impl<I2C> Sync for BME280<I2C> where
I2C: Sync,
[src]
I2C: Sync,
impl<I2C> Unpin for BME280<I2C> where
I2C: Unpin,
[src]
I2C: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,