working code of bae with i2c

Dependencies:   mbed-rtos mbed

Fork of all_combined_week6 by green rosh

beacon.h

Committer:
viswachaitanya
Date:
2014-09-18
Revision:
7:47e07755d9a4
Parent:
6:82153349cc9b

File content as of revision 7:47e07755d9a4:

#include "mbed.h"

void writereg(uint8_t reg,uint8_t val);
uint8_t readreg(uint8_t reg);
void beacon_func();
/*struct ShortBeacon {
    char Voltage[1];
    char AngularSpeed[2];
    char SubsystemStatus[1]; 
    char Temp[3];  
    char ErrorFlag[1];
}
Shortbeacon = {{0x22}, {0x22, 0x33} , {0x00},{0x00,0x00,0x00}, {0x01}};*/