Merge branch 'master' into change-to-sending-expresslrs_RFrates_e-in-sync-packet
[ExpressLRS.git] / src / lib / Baro / baro_bmp085_regs.h
blob22fc12b6a61bd062fc491f9725efae5c918b69bb
1 #pragma once
3 #define BMP085_I2C_ADDR 0x77
4 #define BMP085_CHIPID 0x55
6 // Registers
7 #define BMP085_CALIB_COEFFS_START 0xAA
8 #define BMP085_CALIB_COEFFS_END 0xBE
9 #define BMP085_REG_CHIPID 0xD0
10 #define BMP085_REG_CONTROL 0xF4
11 #define BMP085_REG_TEMPERATURE_DATA 0xF6 // uses same scratchpad as press
12 #define BMP085_REG_PRESSURE_DATA 0xF6 // uses same scratchpad as temp
13 #define BMP085_CMD_MEAS_TEMPERATURE 0x2E
14 #define BMP085_CMD_MEAS_PRESSURE 0x34
16 #define BMP085_CALIB_COEFFS_LEN (BMP085_CALIB_COEFFS_END - BMP085_CALIB_COEFFS_START + 1)