with i2c

Dependencies:   mbed-rtos mbed

Fork of BAE_b4hw_test by sakthi priya amirtharaj

Committer:
sakthipriya
Date:
Wed Mar 04 18:14:01 2015 +0000
Revision:
8:6d856d863537
Parent:
0:ebdf4f859dca
with i2c

Who changed what in which revision?

UserRevisionLine numberNew contents of line
raizel_varun 0:ebdf4f859dca 1 //MPU 3300 registers
raizel_varun 0:ebdf4f859dca 2 #define SMPLRT_DIV 0x19
raizel_varun 0:ebdf4f859dca 3 #define CONFIG 0x1A
raizel_varun 0:ebdf4f859dca 4 #define GYRO_CONFIG 0x1B
raizel_varun 0:ebdf4f859dca 5 #define GYRO_XOUT_H 0x43
raizel_varun 0:ebdf4f859dca 6 #define GYRO_XOUT_L 0x44
raizel_varun 0:ebdf4f859dca 7 #define GYRO_YOUT_H 0x45
raizel_varun 0:ebdf4f859dca 8 #define GYRO_YOUT_L 0x46
raizel_varun 0:ebdf4f859dca 9 #define GYRO_ZOUT_H 0x47
raizel_varun 0:ebdf4f859dca 10 #define GYRO_ZOUT_L 0x48
raizel_varun 0:ebdf4f859dca 11 #define USER_CTRL 0x6A
raizel_varun 0:ebdf4f859dca 12 #define PWR_MGMT_1 0x6B
raizel_varun 0:ebdf4f859dca 13 #define INT_ENABLE 0x38
raizel_varun 0:ebdf4f859dca 14
raizel_varun 0:ebdf4f859dca 15 //MPU configuration bits
raizel_varun 0:ebdf4f859dca 16 #define READFLAG 0x80
raizel_varun 0:ebdf4f859dca 17 #define DUMMYBIT 0x00
raizel_varun 0:ebdf4f859dca 18 #define BITS_DLPF_CFG 0x07
raizel_varun 0:ebdf4f859dca 19 #define BITS_FS_SEL_3 0x08
raizel_varun 0:ebdf4f859dca 20 #define BITS_FS_SEL_4 0x10
raizel_varun 0:ebdf4f859dca 21 #define BIT_I2C_IF_DIS 0x10
raizel_varun 0:ebdf4f859dca 22 #define BITS_SMPLRT_DIV 0x00
raizel_varun 0:ebdf4f859dca 23 #define BIT_SLEEP 0x40
raizel_varun 0:ebdf4f859dca 24 #define BIT_DATA_RDY_ENABLE 0x01
raizel_varun 0:ebdf4f859dca 25 #define BIT_DATA_RDY_INT 0x01
raizel_varun 0:ebdf4f859dca 26 #define BIT_CLKSEL_X 0x01