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

Public Member Functions

int32_t getPressure ()
 Get the calibrated pressure data with 0.25 mbar resolution (in tenth of mbar (10^-4 bar)) More...
 
void getPressure (int32_t &pres)
 
void getPressure (float &pres)
 Get the calibrated pressure data with 0.25 mbar resolution (in mbar) More...
 
int32_t getTemperature ()
 Get the calibrated temperature data with 0.01 degrees Centigrade resolution (2501 = 25.01°C) More...
 
void getTemperature (int32_t &temp)
 
void getTemperature (float &temp)
 Get the calibrated temperature data with 0.01 degrees Centigrade resolution, in °C. More...
 
uint32_t getRawC1 ()
 
uint32_t getRawC2 ()
 
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::ms5837data::Data::getPressure ( )
inline

Get the calibrated pressure data with 0.25 mbar resolution (in tenth of mbar (10^-4 bar))

Attention
No I2C transaction
Returns
int32_t
void modm::ms5837data::Data::getPressure ( float &  pres)
inline

Get the calibrated pressure data with 0.25 mbar resolution (in mbar)

Attention
No I2C transaction
Returns
void
int32_t modm::ms5837data::Data::getTemperature ( )
inline

Get the calibrated temperature data with 0.01 degrees Centigrade resolution (2501 = 25.01°C)

Attention
No I2C transaction
Returns
int32_t
void modm::ms5837data::Data::getTemperature ( float &  temp)
inline

Get the calibrated temperature data with 0.01 degrees Centigrade resolution, in °C.

Attention
No I2C transaction
Returns
void

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