beacon on/off implemented and working

Dependencies:   mbed-rtos mbed

Fork of i2c_configuring by sakthi priya amirtharaj

Committer:
sakthipriya
Date:
Sun May 17 19:40:48 2015 +0000
Revision:
6:4fd79755f4c9
Parent:
0:e91ee0e99213
beacon on/off implemented and working

Who changed what in which revision?

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