Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
lsm6dso.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_ST_LSM6DSO_H_
7#define ZEPHYR_INCLUDE_DT_BINDINGS_ST_LSM6DSO_H_
8
9/* Accel power-modes */
10#define LSM6DSO_DT_XL_HP_MODE 0
11#define LSM6DSO_DT_XL_LP_NORMAL_MODE 1
12#define LSM6DSO_DT_XL_ULP_MODE 2
13
14/* Gyro power-modes */
15#define LSM6DSO_DT_GY_HP_MODE 0
16#define LSM6DSO_DT_GY_NORMAL_MODE 1
17
18/* Accel range */
19#define LSM6DSO_DT_FS_2G 0
20#define LSM6DSO_DT_FS_16G 1
21#define LSM6DSO_DT_FS_4G 2
22#define LSM6DSO_DT_FS_8G 3
23
24/* Gyro range */
25#define LSM6DSO_DT_FS_250DPS 0
26#define LSM6DSO_DT_FS_125DPS 1
27#define LSM6DSO_DT_FS_500DPS 2
28#define LSM6DSO_DT_FS_1000DPS 4
29#define LSM6DSO_DT_FS_2000DPS 6
30
31/* Accel and Gyro Data rates */
32#define LSM6DSO_DT_ODR_OFF 0x0
33#define LSM6DSO_DT_ODR_12Hz5 0x1
34#define LSM6DSO_DT_ODR_26H 0x2
35#define LSM6DSO_DT_ODR_52Hz 0x3
36#define LSM6DSO_DT_ODR_104Hz 0x4
37#define LSM6DSO_DT_ODR_208Hz 0x5
38#define LSM6DSO_DT_ODR_417Hz 0x6
39#define LSM6DSO_DT_ODR_833Hz 0x7
40#define LSM6DSO_DT_ODR_1667Hz 0x8
41#define LSM6DSO_DT_ODR_3333Hz 0x9
42#define LSM6DSO_DT_ODR_6667Hz 0xa
43#define LSM6DSO_DT_ODR_1Hz6 0xb
44
45#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_ST_LSM6DSO_H_ */