Struct bmp280::Bmp280[][src]

pub struct Bmp280 { /* fields omitted */ }

A single BMP280 sensor

Implementations

impl Bmp280[src]

pub fn zero(&mut self) -> Result<f32>[src]

Will set the relative pressure for ground level readings for .read_altitude(). Returns the ground pressure in kpa

pub fn altitude_m_relative(&mut self, sea_level_pa: f32) -> Result<f32>[src]

Reads the altitude from the sensor relative to the given sea level pressure.

pub fn altitude_m(&mut self) -> Result<f32>[src]

Reads the altitude from the sensor relative to the zeroed altitude set by .zero(), Bmp280Builder.ground_pressure(), or Bmp280Builder::build() if you do not set a ground pressure.

pub fn temperature_celsius(&mut self) -> Result<f32>[src]

pub fn pressure_kpa(&mut self) -> Result<f32>[src]

Auto Trait Implementations

impl RefUnwindSafe for Bmp280

impl Send for Bmp280

impl Sync for Bmp280

impl Unpin for Bmp280

impl UnwindSafe for Bmp280

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.