Register definition for the MPL3115A2 sensor driver. More...
Register definition for the MPL3115A2 sensor driver.
Definition in file mpl3115a2_reg.h.
Go to the source code of this file.
#define | MPL3115A2_STATUS 0x00 |
Sensor Status Register. | |
#define | MPL3115A2_OUT_P_MSB 0x01 |
Pressure Data Out MSB. | |
#define | MPL3115A2_OUT_P_CSB 0x02 |
Pressure Data Out CSB. | |
#define | MPL3115A2_OUT_P_LSB 0x03 |
Pressure Data Out LSB. | |
#define | MPL3115A2_OUT_T_MSB 0x04 |
Temperature Data Out MSB. | |
#define | MPL3115A2_OUT_T_LSB 0x05 |
Temperature Data Out LSB. | |
#define | MPL3115A2_DR_STATUS 0x06 |
Sensor Status Register. | |
#define | MPL3115A2_OUT_P_DELTA MSB 0x07 |
Pressure Data Out Delta MSB. | |
#define | MPL3115A2_OUT_P_DELTA_CSB 0x08 |
Pressure Data Out Delta CSB. | |
#define | MPL3115A2_OUT_P_DELTA_LSB 0x09 |
Pressure Data Out Delta LSB. | |
#define | MPL3115A2_OUT_T_DELTA_MSB 0x0A |
Temperature Data Out Delta MSB. | |
#define | MPL3115A2_OUT_T_DELTA_LSB 0x0B |
Temperature Data Out Delta LSB. | |
#define | MPL3115A2_WHO_AM_I 0x0C |
Device Identification Register. | |
#define | MPL3115A2_F_STATUS 0x0D |
FIFO Status Register. | |
#define | MPL3115A2_F_DATA 0x0E |
FIFO 8-bit Data Access. | |
#define | MPL3115A2_F_SETUP 0x0F |
FIFO Setup Register. | |
#define | MPL3115A2_TIME_DLY 0x10 |
Time Delay Register. | |
#define | MPL3115A2_SYSMOD 0x11 |
System Mode Register. | |
#define | MPL3115A2_INT_SOURCE 0x12 |
Interrupt Source Register. | |
#define | MPL3115A2_PT_DATA_CFG 0x13 |
PT Data Configuration Register. | |
#define | MPL3115A2_BAR_IN_MSB 0x14 |
BAR Input in MSB. | |
#define | MPL3115A2_BAR_IN_LSB 0x15 |
BAR Input in LSB. | |
#define | MPL3115A2_P_TGT_MSB 0x16 |
Pressure Target MSB. | |
#define | MPL3115A2_P_TGT_LSB 0x17 |
Pressure Target LSB. | |
#define | MPL3115A2_T_TGT 0x18 |
Temperature Target. | |
#define | MPL3115A2_P_WND_MSB 0x19 |
Pressure/Altitude Window MSB. | |
#define | MPL3115A2_P_WND_LSB 0x1A |
Pressure/Altitude Window LSB. | |
#define | MPL3115A2_T_WND 0x1B |
Temperature Window. | |
#define | MPL3115A2_P_MIN_MSB 0x1C |
Minimum Pressure Data Out MSB. | |
#define | MPL3115A2_P_MIN_CSB 0x1D |
Minimum Pressure Data Out CSB. | |
#define | MPL3115A2_P_MIN_LSB 0x1E |
Minimum Pressure Data Out LSB. | |
#define | MPL3115A2_T_MIN_MSB 0x1F |
Minimum Temperature Data Out MSB. | |
#define | MPL3115A2_T_MIN_LSB 0x20 |
Minimum Temperature Data Out LSB. | |
#define | MPL3115A2_P_MAX_MSB 0x21 |
Maximum Pressure Data Out MSB. | |
#define | MPL3115A2_P_MAX_CSB 0x22 |
Maximum Pressure Data Out CSB. | |
#define | MPL3115A2_P_MAX_LSB 0x23 |
Maximum Pressure Data Out LSB. | |
#define | MPL3115A2_T_MAX_MSB 0x24 |
Maximum Temperature Data Out MSB. | |
#define | MPL3115A2_T_MAX_LSB 0x25 |
Maximum Temperature Data Out LSB. | |
#define | MPL3115A2_CTRL_REG1 0x26 |
Control Register 1. | |
#define | MPL3115A2_CTRL_REG2 0x27 |
Control Register 2. | |
#define | MPL3115A2_CTRL_REG3 0x28 |
Control Register 3. | |
#define | MPL3115A2_CTRL_REG4 0x29 |
Control Register 4. | |
#define | MPL3115A2_CTRL_REG5 0x2A |
Control Register 5. | |
#define | MPL3115A2_OFF_P 0x2B |
Pressure Data User Offset Register. | |
#define | MPL3115A2_OFF_T 0x2C |
Temperature Data User Offset Register. | |
#define | MPL3115A2_OFF_H 0x2D |
Altitude Data User Offset Register. | |
#define | MPL3115A2_STATUS_TDR (1 << 1) |
#define | MPL3115A2_STATUS_PDR (1 << 2) |
#define | MPL3115A2_STATUS_PTDR (1 << 3) |
#define | MPL3115A2_STATUS_TOW (1 << 5) |
#define | MPL3115A2_STATUS_POW (1 << 6) |
#define | MPL3115A2_STATUS_PTOW (1 << 7) |
#define | MPL3115A2_PT_DATA_CFG_TDEFE (1 << 0) |
#define | MPL3115A2_PT_DATA_CFG_PDEFE (1 << 1) |
#define | MPL3115A2_PT_DATA_CFG_DREM (1 << 2) |
#define | MPL3115A2_CTRL_REG1_SBYB (1 << 0) |
#define | MPL3115A2_CTRL_REG1_OST (1 << 1) |
#define | MPL3115A2_CTRL_REG1_RST (1 << 2) |
#define | MPL3115A2_CTRL_REG1_OS_SHIFT 3 |
#define | MPL3115A2_CTRL_REG1_OS_MASK 0x38 |
#define | MPL3115A2_CTRL_REG1_OS(x) |
#define | MPL3115A2_CTRL_REG1_RAW (1 << 6) |
#define | MPL3115A2_CTRL_REG1_ALT (1 << 7) |
#define | MPL3115A2_CTRL_REG2_ST_SHIFT 0 |
#define | MPL3115A2_CTRL_REG2_ST_MASK 0xF |
#define | MPL3115A2_CTRL_REG2_ST(x) |
#define | MPL3115A2_CTRL_REG2_ALARM_SEL (1 << 4) |
#define | MPL3115A2_CTRL_REG2_LOAD_OPUT (1 << 5) |
#define | MPL3115A2_CTRL_REG3_PP_OD2 (1 << 0) |
#define | MPL3115A2_CTRL_REG3_IPOL2 (1 << 1) |
#define | MPL3115A2_CTRL_REG3_PP_OD1 (1 << 4) |
#define | MPL3115A2_CTRL_REG3_IPOL1 (1 << 5) |
#define | MPL3115A2_CTRL_REG4_INT_EN_TCHG (1 << 0) |
#define | MPL3115A2_CTRL_REG4_INT_EN_PCHG (1 << 1) |
#define | MPL3115A2_CTRL_REG4_INT_EN_TTH (1 << 2) |
#define | MPL3115A2_CTRL_REG4_INT_EN_PTH (1 << 3) |
#define | MPL3115A2_CTRL_REG4_INT_EN_TW (1 << 4) |
#define | MPL3115A2_CTRL_REG4_INT_EN_PW (1 << 5) |
#define | MPL3115A2_CTRL_REG4_INT_EN_FIFO (1 << 6) |
#define | MPL3115A2_CTRL_REG4_INT_EN_DRDY (1 << 7) |
#define | MPL3115A2_CTRL_REG5_INT_TCHG (1 << 0) |
#define | MPL3115A2_CTRL_REG5_INT_PCHG (1 << 1) |
#define | MPL3115A2_CTRL_REG5_INT_TTH (1 << 2) |
#define | MPL3115A2_CTRL_REG5_INT_PTH (1 << 3) |
#define | MPL3115A2_CTRL_REG5_INT_TW (1 << 4) |
#define | MPL3115A2_CTRL_REG5_INT_PW (1 << 5) |
#define | MPL3115A2_CTRL_REG5_INT_FIFO (1 << 6) |
#define | MPL3115A2_CTRL_REG5_INT_DRDY (1 << 7) |
#define | MPL3115A2_ID 0xC4 |
Device ID. | |
#define MPL3115A2_BAR_IN_LSB 0x15 |
BAR Input in LSB.
Definition at line 50 of file mpl3115a2_reg.h.
#define MPL3115A2_BAR_IN_MSB 0x14 |
BAR Input in MSB.
Definition at line 49 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG1 0x26 |
Control Register 1.
Definition at line 67 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG1_ALT (1 << 7) |
Definition at line 95 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG1_OS | ( | x | ) |
Definition at line 92 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG1_OS_MASK 0x38 |
Definition at line 91 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG1_OS_SHIFT 3 |
Definition at line 90 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG1_OST (1 << 1) |
Definition at line 88 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG1_RAW (1 << 6) |
Definition at line 94 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG1_RST (1 << 2) |
Definition at line 89 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG1_SBYB (1 << 0) |
Definition at line 87 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG2 0x27 |
Control Register 2.
Definition at line 68 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG2_ALARM_SEL (1 << 4) |
Definition at line 101 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG2_LOAD_OPUT (1 << 5) |
Definition at line 102 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG2_ST | ( | x | ) |
Definition at line 99 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG2_ST_MASK 0xF |
Definition at line 98 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG2_ST_SHIFT 0 |
Definition at line 97 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG3 0x28 |
Control Register 3.
Definition at line 69 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG3_IPOL1 (1 << 5) |
Definition at line 107 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG3_IPOL2 (1 << 1) |
Definition at line 105 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG3_PP_OD1 (1 << 4) |
Definition at line 106 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG3_PP_OD2 (1 << 0) |
Definition at line 104 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG4 0x29 |
Control Register 4.
Definition at line 70 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG4_INT_EN_DRDY (1 << 7) |
Definition at line 116 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG4_INT_EN_FIFO (1 << 6) |
Definition at line 115 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG4_INT_EN_PCHG (1 << 1) |
Definition at line 110 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG4_INT_EN_PTH (1 << 3) |
Definition at line 112 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG4_INT_EN_PW (1 << 5) |
Definition at line 114 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG4_INT_EN_TCHG (1 << 0) |
Definition at line 109 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG4_INT_EN_TTH (1 << 2) |
Definition at line 111 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG4_INT_EN_TW (1 << 4) |
Definition at line 113 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG5 0x2A |
Control Register 5.
Definition at line 71 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG5_INT_DRDY (1 << 7) |
Definition at line 125 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG5_INT_FIFO (1 << 6) |
Definition at line 124 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG5_INT_PCHG (1 << 1) |
Definition at line 119 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG5_INT_PTH (1 << 3) |
Definition at line 121 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG5_INT_PW (1 << 5) |
Definition at line 123 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG5_INT_TCHG (1 << 0) |
Definition at line 118 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG5_INT_TTH (1 << 2) |
Definition at line 120 of file mpl3115a2_reg.h.
#define MPL3115A2_CTRL_REG5_INT_TW (1 << 4) |
Definition at line 122 of file mpl3115a2_reg.h.
#define MPL3115A2_DR_STATUS 0x06 |
Sensor Status Register.
Definition at line 35 of file mpl3115a2_reg.h.
#define MPL3115A2_F_DATA 0x0E |
FIFO 8-bit Data Access.
Definition at line 43 of file mpl3115a2_reg.h.
#define MPL3115A2_F_SETUP 0x0F |
FIFO Setup Register.
Definition at line 44 of file mpl3115a2_reg.h.
#define MPL3115A2_F_STATUS 0x0D |
FIFO Status Register.
Definition at line 42 of file mpl3115a2_reg.h.
#define MPL3115A2_ID 0xC4 |
Device ID.
Definition at line 127 of file mpl3115a2_reg.h.
#define MPL3115A2_INT_SOURCE 0x12 |
Interrupt Source Register.
Definition at line 47 of file mpl3115a2_reg.h.
#define MPL3115A2_OFF_H 0x2D |
Altitude Data User Offset Register.
Definition at line 74 of file mpl3115a2_reg.h.
#define MPL3115A2_OFF_P 0x2B |
Pressure Data User Offset Register.
Definition at line 72 of file mpl3115a2_reg.h.
#define MPL3115A2_OFF_T 0x2C |
Temperature Data User Offset Register.
Definition at line 73 of file mpl3115a2_reg.h.
#define MPL3115A2_OUT_P_CSB 0x02 |
Pressure Data Out CSB.
Definition at line 31 of file mpl3115a2_reg.h.
#define MPL3115A2_OUT_P_DELTA MSB 0x07 |
Pressure Data Out Delta MSB.
Definition at line 36 of file mpl3115a2_reg.h.
#define MPL3115A2_OUT_P_DELTA_CSB 0x08 |
Pressure Data Out Delta CSB.
Definition at line 37 of file mpl3115a2_reg.h.
#define MPL3115A2_OUT_P_DELTA_LSB 0x09 |
Pressure Data Out Delta LSB.
Definition at line 38 of file mpl3115a2_reg.h.
#define MPL3115A2_OUT_P_LSB 0x03 |
Pressure Data Out LSB.
Definition at line 32 of file mpl3115a2_reg.h.
#define MPL3115A2_OUT_P_MSB 0x01 |
Pressure Data Out MSB.
Definition at line 30 of file mpl3115a2_reg.h.
#define MPL3115A2_OUT_T_DELTA_LSB 0x0B |
Temperature Data Out Delta LSB.
Definition at line 40 of file mpl3115a2_reg.h.
#define MPL3115A2_OUT_T_DELTA_MSB 0x0A |
Temperature Data Out Delta MSB.
Definition at line 39 of file mpl3115a2_reg.h.
#define MPL3115A2_OUT_T_LSB 0x05 |
Temperature Data Out LSB.
Definition at line 34 of file mpl3115a2_reg.h.
#define MPL3115A2_OUT_T_MSB 0x04 |
Temperature Data Out MSB.
Definition at line 33 of file mpl3115a2_reg.h.
#define MPL3115A2_P_MAX_CSB 0x22 |
Maximum Pressure Data Out CSB.
Definition at line 63 of file mpl3115a2_reg.h.
#define MPL3115A2_P_MAX_LSB 0x23 |
Maximum Pressure Data Out LSB.
Definition at line 64 of file mpl3115a2_reg.h.
#define MPL3115A2_P_MAX_MSB 0x21 |
Maximum Pressure Data Out MSB.
Definition at line 62 of file mpl3115a2_reg.h.
#define MPL3115A2_P_MIN_CSB 0x1D |
Minimum Pressure Data Out CSB.
Definition at line 58 of file mpl3115a2_reg.h.
#define MPL3115A2_P_MIN_LSB 0x1E |
Minimum Pressure Data Out LSB.
Definition at line 59 of file mpl3115a2_reg.h.
#define MPL3115A2_P_MIN_MSB 0x1C |
Minimum Pressure Data Out MSB.
Definition at line 57 of file mpl3115a2_reg.h.
#define MPL3115A2_P_TGT_LSB 0x17 |
Pressure Target LSB.
Definition at line 52 of file mpl3115a2_reg.h.
#define MPL3115A2_P_TGT_MSB 0x16 |
Pressure Target MSB.
Definition at line 51 of file mpl3115a2_reg.h.
#define MPL3115A2_P_WND_LSB 0x1A |
Pressure/Altitude Window LSB.
Definition at line 55 of file mpl3115a2_reg.h.
#define MPL3115A2_P_WND_MSB 0x19 |
Pressure/Altitude Window MSB.
Definition at line 54 of file mpl3115a2_reg.h.
#define MPL3115A2_PT_DATA_CFG 0x13 |
PT Data Configuration Register.
Definition at line 48 of file mpl3115a2_reg.h.
#define MPL3115A2_PT_DATA_CFG_DREM (1 << 2) |
Definition at line 85 of file mpl3115a2_reg.h.
#define MPL3115A2_PT_DATA_CFG_PDEFE (1 << 1) |
Definition at line 84 of file mpl3115a2_reg.h.
#define MPL3115A2_PT_DATA_CFG_TDEFE (1 << 0) |
Definition at line 83 of file mpl3115a2_reg.h.
#define MPL3115A2_STATUS 0x00 |
Sensor Status Register.
Definition at line 29 of file mpl3115a2_reg.h.
#define MPL3115A2_STATUS_PDR (1 << 2) |
Definition at line 77 of file mpl3115a2_reg.h.
#define MPL3115A2_STATUS_POW (1 << 6) |
Definition at line 80 of file mpl3115a2_reg.h.
#define MPL3115A2_STATUS_PTDR (1 << 3) |
Definition at line 78 of file mpl3115a2_reg.h.
#define MPL3115A2_STATUS_PTOW (1 << 7) |
Definition at line 81 of file mpl3115a2_reg.h.
#define MPL3115A2_STATUS_TDR (1 << 1) |
Definition at line 76 of file mpl3115a2_reg.h.
#define MPL3115A2_STATUS_TOW (1 << 5) |
Definition at line 79 of file mpl3115a2_reg.h.
#define MPL3115A2_SYSMOD 0x11 |
System Mode Register.
Definition at line 46 of file mpl3115a2_reg.h.
#define MPL3115A2_T_MAX_LSB 0x25 |
Maximum Temperature Data Out LSB.
Definition at line 66 of file mpl3115a2_reg.h.
#define MPL3115A2_T_MAX_MSB 0x24 |
Maximum Temperature Data Out MSB.
Definition at line 65 of file mpl3115a2_reg.h.
#define MPL3115A2_T_MIN_LSB 0x20 |
Minimum Temperature Data Out LSB.
Definition at line 61 of file mpl3115a2_reg.h.
#define MPL3115A2_T_MIN_MSB 0x1F |
Minimum Temperature Data Out MSB.
Definition at line 60 of file mpl3115a2_reg.h.
#define MPL3115A2_T_TGT 0x18 |
Temperature Target.
Definition at line 53 of file mpl3115a2_reg.h.
#define MPL3115A2_T_WND 0x1B |
Temperature Window.
Definition at line 56 of file mpl3115a2_reg.h.
#define MPL3115A2_TIME_DLY 0x10 |
Time Delay Register.
Definition at line 45 of file mpl3115a2_reg.h.
#define MPL3115A2_WHO_AM_I 0x0C |
Device Identification Register.
Definition at line 41 of file mpl3115a2_reg.h.