![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
i2c working version
MPU3300.h@0:7882d03f59e2, 2015-04-09 (annotated)
- Committer:
- sakthipriya
- Date:
- Thu Apr 09 22:44:39 2015 +0000
- Revision:
- 0:7882d03f59e2
i2c working version
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sakthipriya | 0:7882d03f59e2 | 1 | //MPU 3300 registers |
sakthipriya | 0:7882d03f59e2 | 2 | #define SMPLRT_DIV 0x19 |
sakthipriya | 0:7882d03f59e2 | 3 | #define CONFIG 0x1A |
sakthipriya | 0:7882d03f59e2 | 4 | #define GYRO_CONFIG 0x1B |
sakthipriya | 0:7882d03f59e2 | 5 | #define GYRO_XOUT_H 0x43 |
sakthipriya | 0:7882d03f59e2 | 6 | #define GYRO_XOUT_L 0x44 |
sakthipriya | 0:7882d03f59e2 | 7 | #define GYRO_YOUT_H 0x45 |
sakthipriya | 0:7882d03f59e2 | 8 | #define GYRO_YOUT_L 0x46 |
sakthipriya | 0:7882d03f59e2 | 9 | #define GYRO_ZOUT_H 0x47 |
sakthipriya | 0:7882d03f59e2 | 10 | #define GYRO_ZOUT_L 0x48 |
sakthipriya | 0:7882d03f59e2 | 11 | #define USER_CTRL 0x6A |
sakthipriya | 0:7882d03f59e2 | 12 | #define PWR_MGMT_1 0x6B |
sakthipriya | 0:7882d03f59e2 | 13 | #define INT_ENABLE 0x38 |
sakthipriya | 0:7882d03f59e2 | 14 | |
sakthipriya | 0:7882d03f59e2 | 15 | //MPU configuration bits |
sakthipriya | 0:7882d03f59e2 | 16 | #define READFLAG 0x80 |
sakthipriya | 0:7882d03f59e2 | 17 | #define DUMMYBIT 0x00 |
sakthipriya | 0:7882d03f59e2 | 18 | #define BITS_DLPF_CFG 0x07 |
sakthipriya | 0:7882d03f59e2 | 19 | #define BITS_FS_SEL_3 0x08 |
sakthipriya | 0:7882d03f59e2 | 20 | #define BITS_FS_SEL_4 0x10 |
sakthipriya | 0:7882d03f59e2 | 21 | #define BIT_I2C_IF_DIS 0x10 |
sakthipriya | 0:7882d03f59e2 | 22 | #define BITS_SMPLRT_DIV 0x00 |
sakthipriya | 0:7882d03f59e2 | 23 | #define BIT_SLEEP 0x40 |
sakthipriya | 0:7882d03f59e2 | 24 | #define BIT_DATA_RDY_ENABLE 0x01 |
sakthipriya | 0:7882d03f59e2 | 25 | #define BIT_DATA_RDY_INT 0x01 |
sakthipriya | 0:7882d03f59e2 | 26 | #define BIT_CLKSEL_X 0x01 |