#include <modm/driver/pressure/ms5837.hpp>
|  | 
| enum | OversamplingRatio : uint8_t { Osr256 = 0x00, 
Osr512 = 0x02, 
Osr1024 = 0x04, 
Osr2048 = 0x06,
 Osr4096 = 0x08
 }
 | 
|  | 
|  | 
|  | Ms5837 (DataBase &data, uint8_t address=0x76) | 
|  | 
| bool | initialize () | 
|  | 
| bool | readout (OversamplingRatio osrPressure=OversamplingRatio::Osr256, OversamplingRatio osrTemperature=OversamplingRatio::Osr256) | 
|  | Do a readout sequence to convert and read temperature and then pressure from sensor. 
 | 
|  | 
| DataBase & | getData () | 
|  | Get the data object for this sensor. 
 | 
|  | 
template<typename I2cMaster>
class modm::ms5837< I2cMaster >
- Template Parameters
- 
  
  
- Author
- Vivien Henry 
template<typename I2cMaster > 
      
        
          | 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 > 
      
 
- Parameters
- 
  
    | data | pointer to buffer of the internal data of type Data |  
 
 
 
The documentation for this class was generated from the following file: