Loading...
Searching...
No Matches

Internal addresses, registers, constants for the BMX280 family sensors. More...

Detailed Description

Internal addresses, registers, constants for the BMX280 family sensors.

Internal addresses, registers, constants for the BMX280 family sensors.

Author
Kees Bakker kees@.nosp@m.soda.nosp@m.q.com
Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr

Definition in file bmx280_internals.h.

Go to the source code of this file.

Device specific chip ID

#define BMX280_CHIP_ID_VAL   (0x58)
 

BME280 registers

#define BMX280_CHIP_ID_REG   (0xD0)
 
#define BMEX80_RST_REG   (0xE0) /* Softreset Reg */
 
#define BMX280_DIG_T1_LSB_REG   (0x88)
 
#define BMX280_DIG_T1_MSB_REG   (0x89)
 
#define BMX280_DIG_T2_LSB_REG   (0x8A)
 
#define BMX280_DIG_T2_MSB_REG   (0x8B)
 
#define BMX280_DIG_T3_LSB_REG   (0x8C)
 
#define BMX280_DIG_T3_MSB_REG   (0x8D)
 
#define BMX280_DIG_P1_LSB_REG   (0x8E)
 
#define BMX280_DIG_P1_MSB_REG   (0x8F)
 
#define BMX280_DIG_P2_LSB_REG   (0x90)
 
#define BMX280_DIG_P2_MSB_REG   (0x91)
 
#define BMX280_DIG_P3_LSB_REG   (0x92)
 
#define BMX280_DIG_P3_MSB_REG   (0x93)
 
#define BMX280_DIG_P4_LSB_REG   (0x94)
 
#define BMX280_DIG_P4_MSB_REG   (0x95)
 
#define BMX280_DIG_P5_LSB_REG   (0x96)
 
#define BMX280_DIG_P5_MSB_REG   (0x97)
 
#define BMX280_DIG_P6_LSB_REG   (0x98)
 
#define BMX280_DIG_P6_MSB_REG   (0x99)
 
#define BMX280_DIG_P7_LSB_REG   (0x9A)
 
#define BMX280_DIG_P7_MSB_REG   (0x9B)
 
#define BMX280_DIG_P8_LSB_REG   (0x9C)
 
#define BMX280_DIG_P8_MSB_REG   (0x9D)
 
#define BMX280_DIG_P9_LSB_REG   (0x9E)
 
#define BMX280_DIG_P9_MSB_REG   (0x9F)
 
#define BME280_DIG_H1_REG   (0xA1)
 
#define BME280_DIG_H2_LSB_REG   (0xE1)
 
#define BME280_DIG_H2_MSB_REG   (0xE2)
 
#define BME280_DIG_H3_REG   (0xE3)
 
#define BME280_DIG_H4_MSB_REG   (0xE4) /* H4[11:4] */
 
#define BME280_DIG_H4_H5_REG   (0xE5) /* H5[3:0] H4[3:0] */
 
#define BME280_DIG_H5_MSB_REG   (0xE6) /* H5[11:4] */
 
#define BME280_DIG_H6_REG   (0xE7)
 
#define BMX280_STAT_REG   (0xF3) /* Status Reg */
 
#define BMX280_CTRL_MEAS_REG   (0xF4) /* Ctrl Measure Reg */
 
#define BMX280_CONFIG_REG   (0xF5) /* Configuration Reg */
 
#define BMX280_PRESSURE_MSB_REG   (0xF7) /* Pressure MSB */
 
#define BMX280_PRESSURE_LSB_REG   (0xF8) /* Pressure LSB */
 
#define BMX280_PRESSURE_XLSB_REG   (0xF9) /* Pressure XLSB */
 
#define BMX280_TEMPERATURE_MSB_REG   (0xFA) /* Temperature MSB */
 
#define BMX280_TEMPERATURE_LSB_REG   (0xFB) /* Temperature LSB */
 
#define BMX280_TEMPERATURE_XLSB_REG   (0xFC) /* Temperature XLSB */
 
#define BME280_CTRL_HUM_REG   (0xF2) /* Ctrl Humidity Reg */
 
#define BME280_HUMIDITY_MSB_REG   (0xFD) /* Humidity MSB */
 
#define BME280_HUMIDITY_LSB_REG   (0xFE) /* Humidity LSB */
 

Bitmasks for selected registers

#define MEAS_OSRS_T_POS   (5U)
 
#define MEAS_OSRS_P_POS   (2U)
 
#define STAT_MEASURING   (1 << 3)
 
#define RESET_WORD   (0xB6)
 

The base address for the row of data registers

#define DATA_BASE   BMX280_PRESSURE_MSB_REG
 

Calibration data base addresses, block sizes, and offsets

#define CALIB_T_P_BASE   (BMX280_DIG_T1_LSB_REG)
 
#define CALIB_T_P_LEN   (24U)
 
#define OFFSET_T_P(x)   (x - CALIB_T_P_BASE)
 

Macro Definition Documentation

◆ BME280_CTRL_HUM_REG

#define BME280_CTRL_HUM_REG   (0xF2) /* Ctrl Humidity Reg */

Definition at line 89 of file bmx280_internals.h.

◆ BME280_DIG_H1_REG

#define BME280_DIG_H1_REG   (0xA1)

Definition at line 71 of file bmx280_internals.h.

◆ BME280_DIG_H2_LSB_REG

#define BME280_DIG_H2_LSB_REG   (0xE1)

Definition at line 72 of file bmx280_internals.h.

◆ BME280_DIG_H2_MSB_REG

#define BME280_DIG_H2_MSB_REG   (0xE2)

Definition at line 73 of file bmx280_internals.h.

◆ BME280_DIG_H3_REG

#define BME280_DIG_H3_REG   (0xE3)

Definition at line 74 of file bmx280_internals.h.

◆ BME280_DIG_H4_H5_REG

#define BME280_DIG_H4_H5_REG   (0xE5) /* H5[3:0] H4[3:0] */

Definition at line 76 of file bmx280_internals.h.

◆ BME280_DIG_H4_MSB_REG

#define BME280_DIG_H4_MSB_REG   (0xE4) /* H4[11:4] */

Definition at line 75 of file bmx280_internals.h.

◆ BME280_DIG_H5_MSB_REG

#define BME280_DIG_H5_MSB_REG   (0xE6) /* H5[11:4] */

Definition at line 77 of file bmx280_internals.h.

◆ BME280_DIG_H6_REG

#define BME280_DIG_H6_REG   (0xE7)

Definition at line 78 of file bmx280_internals.h.

◆ BME280_HUMIDITY_LSB_REG

#define BME280_HUMIDITY_LSB_REG   (0xFE) /* Humidity LSB */

Definition at line 91 of file bmx280_internals.h.

◆ BME280_HUMIDITY_MSB_REG

#define BME280_HUMIDITY_MSB_REG   (0xFD) /* Humidity MSB */

Definition at line 90 of file bmx280_internals.h.

◆ BMEX80_RST_REG

#define BMEX80_RST_REG   (0xE0) /* Softreset Reg */

Definition at line 44 of file bmx280_internals.h.

◆ BMX280_CHIP_ID_REG

#define BMX280_CHIP_ID_REG   (0xD0)

Definition at line 43 of file bmx280_internals.h.

◆ BMX280_CHIP_ID_VAL

#define BMX280_CHIP_ID_VAL   (0x58)

Definition at line 35 of file bmx280_internals.h.

◆ BMX280_CONFIG_REG

#define BMX280_CONFIG_REG   (0xF5) /* Configuration Reg */

Definition at line 82 of file bmx280_internals.h.

◆ BMX280_CTRL_MEAS_REG

#define BMX280_CTRL_MEAS_REG   (0xF4) /* Ctrl Measure Reg */

Definition at line 81 of file bmx280_internals.h.

◆ BMX280_DIG_P1_LSB_REG

#define BMX280_DIG_P1_LSB_REG   (0x8E)

Definition at line 52 of file bmx280_internals.h.

◆ BMX280_DIG_P1_MSB_REG

#define BMX280_DIG_P1_MSB_REG   (0x8F)

Definition at line 53 of file bmx280_internals.h.

◆ BMX280_DIG_P2_LSB_REG

#define BMX280_DIG_P2_LSB_REG   (0x90)

Definition at line 54 of file bmx280_internals.h.

◆ BMX280_DIG_P2_MSB_REG

#define BMX280_DIG_P2_MSB_REG   (0x91)

Definition at line 55 of file bmx280_internals.h.

◆ BMX280_DIG_P3_LSB_REG

#define BMX280_DIG_P3_LSB_REG   (0x92)

Definition at line 56 of file bmx280_internals.h.

◆ BMX280_DIG_P3_MSB_REG

#define BMX280_DIG_P3_MSB_REG   (0x93)

Definition at line 57 of file bmx280_internals.h.

◆ BMX280_DIG_P4_LSB_REG

#define BMX280_DIG_P4_LSB_REG   (0x94)

Definition at line 58 of file bmx280_internals.h.

◆ BMX280_DIG_P4_MSB_REG

#define BMX280_DIG_P4_MSB_REG   (0x95)

Definition at line 59 of file bmx280_internals.h.

◆ BMX280_DIG_P5_LSB_REG

#define BMX280_DIG_P5_LSB_REG   (0x96)

Definition at line 60 of file bmx280_internals.h.

◆ BMX280_DIG_P5_MSB_REG

#define BMX280_DIG_P5_MSB_REG   (0x97)

Definition at line 61 of file bmx280_internals.h.

◆ BMX280_DIG_P6_LSB_REG

#define BMX280_DIG_P6_LSB_REG   (0x98)

Definition at line 62 of file bmx280_internals.h.

◆ BMX280_DIG_P6_MSB_REG

