modm API documentation
modm::ms5611< SpiMaster, Cs > Class Template Reference

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

Public Typedefs

using Prom = modm::ms5611data::Prom
 
using Data = modm::ms5611data::Data
 
using DataBase = modm::ms5611data::DataBase
 

Public Types

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

Public Member Functions

 Ms5611 (DataBase &data)
 
modm::ResumableResult< bool > initialize ()
 
modm::ResumableResult< void > 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 SpiMaster, typename Cs>
class modm::ms5611< SpiMaster, Cs >

Template Parameters
SpiMasterSpiMaster interface
CsChip-select pin
Author
Rasmus Kleist Hørlyck Sørensen

Member Function Documentation

template<typename SpiMaster , typename Cs >
modm::ResumableResult<bool> modm::ms5611< SpiMaster, Cs >::initialize ( )

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

Warning
calls to this function resets the device
template<typename SpiMaster , typename Cs >
modm::ms5611< SpiMaster, Cs >::Ms5611 ( DataBase data)
Parameters
datapointer to buffer of the internal data of type Data

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