The friendly Operating System for the Internet of Things
bme280_internals.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Kees Bakker, SODAQ
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
19 #ifndef BME280_INTERNALS_H
20 #define BME280_INTERNALS_H
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
30 #define BME280_DIG_T1_LSB_REG 0x88
31 #define BME280_DIG_T1_MSB_REG 0x89
32 #define BME280_DIG_T2_LSB_REG 0x8A
33 #define BME280_DIG_T2_MSB_REG 0x8B
34 #define BME280_DIG_T3_LSB_REG 0x8C
35 #define BME280_DIG_T3_MSB_REG 0x8D
36 #define BME280_DIG_P1_LSB_REG 0x8E
37 #define BME280_DIG_P1_MSB_REG 0x8F
38 #define BME280_DIG_P2_LSB_REG 0x90
39 #define BME280_DIG_P2_MSB_REG 0x91
40 #define BME280_DIG_P3_LSB_REG 0x92
41 #define BME280_DIG_P3_MSB_REG 0x93
42 #define BME280_DIG_P4_LSB_REG 0x94
43 #define BME280_DIG_P4_MSB_REG 0x95
44 #define BME280_DIG_P5_LSB_REG 0x96
45 #define BME280_DIG_P5_MSB_REG 0x97
46 #define BME280_DIG_P6_LSB_REG 0x98
47 #define BME280_DIG_P6_MSB_REG 0x99
48 #define BME280_DIG_P7_LSB_REG 0x9A
49 #define BME280_DIG_P7_MSB_REG 0x9B
50 #define BME280_DIG_P8_LSB_REG 0x9C
51 #define BME280_DIG_P8_MSB_REG 0x9D
52 #define BME280_DIG_P9_LSB_REG 0x9E
53 #define BME280_DIG_P9_MSB_REG 0x9F
54 
55 #define BME280_DIG_H1_REG 0xA1
56 
57 #define BME280_CHIP_ID 0x60 /* The identifier of the BME280 */
58 #define BME280_CHIP_ID_REG 0xD0
59 #define BME280_RST_REG 0xE0 /* Softreset Reg */
60 
61 #define BME280_DIG_H2_LSB_REG 0xE1
62 #define BME280_DIG_H2_MSB_REG 0xE2
63 #define BME280_DIG_H3_REG 0xE3
64 #define BME280_DIG_H4_MSB_REG 0xE4 /* H4[11:4] */
65 #define BME280_DIG_H4_H5_REG 0xE5 /* H5[3:0] H4[3:0] */
66 #define BME280_DIG_H5_MSB_REG 0xE6 /* H5[11:4] */
67 #define BME280_DIG_H6_REG 0xE7
68 
69 #define BME280_CTRL_HUMIDITY_REG 0xF2 /* Ctrl Humidity Reg */
70 #define BME280_STAT_REG 0xF3 /* Status Reg */
71 #define BME280_CTRL_MEAS_REG 0xF4 /* Ctrl Measure Reg */
72 #define BME280_CONFIG_REG 0xF5 /* Configuration Reg */
73 #define BME280_PRESSURE_MSB_REG 0xF7 /* Pressure MSB */
74 #define BME280_PRESSURE_LSB_REG 0xF8 /* Pressure LSB */
75 #define BME280_PRESSURE_XLSB_REG 0xF9 /* Pressure XLSB */
76 #define BME280_TEMPERATURE_MSB_REG 0xFA /* Temperature MSB */
77 #define BME280_TEMPERATURE_LSB_REG 0xFB /* Temperature LSB */
78 #define BME280_TEMPERATURE_XLSB_REG 0xFC /* Temperature XLSB */
79 #define BME280_HUMIDITY_MSB_REG 0xFD /* Humidity MSB */
80 #define BME280_HUMIDITY_LSB_REG 0xFE /* Humidity LSB */
81 
83 #ifdef __cplusplus
84 }
85 #endif
86 
87 #endif /* BME280_INTERNALS_H */
88