code for satellite (short) beacon

Dependencies:   mbed

beacon.h

Committer:
ee12b079
Date:
2014-09-10
Revision:
0:16164bece7bc

File content as of revision 0:16164bece7bc:

#include "mbed.h"
#define SHORT_BEACON_LENGTH 15
uint8_t readreg(uint8_t);
void writereg(uint8_t ,uint8_t );
void beacon_init();
//void SHORT_BEACON();
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}, {0x00}};;
typedef struct ShortBeacon ShortBeacy;