![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
BAE RTOS..working hopefully
Diff: ShortBeacon.h
- Revision:
- 0:cbe0ea884289
diff -r 000000000000 -r cbe0ea884289 ShortBeacon.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ShortBeacon.h Thu Jul 10 11:35:40 2014 +0000 @@ -0,0 +1,18 @@ +#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(); \ No newline at end of file