This repository has been archived by the owner on Nov 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IMURegisters.h
102 lines (101 loc) · 3.71 KB
/
IMURegisters.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#pragma once
#define IMU_SELF_TEST_X_GYR 0x00 /*0*/
#define IMU_SELF_TEST_Y_GYR 0x01 /*1*/
#define IMU_SELF_TEST_Z_GYR 0x02 /*2*/
#define IMU_SELF_TEST_X_ACC 0x0D /*13*/
#define IMU_SELF_TEST_Y_ACC 0x0E /*14*/
#define IMU_SELF_TEST_Z_ACC 0x0F /*15*/
#define IMU_XG_OFFSET_H 0x13 /*19*/
#define IMU_XG_OFFSET_L 0x14 /*20*/
#define IMU_YG_OFFSET_H 0x15 /*21*/
#define IMU_YG_OFFSET_L 0x16 /*22*/
#define IMU_ZG_OFFSET_H 0x17 /*23*/
#define IMU_ZG_OFFSET_L 0x18 /*24*/
#define IMU_SMPLRT_DIV 0x19 /*25*/
#define IMU_CONFIG 0x1A /*26*/
#define IMU_GYRO_CONFIG 0x1B /*27*/
#define IMU_ACCEL_CONFIG 0x1C /*28*/
#define IMU_ACCEL_CONFIG_2 0x1D /*29*/
#define IMU_LP_ACCEL_ODR 0x1E /*30*/
#define IMU_WOM_THR 0x1F /*31*/
#define IMU_FIFO_EN 0x23 /*35*/
#define IMU_I2C_MST_CTRL 0x24 /*36*/
#define IMU_I2C_SLV0_ADDR 0x25 /*37*/
#define IMU_I2C_SLV0_REG 0x26 /*38*/
#define IMU_I2C_SLV0_CTRL 0x27 /*39*/
#define IMU_I2C_SLV1_ADDR 0x28 /*40*/
#define IMU_I2C_SLV1_REG 0x29 /*41*/
#define IMU_I2C_SLV1_CTRL 0x2A /*42*/
#define IMU_I2C_SLV2_ADDR 0x2B /*43*/
#define IMU_I2C_SLV2_REG 0x2C /*44*/
#define IMU_I2C_SLV2_CTRL 0x2D /*45*/
#define IMU_I2C_SLV3_ADDR 0x2E /*46*/
#define IMU_I2C_SLV3_REG 0x2F /*47*/
#define IMU_I2C_SLV3_CTRL 0x30 /*48*/
#define IMU_I2C_SLV4_ADDR 0x31 /*49*/
#define IMU_I2C_SLV4_REG 0x32 /*50*/
#define IMU_I2C_SLV4_DO 0x33 /*51*/
#define IMU_I2C_SLV4_CTRL 0x34 /*52*/
#define IMU_I2C_SLV4_DI 0x35 /*53*/
#define IMU_I2C_MST_STATUS 0x36 /*54*/
#define IMU_INT_PIN_CFG 0x37 /*55*/
#define IMU_INT_ENABLE 0x38 /*56*/
#define IMU_INT_STATUS 0x3A /*58*/
#define IMU_ACCEL_XOUT_H 0x3B /*59*/
#define IMU_ACCEL_XOUT_L 0x3C /*60*/
#define IMU_ACCEL_YOUT_H 0x3D /*61*/
#define IMU_ACCEL_YOUT_L 0x3E /*62*/
#define IMU_ACCEL_ZOUT_H 0x3F /*63*/
#define IMU_ACCEL_ZOUT_L 0x40 /*64*/
#define IMU_TEMP_OUT_H 0x41 /*65*/
#define IMU_TEMP_OUT_L 0x42 /*66*/
#define IMU_GYRO_XOUT_H 0x43 /*67*/
#define IMU_GYRO_XOUT_L 0x44 /*68*/
#define IMU_GYRO_YOUT_H 0x45 /*69*/
#define IMU_GYRO_YOUT_L 0x46 /*70*/
#define IMU_GYRO_ZOUT_H 0x47 /*71*/
#define IMU_GYRO_ZOUT_L 0x48 /*72*/
#define IMU_EXT_SENS_DATA_00 0x49 /*73*/
#define IMU_EXT_SENS_DATA_01 0x4A /*74*/
#define IMU_EXT_SENS_DATA_02 0x4B /*75*/
#define IMU_EXT_SENS_DATA_03 0x4C /*76*/
#define IMU_EXT_SENS_DATA_04 0x4D /*77*/
#define IMU_EXT_SENS_DATA_05 0x4E /*78*/
#define IMU_EXT_SENS_DATA_06 0x4F /*79*/
#define IMU_EXT_SENS_DATA_07 0x50 /*80*/
#define IMU_EXT_SENS_DATA_08 0x51 /*81*/
#define IMU_EXT_SENS_DATA_09 0x52 /*82*/
#define IMU_EXT_SENS_DATA_10 0x53 /*83*/
#define IMU_EXT_SENS_DATA_11 0x54 /*84*/
#define IMU_EXT_SENS_DATA_12 0x55 /*85*/
#define IMU_EXT_SENS_DATA_13 0x56 /*86*/
#define IMU_EXT_SENS_DATA_14 0x57 /*87*/
#define IMU_EXT_SENS_DATA_15 0x58 /*88*/
#define IMU_EXT_SENS_DATA_16 0x59 /*89*/
#define IMU_EXT_SENS_DATA_17 0x5A /*90*/
#define IMU_EXT_SENS_DATA_18 0x5B /*91*/
#define IMU_EXT_SENS_DATA_19 0x5C /*92*/
#define IMU_EXT_SENS_DATA_20 0x5D /*93*/
#define IMU_EXT_SENS_DATA_21 0x5E /*94*/
#define IMU_EXT_SENS_DATA_22 0x5F /*95*/
#define IMU_EXT_SENS_DATA_23 0x60 /*96*/
#define IMU_I2C_SLV0_DO 0x63 /*99*/
#define IMU_I2C_SLV1_DO 0x64 /*100*/
#define IMU_I2C_SLV2_DO 0x65 /*101*/
#define IMU_I2C_SLV3_DO 0x66 /*102*/
#define IMU_I2C_MST_DELAY_CTRL 0x67 /*103*/
#define IMU_SIGNAL_PATH_RESET 0x68 /*104*/
#define IMU_MOT_DETECT_CTRL 0x69 /*105*/
#define IMU_USER_CTRL 0x6A /*106*/
#define IMU_PWR_MGMT_1 0x6B /*107*/
#define IMU_PWR_MGMT_2 0x6C /*108*/
#define IMU_FIFO_COUNTH 0x72 /*114*/
#define IMU_FIFO_COUNTL 0x73 /*115*/
#define IMU_FIFO_R_W 0x74 /*116*/
#define IMU_WHO_AM_I 0x75 /*117*/
#define IMU_XA_OFFSET_H 0x77 /*119*/
#define IMU_XA_OFFSET_L 0x78 /*120*/
#define IMU_YA_OFFSET_H 0x7A /*122*/
#define IMU_YA_OFFSET_L 0x7B /*123*/
#define IMU_ZA_OFFSET_H 0x7D /*125*/
#define IMU_ZA_OFFSET_L 0x7E /*126*/