#define BMX280_DIG_P6_MSB_REG   (0x99)

Definition at line 63 of file bmx280_internals.h.

◆ BMX280_DIG_P7_LSB_REG

#define BMX280_DIG_P7_LSB_REG   (0x9A)

Definition at line 64 of file bmx280_internals.h.

◆ BMX280_DIG_P7_MSB_REG

#define BMX280_DIG_P7_MSB_REG   (0x9B)

Definition at line 65 of file bmx280_internals.h.

◆ BMX280_DIG_P8_LSB_REG

#define BMX280_DIG_P8_LSB_REG   (0x9C)

Definition at line 66 of file bmx280_internals.h.

◆ BMX280_DIG_P8_MSB_REG

#define BMX280_DIG_P8_MSB_REG   (0x9D)

Definition at line 67 of file bmx280_internals.h.

◆ BMX280_DIG_P9_LSB_REG

#define BMX280_DIG_P9_LSB_REG   (0x9E)

Definition at line 68 of file bmx280_internals.h.

◆ BMX280_DIG_P9_MSB_REG

#define BMX280_DIG_P9_MSB_REG   (0x9F)

Definition at line 69 of file bmx280_internals.h.

◆ BMX280_DIG_T1_LSB_REG

#define BMX280_DIG_T1_LSB_REG   (0x88)

Definition at line 46 of file bmx280_internals.h.

◆ BMX280_DIG_T1_MSB_REG

#define BMX280_DIG_T1_MSB_REG   (0x89)

Definition at line 47 of file bmx280_internals.h.

◆ BMX280_DIG_T2_LSB_REG

#define BMX280_DIG_T2_LSB_REG   (0x8A)

Definition at line 48 of file bmx280_internals.h.

◆ BMX280_DIG_T2_MSB_REG

#define BMX280_DIG_T2_MSB_REG   (0x8B)

Definition at line 49 of file bmx280_internals.h.

◆ BMX280_DIG_T3_LSB_REG

#define BMX280_DIG_T3_LSB_REG   (0x8C)

Definition at line 50 of file bmx280_internals.h.

◆ BMX280_DIG_T3_MSB_REG

#define BMX280_DIG_T3_MSB_REG   (0x8D)

Definition at line 51 of file bmx280_internals.h.

◆ BMX280_PRESSURE_LSB_REG

#define BMX280_PRESSURE_LSB_REG   (0xF8) /* Pressure LSB */

Definition at line 84 of file bmx280_internals.h.

◆ BMX280_PRESSURE_MSB_REG

#define BMX280_PRESSURE_MSB_REG   (0xF7) /* Pressure MSB */

Definition at line 83 of file bmx280_internals.h.

◆ BMX280_PRESSURE_XLSB_REG

#define BMX280_PRESSURE_XLSB_REG   (0xF9) /* Pressure XLSB */

Definition at line 85 of file bmx280_internals.h.

◆ BMX280_STAT_REG

#define BMX280_STAT_REG   (0xF3) /* Status Reg */

Definition at line 80 of file bmx280_internals.h.

◆ BMX280_TEMPERATURE_LSB_REG

#define BMX280_TEMPERATURE_LSB_REG   (0xFB) /* Temperature LSB */

Definition at line 87 of file bmx280_internals.h.

◆ BMX280_TEMPERATURE_MSB_REG

#define BMX280_TEMPERATURE_MSB_REG   (0xFA) /* Temperature MSB */

Definition at line 86 of file bmx280_internals.h.

◆ BMX280_TEMPERATURE_XLSB_REG

#define BMX280_TEMPERATURE_XLSB_REG   (0xFC) /* Temperature XLSB */

Definition at line 88 of file bmx280_internals.h.

◆ CALIB_T_P_BASE

#define CALIB_T_P_BASE   (BMX280_DIG_T1_LSB_REG)

Definition at line 115 of file bmx280_internals.h.

◆ CALIB_T_P_LEN

#define CALIB_T_P_LEN   (24U)

Definition at line 116 of file bmx280_internals.h.

◆ DATA_BASE

#define DATA_BASE   BMX280_PRESSURE_MSB_REG

Definition at line 108 of file bmx280_internals.h.

◆ MEAS_OSRS_P_POS

#define MEAS_OSRS_P_POS   (2U)

Definition at line 99 of file bmx280_internals.h.

◆ MEAS_OSRS_T_POS

#define MEAS_OSRS_T_POS   (5U)

Definition at line 98 of file bmx280_internals.h.

◆ OFFSET_T_P

#define OFFSET_T_P (   x)    (x - CALIB_T_P_BASE)

Definition at line 117 of file bmx280_internals.h.

◆ RESET_WORD

#define RESET_WORD   (0xB6)

Definition at line 101 of file bmx280_internals.h.

◆ STAT_MEASURING

#define STAT_MEASURING   (1 << 3)

Definition at line 100 of file bmx280_internals.h.