Dezibot 4
Loading...
Searching...
No Matches
IMU_CMDs.h
Go to the documentation of this file.
1#ifndef IMU_CMDs
2#define IMU_CMDs
3
4#define CMD_READ 0x80
5#define CMD_WRITE 0x00
6#define ADDR_MASK 0x7F
7
8//Registers
9#define MCLK_RDY 0x00
10
11#define REG_TEMP_LOW 0x0A
12#define REG_TEMP_HIGH 0X09
13
14#define ACCEL_DATA_X_HIGH 0x0B
15#define ACCEL_DATA_X_LOW 0x0C
16#define ACCEL_DATA_Y_HIGH 0x0D
17#define ACCEL_DATA_Y_LOW 0x0E
18#define ACCEL_DATA_Z_HIGH 0x0F
19#define ACCEL_DATA_Z_LOW 0x10
20
21#define GYRO_DATA_X_HIGH 0x11
22#define GYRO_DATA_X_LOW 0x12
23#define GYRO_DATA_Y_HIGH 0x13
24#define GYRO_DATA_Y_LOW 0x14
25#define GYRO_DATA_Z_HIGH 0x15
26#define GYRO_DATA_Z_LOW 0x16
27
28#define PWR_MGMT0 0x1F
29#define WHO_AM_I 0x75
30
31#define INTF_CONFIG0 0x35
32
33#define BLK_SEL_W 0x79
34#define BLK_SEL_R 0x7C
35#define MADDR_W 0x7A
36#define MADDR_R 0x7D
37#define M_W 0x7B
38#define M_R 0x7E
39
40#define FIFO_COUNTH 0x3D
41#define FIFO_COUNTL 0x3E
42#define FIFO_DATA 0x3F
43#define FIFO_CONFIG1 0x28
44#define FIFO_CONFIG2 0x29
45
46//MREG1
47#define FIFO_CONFIG5 0x01
48#define TMST_CONFIG1 0x00
49#endif