33 #define ADDR 0x77 // device address
36 #define BMP085_ULTRALOWPOWER 0
37 #define BMP085_STANDARD 1
38 #define BMP085_HIGHRES 2
39 #define BMP085_ULTRAHIGHRES 3
40 #define BMP085_CAL_AC1 0xAA // R Calibration data (16 bits)
41 #define BMP085_CAL_AC2 0xAC // R Calibration data (16 bits)
42 #define BMP085_CAL_AC3 0xAE // R Calibration data (16 bits)
43 #define BMP085_CAL_AC4 0xB0 // R Calibration data (16 bits)
44 #define BMP085_CAL_AC5 0xB2 // R Calibration data (16 bits)
45 #define BMP085_CAL_AC6 0xB4 // R Calibration data (16 bits)
46 #define BMP085_CAL_B1 0xB6 // R Calibration data (16 bits)
47 #define BMP085_CAL_B2 0xB8 // R Calibration data (16 bits)
48 #define BMP085_CAL_MB 0xBA // R Calibration data (16 bits)
49 #define BMP085_CAL_MC 0xBC // R Calibration data (16 bits)
50 #define BMP085_CAL_MD 0xBE // R Calibration data (16 bits)
52 #define BMP085_CONTROL 0xF4
53 #define BMP085_TEMPDATA 0xF6
54 #define BMP085_PRESSUREDATA 0xF6
55 #define BMP085_READTEMPCMD 0x2E
56 #define BMP085_READPRESSURECMD 0x34
79 GY65 (
int bus,
int devAddr, uint8_t mode = BMP085_ULTRAHIGHRES);
119 float getAltitude (
float sealevelPressure = 101325);
141 mraa_result_t
i2cWriteReg (uint8_t reg, uint8_t value);
155 mraa_i2c_context m_i2ControlCtx;
157 uint8_t oversampling;
158 int16_t ac1, ac2, ac3, b1, b2, mb, mc, md;
159 uint16_t ac4, ac5, ac6;
GY65(int bus, int devAddr, uint8_t mode=BMP085_ULTRAHIGHRES)
Definition: gy65.cxx:33
int32_t getPressureRaw()
Definition: gy65.cxx:113
int32_t computeB5(int32_t UT)
Definition: gy65.cxx:176
float getAltitude(float sealevelPressure=101325)
Definition: gy65.cxx:165
~GY65()
Definition: gy65.cxx:72
uint16_t i2cReadReg_16(int reg)
Definition: gy65.cxx:195
int32_t getSealevelPressure(float altitudeMeters=0)
Definition: gy65.cxx:159
int16_t getTemperatureRaw()
Definition: gy65.cxx:138
uint8_t i2cReadReg_8(int reg)
Definition: gy65.cxx:212
mraa_result_t i2cWriteReg(uint8_t reg, uint8_t value)
Definition: gy65.cxx:184
C++ API for GY65 chip (Atmospheric Pressure Sensor)
Definition: gy65.h:70
int32_t getPressure()
Definition: gy65.cxx:77
float getTemperature()
Definition: gy65.cxx:145