working code of bae with i2c

Dependencies:   mbed-rtos mbed

Fork of all_combined_week6 by green rosh

Committer:
viswachaitanya
Date:
Thu Sep 18 10:29:33 2014 +0000
Revision:
7:47e07755d9a4
Parent:
6:82153349cc9b
working bae code with i2c

Who changed what in which revision?

UserRevisionLine numberNew contents of line
greenroshks 6:82153349cc9b 1 #include "mbed.h"
greenroshks 6:82153349cc9b 2
greenroshks 6:82153349cc9b 3 void writereg(uint8_t reg,uint8_t val);
greenroshks 6:82153349cc9b 4 uint8_t readreg(uint8_t reg);
greenroshks 6:82153349cc9b 5 void beacon_func();
greenroshks 6:82153349cc9b 6 /*struct ShortBeacon {
greenroshks 6:82153349cc9b 7 char Voltage[1];
greenroshks 6:82153349cc9b 8 char AngularSpeed[2];
greenroshks 6:82153349cc9b 9 char SubsystemStatus[1];
greenroshks 6:82153349cc9b 10 char Temp[3];
greenroshks 6:82153349cc9b 11 char ErrorFlag[1];
greenroshks 6:82153349cc9b 12 }
greenroshks 6:82153349cc9b 13 Shortbeacon = {{0x22}, {0x22, 0x33} , {0x00},{0x00,0x00,0x00}, {0x01}};*/