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