mpu9150-regs.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Freie Universit├Ąt Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
19 #ifndef MPU9150_REGS_H
20 #define MPU9150_REGS_H
21 
22 
23 #ifdef __cplusplus
24  extern "C" {
25 #endif
26 
31 #define MPU9150_YG_OFFS_TC_REG (0x01)
32 #define MPU9150_RATE_DIV_REG (0x19)
33 #define MPU9150_LPF_REG (0x1A)
34 #define MPU9150_GYRO_CFG_REG (0x1B)
35 #define MPU9150_ACCEL_CFG_REG (0x1C)
36 #define MPU9150_FIFO_EN_REG (0x23)
37 #define MPU9150_I2C_MST_REG (0x24)
38 #define MPU9150_SLAVE0_ADDR_REG (0x25)
39 #define MPU9150_SLAVE0_REG_REG (0x26)
40 #define MPU9150_SLAVE0_CTRL_REG (0x27)
41 #define MPU9150_SLAVE1_ADDR_REG (0x28)
42 #define MPU9150_SLAVE1_REG_REG (0x29)
43 #define MPU9150_SLAVE1_CTRL_REG (0x2A)
44 #define MPU9150_SLAVE4_CTRL_REG (0x34)
45 #define MPU9150_INT_PIN_CFG_REG (0x37)
46 #define MPU9150_INT_ENABLE_REG (0x38)
47 #define MPU9150_DMP_INT_STATUS (0x39)
48 #define MPU9150_INT_STATUS (0x3A)
49 #define MPU9150_ACCEL_START_REG (0x3B)
50 #define MPU9150_TEMP_START_REG (0x41)
51 #define MPU9150_GYRO_START_REG (0x43)
52 #define MPU9150_EXT_SENS_DATA_START_REG (0x49)
53 #define MPU9150_COMPASS_DATA_START_REG (0x4A)
54 #define MPU9150_SLAVE0_DATA_OUT_REG (0x63)
55 #define MPU9150_SLAVE1_DATA_OUT_REG (0x64)
56 #define MPU9150_SLAVE2_DATA_OUT_REG (0x65)
57 #define MPU9150_SLAVE3_DATA_OUT_REG (0x66)
58 #define MPU9150_I2C_DELAY_CTRL_REG (0x67)
59 #define MPU9150_USER_CTRL_REG (0x6A)
60 #define MPU9150_PWR_MGMT_1_REG (0x6B)
61 #define MPU9150_PWR_MGMT_2_REG (0x6C)
62 #define MPU9150_FIFO_COUNT_START_REG (0x72)
63 #define MPU9150_FIFO_RW_REG (0x74)
64 #define MPU9150_WHO_AM_I_REG (0x75)
65 
71 #define COMPASS_WHOAMI_REG (0x00)
72 #define COMPASS_ST1_REG (0x02)
73 #define COMPASS_DATA_START_REG (0x03)
74 #define COMPASS_ST2_REG (0x09)
75 #define COMPASS_CNTL_REG (0x0A)
76 #define COMPASS_ASTC_REG (0x0C)
77 #define COMPASS_ASAX_REG (0x10)
78 #define COMPASS_ASAY_REG (0x11)
79 #define COMPASS_ASAZ_REG (0x12)
80 
86 #define BIT_SLV0_DELAY_EN (0x01)
87 #define BIT_SLV1_DELAY_EN (0x02)
88 #define BIT_I2C_BYPASS_EN (0x02)
89 #define BIT_I2C_MST_EN (0x20)
90 #define BIT_PWR_MGMT1_SLEEP (0x40)
91 #define BIT_WAIT_FOR_ES (0x40)
92 #define BIT_I2C_MST_VDDIO (0x80)
93 #define BIT_SLAVE_RW (0x80)
94 #define BIT_SLAVE_EN (0x80)
95 #define BIT_DMP_EN (0x80)
96 
98 #ifdef __cplusplus
99 }
100 #endif
101 
102 #endif /* MPU9150_REGS_H */
103