Lines Matching +full:2 +full:x

39 #define ADXL372_STATUS_2	0x05u  /* Status register 2 */
42 #define ADXL372_X_DATA_H 0x08u /* X-axis acceleration data [11:4] */
43 #define ADXL372_X_DATA_L 0x09u /* X-axis acceleration data [3:0] */
48 #define ADXL372_X_MAXPEAK_H 0x15u /* X-axis MaxPeak acceleration data */
49 #define ADXL372_X_MAXPEAK_L 0x16u /* X-axis MaxPeak acceleration data */
54 #define ADXL372_OFFSET_X 0x20u /* X axis offset */
57 #define ADXL372_X_THRESH_ACT_H 0x23u /* X axis Activity Threshold [15:8] */
58 #define ADXL372_X_THRESH_ACT_L 0x24u /* X axis Activity Threshold [7:0] */
64 #define ADXL372_X_THRESH_INACT_H 0x2Au /* X axis Inactivity Threshold */
65 #define ADXL372_X_THRESH_INACT_L 0x2Bu /* X axis Inactivity Threshold */
72 #define ADXL372_X_THRESH_ACT2_H 0x32u /* X axis Activity2 Threshold [15:8] */
73 #define ADXL372_X_THRESH_ACT2_L 0x33u /* X axis Activity2 Threshold [7:0] */
82 #define ADXL372_INT2_MAP 0x3Cu /* Interrupt 2 mapping control */
97 #define ADXL372_REG_READ(x) (((x & 0xFF) << 1) | ADXL372_READ) argument
98 #define ADXL372_REG_WRITE(x) ((x & 0xFF) << 1) argument
99 #define ADXL372_TO_I2C_REG(x) ((x) >> 1) argument
103 #define ADXL372_POWER_CTL_INSTANT_ON_TH_MODE(x) (((x) & 0x1) << 5) argument
105 #define ADXL372_POWER_CTL_FIL_SETTLE_MODE(x) (((x) & 0x1) << 4) argument
107 #define ADXL372_POWER_CTL_LPF_DIS_MODE(x) (((x) & 0x1) << 3) argument
108 #define ADXL372_POWER_CTL_HPF_DIS_MSK BIT(2)
109 #define ADXL372_POWER_CTL_HPF_DIS_MODE(x) (((x) & 0x1) << 2) argument
111 #define ADXL372_POWER_CTL_MODE(x) (((x) & 0x3) << 0) argument
115 #define ADXL372_MEASURE_AUTOSLEEP_MODE(x) (((x) & 0x1) << 6) argument
117 #define ADXL372_MEASURE_LINKLOOP_MODE(x) (((x) & 0x3) << 4) argument
119 #define ADXL372_MEASURE_LOW_NOISE_MODE(x) (((x) & 0x1) << 3) argument
120 #define ADXL372_MEASURE_BANDWIDTH_MSK GENMASK(2, 0)
121 #define ADXL372_MEASURE_BANDWIDTH_MODE(x) (((x) & 0x7) << 0) argument
125 #define ADXL372_TIMING_ODR_MODE(x) (((x) & 0x7) << 5) argument
126 #define ADXL372_TIMING_WAKE_UP_RATE_MSK GENMASK(4, 2)
127 #define ADXL372_TIMING_WAKE_UP_RATE_MODE(x) (((x) & 0x7) << 2) argument
129 #define ADXL372_TIMING_EXT_CLK_MODE(x) (((x) & 0x1) << 1) argument
131 #define ADXL372_TIMING_EXT_SYNC_MODE(x) (((x) & 0x1) << 0) argument
135 #define ADXL372_FIFO_CTL_FORMAT_MODE(x) (((x) & 0x7) << 3) argument
136 #define ADXL372_FIFO_CTL_MODE_MSK GENMASK(2, 1)
137 #define ADXL372_FIFO_CTL_MODE_MODE(x) (((x) & 0x3) << 1) argument
139 #define ADXL372_FIFO_CTL_SAMPLES_MODE(x) (((x) > 0xFF) ? 1 : 0) argument
142 #define ADXL372_STATUS_1_DATA_RDY(x) (((x) >> 0) & 0x1) argument
143 #define ADXL372_STATUS_1_FIFO_RDY(x) (((x) >> 1) & 0x1) argument
144 #define ADXL372_STATUS_1_FIFO_FULL(x) (((x) >> 2) & 0x1) argument
145 #define ADXL372_STATUS_1_FIFO_OVR(x) (((x) >> 3) & 0x1) argument
146 #define ADXL372_STATUS_1_USR_NVM_BUSY(x) (((x) >> 5) & 0x1) argument
147 #define ADXL372_STATUS_1_AWAKE(x) (((x) >> 6) & 0x1) argument
148 #define ADXL372_STATUS_1_ERR_USR_REGS(x) (((x) >> 7) & 0x1) argument
151 #define ADXL372_STATUS_2_INACT(x) (((x) >> 4) & 0x1) argument
152 #define ADXL372_STATUS_2_ACTIVITY(x) (((x) >> 5) & 0x1) argument
153 #define ADXL372_STATUS_2_ACTIVITY2(x) (((x) >> 6) & 0x1) argument
157 #define ADXL372_INT1_MAP_DATA_RDY_MODE(x) (((x) & 0x1) << 0) argument
159 #define ADXL372_INT1_MAP_FIFO_RDY_MODE(x) (((x) & 0x1) << 1) argument
160 #define ADXL372_INT1_MAP_FIFO_FULL_MSK BIT(2)
161 #define ADXL372_INT1_MAP_FIFO_FULL_MODE(x) (((x) & 0x1) << 2) argument
163 #define ADXL372_INT1_MAP_FIFO_OVR_MODE(x) (((x) & 0x1) << 3) argument
165 #define ADXL372_INT1_MAP_INACT_MODE(x) (((x) & 0x1) << 4) argument
167 #define ADXL372_INT1_MAP_ACT_MODE(x) (((x) & 0x1) << 5) argument
169 #define ADXL372_INT1_MAP_AWAKE_MODE(x) (((x) & 0x1) << 6) argument
171 #define ADXL372_INT1_MAP_LOW_MODE(x) (((x) & 0x1) << 7) argument
175 #define ADXL372_INT2_MAP_DATA_RDY_MODE(x) (((x) & 0x1) << 0) argument
177 #define ADXL372_INT2_MAP_FIFO_RDY_MODE(x) (((x) & 0x1) << 1) argument
178 #define ADXL372_INT2_MAP_FIFO_FULL_MSK BIT(2)
179 #define ADXL372_INT2_MAP_FIFO_FULL_MODE(x) (((x) & 0x1) << 2) argument
181 #define ADXL372_INT2_MAP_FIFO_OVR_MODE(x) (((x) & 0x1) << 3) argument
183 #define ADXL372_INT2_MAP_INACT_MODE(x) (((x) & 0x1) << 4) argument
185 #define ADXL372_INT2_MAP_ACT_MODE(x) (((x) & 0x1) << 5) argument
187 #define ADXL372_INT2_MAP_AWAKE_MODE(x) (((x) & 0x1) << 6) argument
189 #define ADXL372_INT2_MAP_LOW_MODE(x) (((x) & 0x1) << 7) argument
192 #define ADXL372_HPF_CORNER(x) (((x) & 0x3) << 0) argument
294 int16_t x; member
337 uint8_t fifo_ent[2];