|
modm API documentation
|
#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. | |
| DataBase & | getData () |
| Get the data object for this sensor. | |
| modm::bmp085< I2cMaster >::Bmp085 | ( | DataBase & | data, |
| uint8_t | address = 0x77 |
||
| ) |
| data | pointer to buffer of the internal data of type Data |
| address | address defaults to 0x77 |