modm API documentation
modm::bmp085data::Data Class Reference
Inheritance diagram for modm::bmp085data::Data:
modm::bmp085data::DataBase

Public Member Functions

int16_t getTemperature ()
 
void getTemperature (int16_t &temp)
 
void getTemperature (float &temp)
 
void getTemperature (double &temp)
 
int32_t getPressure ()
 
CalibrationgetCalibration ()
 DATA Access.
 
void rawPressureTouched ()
 Notify data class about changed buffer of raw pressure data.
 
void rawTemperatureTouched ()
 Notify data class about changed buffer of raw temperature data.
 

Protected Types

enum  { CALIBRATION_CALCULATED = Bit2, TEMPERATURE_CALCULATED = Bit1, PRESSURE_CALCULATED = Bit0 }
 

Protected Member Functions

void calculateCalibratedTemperature ()
 
void calculateCalibratedPressure ()
 

Protected Attributes

Calibration calibration
 
uint8_t meta = 0
 
uint8_t raw [5]
 

Member Enumeration Documentation

anonymous enum
inheritedprotected
Enum ValuesDocumentation
TEMPERATURE_CALCULATED 

Remember if the raw data was already converted to calibrated temperature.

PRESSURE_CALCULATED 

Remember if the raw data was already converted to calibrated pressure.

Member Function Documentation

void Data::calculateCalibratedPressure ( )
inlineprotected
void Data::calculateCalibratedTemperature ( )
inlineprotected

Use the calibration data read from the sensor to calculate the calibrated temperature from the raw data. The result is stored in this struct for further access. Implemented differently for Fixed Point, Single and Double Precision by template specialsation.

int32_t Data::getPressure ( )
inline

Get the calibrated pressure from the device in Pascal.

If recalculation is necessary it is done on the fly. No I2C transaction.

int16_t Data::getTemperature ( )
inline

Get the calibrated temperature for the device in 0.1 degree Celsius

If recalculation is necessary it is done on the fly. No I2C transaction.

Member Data Documentation

uint8_t modm::bmp085data::DataBase::raw[5]
inheritedprotected

The raw data that was read from the sensor 0 .. 1 temperature data 2 .. 4 pressure data


The documentation for this class was generated from the following files: