Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
lis2dux12.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 STMicroelectronics
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_LIS2DUX12_H_
7#define ZEPHYR_INCLUDE_DT_BINDINGS_LIS2DUX12_H_
8
10
11/* Operating Mode */
12#define LIS2DUX12_OPER_MODE_POWER_DOWN 0
13#define LIS2DUX12_OPER_MODE_LOW_POWER 1
14#define LIS2DUX12_OPER_MODE_HIGH_RESOLUTION 2
15#define LIS2DUX12_OPER_MODE_HIGH_FREQUENCY 3
16
17/* Data rate */
18#define LIS2DUX12_DT_ODR_OFF 0
19#define LIS2DUX12_DT_ODR_1Hz_ULP 1 /* available in ultra-low power mode */
20#define LIS2DUX12_DT_ODR_3Hz_ULP 2 /* available in ultra-low power mode */
21#define LIS2DUX12_DT_ODR_25Hz_ULP 3 /* available in ultra-low power mode */
22#define LIS2DUX12_DT_ODR_6Hz 4 /* available in LP and HP mode */
23#define LIS2DUX12_DT_ODR_12Hz5 5 /* available in LP and HP mode */
24#define LIS2DUX12_DT_ODR_25Hz 6 /* available in LP and HP mode */
25#define LIS2DUX12_DT_ODR_50Hz 7 /* available in LP and HP mode */
26#define LIS2DUX12_DT_ODR_100Hz 8 /* available in LP and HP mode */
27#define LIS2DUX12_DT_ODR_200Hz 9 /* available in LP and HP mode */
28#define LIS2DUX12_DT_ODR_400Hz 10 /* available in LP and HP mode */
29#define LIS2DUX12_DT_ODR_800Hz 11 /* available in LP and HP mode */
30#define LIS2DUX12_DT_ODR_END 12
31
32/* Accelerometer Full-scale */
33#define LIS2DUX12_DT_FS_2G 0 /* 2g (0.061 mg/LSB) */
34#define LIS2DUX12_DT_FS_4G 1 /* 4g (0.122 mg/LSB) */
35#define LIS2DUX12_DT_FS_8G 2 /* 8g (0.244 mg/LSB) */
36#define LIS2DUX12_DT_FS_16G 3 /* 16g (0.488 mg/LSB) */
37
38#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_LIS2DUX12_H_ */