modm API documentation
modm::ms5837< I2cMaster > Class Template Reference

#include <modm/driver/pressure/ms5837.hpp>

Public Typedefs

using Prom = modm::ms5837data::Prom
 
using Data = modm::ms5837data::Data
 
using DataBase = modm::ms5837data::DataBase
 

Public Types

enum  OversamplingRatio : uint8_t {
  Osr256 = 0x00, Osr512 = 0x02, Osr1024 = 0x04, Osr2048 = 0x06,
  Osr4096 = 0x08
}
 

Public Member Functions

 Ms5837 (DataBase &data, uint8_t address=0x76)
 
modm::ResumableResult< bool > initialize ()
 
modm::ResumableResult< bool > readout (OversamplingRatio osrPressure=OversamplingRatio::Osr256, OversamplingRatio osrTemperature=OversamplingRatio::Osr256)
 Do a readout sequence to convert and read temperature and then pressure from sensor.
 
DataBasegetData ()
 Get the data object for this sensor.
 

Detailed Description

template<typename I2cMaster>
class modm::ms5837< I2cMaster >

Template Parameters
I2cMasterI2C interface
Author
Vivien Henry

Member Function Documentation

template<typename I2cMaster >
modm::ResumableResult<bool> modm::ms5837< I2cMaster >::initialize ( )

Call this function before using the device to read the factory calibration

Warning
calls to this function resets the device
template<typename I2cMaster >
modm::ms5837< I2cMaster >::Ms5837 ( DataBase data,
uint8_t  address = 0x76 
)
Parameters
datapointer to buffer of the internal data of type Data

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