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

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

Public Typedefs

using Calibration = modm::bmp085data::Calibration
 
using Data = modm::bmp085data::Data
 
using DataBase = modm::bmp085data::DataBase
 
using DataDouble = modm::bmp085data::DataDouble
 

Public Types

enum  Mode : uint8_t {
  Mask = (0x03 << 6), UltraLowPower = (0x00 << 6), Standard = (0x01 << 6), HighResolution = (0x02 << 6),
  UltraHighResolution = (0x03 << 6)
}
 

Public Member Functions

 Bmp085 (DataBase &data, uint8_t address=0x77)
 
modm::ResumableResult< bool > initialize (Mode mode=Mode::Standard)
 Reads out and stores the calibration bytes.
 
modm::ResumableResult< bool > readout ()
 Do a readout sequence to convert and read temperature and then pressure from sensor.
 
void setMode (Mode mode)
 Configures the sensor.
 
DataBasegetData ()
 Get the data object for this sensor.
 

Detailed Description

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

Author
Niklas Hauser
Sascha Schade
Template Parameters
I2cMasterI2C interface

Member Function Documentation

template<typename I2cMaster >
modm::bmp085< I2cMaster >::Bmp085 ( DataBase data,
uint8_t  address = 0x77 
)
Parameters
datapointer to buffer of the internal data of type Data
addressaddress defaults to 0x77

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