1 /*
2  * Copyright (c) 2018 TDK Invensense
3  *
4  * SPDX-License-Identifier: BSD 3-Clause
5  */
6 
7 #ifndef _INV_IMU_H_
8 #define _INV_IMU_H_
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 /** @defgroup IMU IMU
15  *  @brief Describes IMU
16  *  @{
17  */
18 
19 /** @file inv_imu.h */
20 
21 /* Device description ICM42670P */
22 #define INV_ICM42670P_STRING_ID         "ICM42670P"
23 #define INV_ICM42670P_WHOAMI            0x67
24 
25 /* Device description ICM42670S */
26 #define INV_ICM42670S_STRING_ID         "ICM42670S"
27 #define INV_ICM42670S_WHOAMI            0x69
28 
29 /* Device description ICM42370P */
30 #define INV_ICM42370P_STRING_ID         "ICM42370P"
31 #define INV_ICM42370P_WHOAMI            0x0D
32 
33 #define INV_IMU_REV                     INV_IMU_REV_A
34 #define INV_IMU_HFSR_SUPPORTED          0
35 
36 #if CONFIG_USE_EMD_ICM42670
37   #define INV_IMU_IS_GYRO_SUPPORTED     1
38 #else /* USE_EMD_ICM42370 */
39   #define INV_IMU_IS_GYRO_SUPPORTED     0
40 #endif
41 
42 #ifdef __cplusplus
43 }
44 #endif
45 
46 #endif /* #ifndef _INV_IMU_H_ */
47 
48 /** @} */
49