Trait i2csensors::Barometer [] [src]

pub trait Barometer {
    type Error: Error;
    fn pressure_kpa(&mut self) -> Result<f32, Self::Error>;
}

Trait for sensors that provide access to pressure readings

Associated Types

Required Methods

Get a pressure reading from the sensor in kPa

Returns Ok(temperature) if avialable, otherwise returns Err(Self::Error)

Implementors