Struct bmp280::Bmp280 [−][src]
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]
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>,