Lines Matching +full:1 +full:- +full:5
1 /* sensor_lsm6dsl.h - header file for LSM6DSL accelerometer, gyroscope and
8 * SPDX-License-Identifier: Apache-2.0
31 #define LSM6DSL_MASK_FUNC_CFG_EN_B BIT(5)
32 #define LSM6DSL_SHIFT_FUNC_CFG_EN_B 5
36 BIT(1) | BIT(0))
40 #define LSM6DSL_MASK_SENSOR_SYNC_RES_RATIO (BIT(1) | BIT(0))
45 BIT(5) | BIT(4) | \
47 BIT(1) | BIT(0))
57 #define LSM6DSL_MASK_FIFO_CTRL2_FTH (BIT(2) | BIT(1) | \
62 #define LSM6DSL_MASK_FIFO_CTRL3_DEC_FIFO_GYRO (BIT(5) | BIT(4) | \
65 #define LSM6DSL_MASK_FIFO_CTRL3_DEC_FIFO_XL (BIT(2) | BIT(1) | \
74 #define LSM6DSL_MASK_FIFO_CTRL4_DEC_DS4_FIFO (BIT(5) | BIT(4) | \
77 #define LSM6DSL_MASK_FIFO_CTRL4_DEC_DS3_FIFO (BIT(2) | BIT(1) | \
82 #define LSM6DSL_MASK_FIFO_CTRL5_ODR_FIFO (BIT(6) | BIT(5) | \
85 #define LSM6DSL_MASK_FIFO_CTRL5_FIFO_MODE (BIT(2) | BIT(1) | \
100 #define LSM6DSL_MASK_INT1_CTRL_FULL_FLAG BIT(5)
101 #define LSM6DSL_SHIFT_INT1_CTRL_FULL_FLAG 5
108 #define LSM6DSL_MASK_INT1_CTRL_DRDY_G BIT(1)
109 #define LSM6DSL_SHIFT_INT1_CTRL_DRDY_G 1
118 #define LSM6DSL_MASK_INT2_CTRL_FULL_FLAG BIT(5)
119 #define LSM6DSL_SHIFT_INT2_CTRL_FULL_FLAG 5
126 #define LSM6DSL_MASK_INT2_CTRL_DRDY_G BIT(1)
127 #define LSM6DSL_SHIFT_INT2_CTRL_DRDY_G 1
136 BIT(5) | BIT(4))
140 #define LSM6DSL_MASK_CTRL1_XL_LPF1_BW_SEL BIT(1)
141 #define LSM6DSL_SHIFT_CTRL1_XL_LPF1_BW_SEL 1
145 BIT(5) | BIT(4))
149 #define LSM6DSL_MASK_CTRL2_FS125 BIT(1)
150 #define LSM6DSL_SHIFT_CTRL2_FS125 1
157 #define LSM6DSL_MASK_CTRL3_C_H_LACTIVE BIT(5)
158 #define LSM6DSL_SHIFT_CTRL3_C_H_LACTIVE 5
165 #define LSM6DSL_MASK_CTRL3_C_BLE BIT(1)
166 #define LSM6DSL_SHIFT_CTRL3_C_BLE 1
175 #define LSM6DSL_MASK_CTRL4_C_INT2_ON_INT1 BIT(5)
176 #define LSM6DSL_SHIFT_CTRL4_C_INT2_ON_INT1 5
183 #define LSM6DSL_MASK_CTRL4_C_LPF1_SEL_G BIT(1)
184 #define LSM6DSL_SHIFT_CTRL4_C_LPF1_SEL_G 1
188 BIT(5))
189 #define LSM6DSL_SHIFT_CTRL5_C_ROUNDING 5
194 #define LSM6DSL_MASK_CTRL5_C_ST_XL (BIT(1) | BIT(0))
202 #define LSM6DSL_MASK_CTRL6_C_LVL2_EN BIT(5)
203 #define LSM6DSL_SHIFT_CTRL6_C_LVL2_EN 5
208 #define LSM6DSL_MASK_CTRL6_C_FTYPE (BIT(0) | BIT(1))
216 #define LSM6DSL_MASK_CTRL7_HPM_G (BIT(5) | BIT(4))
224 #define LSM6DSL_MASK_CTRL8_HPCF_XL (BIT(6) | BIT(5))
225 #define LSM6DSL_SHIFT_CTRL8_HPCF_XL 5
240 #define LSM6DSL_MASK_CTRL9_XL_DEN_Z BIT(5)
241 #define LSM6DSL_SHIFT_CTRL9_XL_DEN_Z 5
250 #define LSM6DSL_MASK_CTRL10_C_TIMER_EN BIT(5)
251 #define LSM6DSL_SHIFT_CTRL10_C_TIMER_EN 5
258 #define LSM6DSL_MASK_CTRL10_C_PEDO_RST_STEP BIT(1)
259 #define LSM6DSL_SHIFT_CTRL10_C_PEDO_RST_STEP 1
274 #define LSM6DSL_MASK_MASTER_CONFIG_IRON_EN BIT(1)
275 #define LSM6DSL_SHIFT_MASTER_CONFIG_IRON_EN 1
280 #define LSM6DSL_MASK_WAKE_UP_SRC_FF_IA BIT(5)
281 #define LSM6DSL_SHIFT_WAKE_UP_SRC_FF_IA 5
288 #define LSM6DSL_MASK_WAKE_UP_SRC_Y_WU BIT(1)
289 #define LSM6DSL_SHIFT_WAKE_UP_SRC_Y_WU 1
296 #define LSM6DSL_MASK_TAP_SRC_SINGLE_TAP BIT(5)
297 #define LSM6DSL_SHIFT_TAP_SRC_SINGLE_TAP 5
304 #define LSM6DSL_MASK_TAP_SRC_Y_TAP BIT(1)
305 #define LSM6DSL_SHIFT_TAP_SRC_Y_TAP 1
314 #define LSM6DSL_MASK_D6D_SRC_ZH BIT(5)
315 #define LSM6DSL_SHIFT_D6D_SRC_ZH 5
322 #define LSM6DSL_MASK_D6D_SRC_XH BIT(1)
323 #define LSM6DSL_SHIFT_D6D_SRC_XH 1
330 #define LSM6DSL_MASK_STATUS_REG_GDA BIT(1)
331 #define LSM6DSL_SHIFT_STATUS_REG_GDA 1
368 #define LSM6DSL_MASK_FIFO_STATUS2_FIFO_FULL_SMART BIT(5)
369 #define LSM6DSL_SHIFT_FIFO_STATUS2_FIFO_FULL_SMART 5
372 #define LSM6DSL_MASK_FIFO_STATUS2_DIFF_FIFO (BIT(2) | BIT(1) | \
381 #define LSM6DSL_MASK_FIFO_STATUS4_FIFO_PATTERN (BIT(1) | BIT(0))
405 #define LSM6DSL_MASK_FUNC_SRC1_TILT_IA BIT(5)
406 #define LSM6DSL_SHIFT_FUNC_SRC1_TILT_IA 5
413 #define LSM6DSL_MASK_FUNC_SRC1_SI_SEND_OP BIT(1)
414 #define LSM6DSL_SHIFT_FUNC_SRC1_SI_SEND_OP 1
421 #define LSM6DSL_MASK_FUNC_SRC2_SLAVE2_NACK BIT(5)
422 #define LSM6DSL_SHIFT_FUNC_SRC2_SLAVE2_NACK 5
435 #define LSM6DSL_MASK_WRIST_TILT_IA_YPOS BIT(5)
436 #define LSM6DSL_SHIFT_WRIST_TILT_IA_YPOS 5
447 #define LSM6DSL_MASK_TAP_CFG_INACT_EN (BIT(6) | BIT(5))
448 #define LSM6DSL_SHIFT_TAP_CFG_INACT_EN 5
455 #define LSM6DSL_MASK_TAP_CFG_Z_EN BIT(1)
456 #define LSM6DSL_SHIFT_TAP_CFG_Z_EN 1
463 #define LSM6DSL_MASK_TAP_THS_6D_SIXD_THS (BIT(6) | BIT(5))
464 #define LSM6DSL_SHIFT_TAP_THS_6D_SIXD_THS 5
466 BIT(2) | BIT(1) | \
472 BIT(5) | BIT(4))
476 #define LSM6DSL_MASK_INT_DUR2_SHOCK (BIT(1) | BIT(0))
482 #define LSM6DSL_MASK_WAKE_UP_THS_WK_THS (BIT(5) | BIT(4) | \
484 BIT(1) | BIT(0))
490 #define LSM6DSL_MASK_WAKE_UP_DUR_WAKE_DUR (BIT(6) | BIT(5))
491 #define LSM6DSL_SHIFT_WAKE_UP_DUAR_WAKE_DUR 5
495 BIT(1) | BIT(0))
500 BIT(5) | BIT(4) | \
503 #define LSM6DSL_MASK_FREE_FALL_THS (BIT(2) | BIT(1) | \
512 #define LSM6DSL_MASK_MD1_CFG_INT1_WU BIT(5)
513 #define LSM6DSL_SHIFT_MD1_CFG_INT1_WU 5
520 #define LSM6DSL_MASK_MD1_CFG_INT1_TILT BIT(1)
521 #define LSM6DSL_SHIFT_MD1_CFG_INT1_TILT 1
530 #define LSM6DSL_MASK_MD2_CFG_INT2_WU BIT(5)
531 #define LSM6DSL_SHIFT_MD2_CFG_INT2_WU 5
538 #define LSM6DSL_MASK_MD2_CFG_INT2_TILT BIT(1)
539 #define LSM6DSL_SHIFT_MD2_CFG_INT2_TILT 1
563 #define LSM6DSL_ACCEL_FS_RUNTIME 1
576 #define LSM6DSL_DEFAULT_ACCEL_FULLSCALE 1
581 #define LSM6DSL_ACCEL_ODR_RUNTIME 1
587 #define LSM6DSL_GYRO_FS_RUNTIME 1
597 #define LSM6DSL_DEFAULT_GYRO_FULLSCALE 1
609 #define LSM6DSL_GYRO_ODR_RUNTIME 1