BAE RTOS..working hopefully

Dependencies:   mbed-rtos mbed

ShortBeacon.h

Committer:
harshit_felicity
Date:
2014-07-10
Revision:
1:37fa1c3eba16
Parent:
0:cbe0ea884289

File content as of revision 1:37fa1c3eba16:

#include "mbed.h"
#define TIMES 20
#define CALLSIGN_LEN 112              //in bytes
#define HK_DATA_LEN_SHORT 240         //in bytes
#define UNSTUFFED_CALLSIGN_LEN 7      //in bytes

struct ShortBeacon {                             //dedicated Short Beacon structure
    char Voltage[1];
    char AngularSpeed[2];
    char SubsystemStatus[1];
    char Temp[3];  
    char ErrorFlag[1];
} ;

void writereg(uint8_t reg,uint8_t val);
uint8_t readreg(uint8_t reg);
void bitstuffinghk(uint8_t byte);
void FUNC_SHORTBEACON();