Go to the documentation of this file.
47 #include "../drv/i2c-drv.h"
48 #include <util/delay.h>
50 #ifndef PRESSUREBMP085_H_
51 #define PRESSUREBMP085_H_
56 #define BMP085_DEV_ADDR_R 0xEF
60 #define BMP085_DEV_ADDR_W 0xEE
65 #define BMP085_CTRL_REG_ADDR 0xF4
69 #define BMP085_CTRL_REG_TEMP 0x2E
73 #define BMP085_CTRL_REG_PRESS_0 0x34
77 #define BMP085_CTRL_REG_PRESS_1 0x74
81 #define BMP085_CTRL_REG_PRESS_2 0xB4
85 #define BMP085_CTRL_REG_PRESS_3 0xF4
90 #define BMP085_DATA_REG_N 0xF6
95 #define BMP085_DATA_REG_X 0xF8
100 #define BMP085_AC1_ADDR 0xAA
104 #define BMP085_AC2_ADDR 0xAC
108 #define BMP085_AC3_ADDR 0xAE
112 #define BMP085_AC4_ADDR 0xB0
116 #define BMP085_AC5_ADDR 0xB2
120 #define BMP085_AC6_ADDR 0xB4
124 #define BMP085_B1_ADDR 0xB6
128 #define BMP085_B2_ADDR 0xB8
132 #define BMP085_MB_ADDR 0xBA
136 #define BMP085_MC_ADDR 0xBC
140 #define BMP085_MD_ADDR 0xBE
145 volatile int16_t ac1;
146 volatile int16_t ac2;
147 volatile int16_t ac3;
148 volatile uint16_t ac4;
149 volatile uint16_t ac5;
150 volatile uint16_t ac6;