Struct i2cdev::sensors::mpl115a2_barometer::MPL115A2BarometerThermometer [] [src]

pub struct MPL115A2BarometerThermometer<T: I2CDevice + Sized> {
    pub i2cdev: T,
    pub coeff: MPL115A2Coefficients,
}

Provides access to the MPL115A2 Temperature and Pressure Sensor

http://cache.freescale.com/files/sensors/doc/data_sheet/MPL115A2.pdf

Fields

i2cdev
coeff

Methods

impl<T> MPL115A2BarometerThermometer<T> where T: I2CDevice + Sized

fn new(i2cdev: T) -> I2CResult<MPL115A2BarometerThermometer<T>>

Create sensor accessor for MPL115A2 on the provided i2c bus path

Trait Implementations

impl<T> Barometer for MPL115A2BarometerThermometer<T> where T: I2CDevice + Sized

fn pressure_kpa(&mut self) -> I2CResult<f32>

impl<T> Thermometer for MPL115A2BarometerThermometer<T> where T: I2CDevice + Sized

fn temperature_celsius(&mut self) -> I2CResult<f32>