4-10-2015 BAE_RTOS_TEST ACS_DATA_ACQ and I2C sending 25 bytes to CDMS

Dependencies:   mbed-rtos mbed

Fork of BAE_RTOS_test_1 by GOPA KUMAR K C

Committer:
gkumar
Date:
Sun Oct 04 07:06:22 2015 +0000
Revision:
1:b8c71afbe6e5
4-10-2015 BAE_RTOS_TEST1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
gkumar 1:b8c71afbe6e5 1 #define SLAVE_ADDR 0x50
gkumar 1:b8c71afbe6e5 2 #define SLAVE_ADDR_READ 0x51
gkumar 1:b8c71afbe6e5 3 #define SENTRALSTATUS 0x37
gkumar 1:b8c71afbe6e5 4 #define RESETREQ 0x9B
gkumar 1:b8c71afbe6e5 5 #define MAGRATE 0x55
gkumar 1:b8c71afbe6e5 6 #define ACCERATE 0x56
gkumar 1:b8c71afbe6e5 7 #define GYRORATE 0x57
gkumar 1:b8c71afbe6e5 8 #define QRATE_DIV 0x32
gkumar 1:b8c71afbe6e5 9 #define ALGO_CTRL 0x54
gkumar 1:b8c71afbe6e5 10 #define ENB_EVT 0x33
gkumar 1:b8c71afbe6e5 11 #define HOST_CTRL 0x34
gkumar 1:b8c71afbe6e5 12 #define EVT_STATUS 0x35
gkumar 1:b8c71afbe6e5 13 #define ALGO_STATUS 0x38
gkumar 1:b8c71afbe6e5 14 #define GYRO_XOUT_H 0x22
gkumar 1:b8c71afbe6e5 15 #define MAG_XOUT_H 0X12
gkumar 1:b8c71afbe6e5 16
gkumar 1:b8c71afbe6e5 17 //Configaration bits
gkumar 1:b8c71afbe6e5 18 #define BIT_RESREQ 0x01
gkumar 1:b8c71afbe6e5 19 #define BIT_EEP_DET 0x01
gkumar 1:b8c71afbe6e5 20 #define BIT_EEP_UPDN 0x02
gkumar 1:b8c71afbe6e5 21 #define BIT_EEP_UPERR 0x04
gkumar 1:b8c71afbe6e5 22 #define BIT_EEP_IDLE 0x08
gkumar 1:b8c71afbe6e5 23 #define BIT_EEP_NODET 0x10
gkumar 1:b8c71afbe6e5 24 #define BIT_STBY 0x01
gkumar 1:b8c71afbe6e5 25 #define BIT_RAW_ENB 0x02
gkumar 1:b8c71afbe6e5 26 #define BIT_HPR_OUT 0x04
gkumar 1:b8c71afbe6e5 27 #define BIT_CPU_RES 0x01
gkumar 1:b8c71afbe6e5 28 #define BIT_ERR 0x02
gkumar 1:b8c71afbe6e5 29 #define BIT_QRES 0x04
gkumar 1:b8c71afbe6e5 30 #define BIT_MAG_RES 0x08
gkumar 1:b8c71afbe6e5 31 #define BIT_ACC_RES 0x10
gkumar 1:b8c71afbe6e5 32 #define BIT_GYRO_RES 0x20
gkumar 1:b8c71afbe6e5 33 #define BIT_GYROODR 0x0F
gkumar 1:b8c71afbe6e5 34 #define BIT_MAGODR 0x64
gkumar 1:b8c71afbe6e5 35 #define BIT_RUN_ENB 0x01
gkumar 1:b8c71afbe6e5 36 #define BIT_ALGO_RAW 0x02
gkumar 1:b8c71afbe6e5 37 #define BIT_EVT_ENB 0X2A