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

Public Member Functions

int32_t getPressure ()
 Get the calibrated pressure data with 0.01 mbar resolution. More...
 
void getPressure (int32_t &pres)
 
void getPressure (float &pres)
 
int32_t getTemperature ()
 Get the calibrated temperature data with 0.01 degrees Centigrade resolution. More...
 
void getTemperature (int32_t &temp)
 
void getTemperature (float &temp)
 
PromgetProm ()
 
void rawPressureTouched ()
 Notify the data class about changed buffer of raw pressure data (D1).
 
void rawTemperatureTouched ()
 Notify the data class about changed buffer of raw temperature data (D2).
 

Protected Types

enum  { PRESSURE_CALCULATED = modm::Bit0, TEMPERATURE_CALCULATED = modm::Bit1 }
 

Protected Member Functions

void calculateCalibratedValues ()
 

Protected Attributes

uint8_t meta = 0
 
Prom prom
 
uint8_t raw [6]
 

Member Enumeration Documentation

anonymous enum
inheritedprotected
Enum ValuesDocumentation
PRESSURE_CALCULATED 

Remember if the raw data has been converted to pressure.

TEMPERATURE_CALCULATED 

Remember if the raw data has been converted to temperature.

Member Function Documentation

int32_t modm::ms5611data::Data::getPressure ( )
inline

Get the calibrated pressure data with 0.01 mbar resolution.

Attention
No SPI transaction
Returns
int32_t
int32_t modm::ms5611data::Data::getTemperature ( )
inline

Get the calibrated temperature data with 0.01 degrees Centigrade resolution.

Attention
No SPI transaction
Returns
int32_t

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