Lines Matching +full:0 +full:- +full:2
1 /* sensor_lps25hb.h - header file for LPS25HB pressure and temperature
8 * SPDX-License-Identifier: Apache-2.0
18 #define LPS25HB_REG_WHO_AM_I 0x0F
19 #define LPS25HB_VAL_WHO_AM_I 0xBD
21 #define LPS25HB_REG_REF_P_XL 0x08
22 #define LPS25HB_REG_REF_P_L 0x09
23 #define LPS25HB_REG_REF_P_H 0x0A
25 #define LPS25HB_REG_RES_CONF 0x10
26 #define LPS25HB_MASK_RES_CONF_AVGT (BIT(3) | BIT(2))
27 #define LPS25HB_SHIFT_RES_CONF_AVGT 2
28 #define LPS25HB_MASK_RES_CONF_AVGP (BIT(1) | BIT(0))
29 #define LPS25HB_SHIFT_RES_CONF_AVGP 0
31 #define LPS25HB_REG_CTRL_REG1 0x20
38 #define LPS25HB_MASK_CTRL_REG1_BDU BIT(2)
39 #define LPS25HB_SHIFT_CTRL_REG1_BDU 2
42 #define LPS25HB_MASK_CTRL_REG1_SIM BIT(0)
43 #define LPS25HB_SHIFT_CTRL_REG1_SIM 0
45 #define LPS25HB_REG_CTRL_REG2 0x21
56 #define LPS25HB_MASK_CTRL_REG2_SWRESET BIT(2)
57 #define LPS25HB_SHIFT_CTRL_REG2_SWRESET 2
60 #define LPS25HB_MASK_CTRL_REG2_ONE_SHOT BIT(0)
61 #define LPS25HB_SHIFT_CTRL_REG2_ONE_SHOT 0
63 #define LPS25HB_REG_CTRL_REG3 0x22
68 #define LPS25HB_MASK_CTRL_REG3_INT_S (BIT(1) | BIT(0))
69 #define LPS25HB_SHIFT_CTRL_REG_INT_S 0
71 #define LPS25HB_REG_CTRL_REG4 0x23
74 #define LPS25HB_MASK_CTRL_REG4_F_FTH BIT(2)
75 #define LPS25HB_SHIFT_CTRL_REG4_F_FTH 2
78 #define LPS25HB_MASK_CTRL_REG4_DRDY BIT(0)
79 #define LPS25HB_SHIFT_CTRL_REG4_DRDY 0
81 #define LPS25HB_REG_INTERRUPT_CFG 0x24
82 #define LPS25HB_MASK_INTERRUPT_CFG_LIR BIT(2)
83 #define LPS25HB_SHIFT_INTERRUPT_CFG_LIR 2
86 #define LPS25HB_MASK_INTERRUPT_CFG_PH_E BIT(0)
87 #define LPS25HB_SHIFT_INTERRUPT_CFG_PH_E 0
89 #define LPS25HB_REG_INT_SOURCE 0x25
90 #define LPS25HB_MASK_INT_SOURCE_IA BIT(2)
91 #define LPS25HB_SHIFT_INT_SOURCE_IA 2
94 #define LPS25HB_MASK_INT_SOURCE_PH BIT(0)
95 #define LPS25HB_SHIFT_INT_SOURCE_PH 0
97 #define LPS25HB_REG_STATUS_REG 0x27
104 #define LPS25HB_MASK_STATUS_REG_T_DA BIT(0)
105 #define LPS25HB_SHIFT_STATUS_REG_T_DA 0
107 #define LPS25HB_REG_PRESS_OUT_XL 0x28
108 #define LPS25HB_REG_PRESS_OUT_L 0x29
109 #define LPS25HB_REG_PRESS_OUT_H 0x2A
111 #define LPS25HB_REG_TEMP_OUT_L 0x2B
112 #define LPS25HB_REG_TEMP_OUT_H 0x2C
114 #define LPS25HB_REG_FIFO_CTRL 0x2E
117 #define LPS25HB_MASK_FIFO_CTRL_WTM_POINT (BIT(4) | BIT(3) | BIT(2) | \
118 BIT(2) | BIT(1) | BIT(0))
119 #define LPS25HB_SHIFT_FIFO_CTRL_WTM_POINT 0
121 #define LPS25HB_REG_FIFO_STATUS 0x2F
128 #define LPS25HB_MASK_FIFO_STATUS_FSS (BIT(4) | BIT(3) | BIT(2) | \
129 BIT(1) | BIT(0))
130 #define LPS25HB_SHIFT_FIFO_STATUS_FSS 0
132 #define LPS25HB_REG_THS_P_L 0x30
133 #define LPS25HB_REG_THS_P_H 0x31
135 #define LPS25HB_REG_RPDS_L 0x39
136 #define LPS25HB_REG_RPDS_H 0x3A
141 #define LPS25HB_DEFAULT_SAMPLING_RATE 2