![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
BAE RTOS..working hopefully
ShortBeacon.h@0:cbe0ea884289, 2014-07-10 (annotated)
- Committer:
- harshit_felicity
- Date:
- Thu Jul 10 11:35:40 2014 +0000
- Revision:
- 0:cbe0ea884289
Fuck Yeahh..btich
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
harshit_felicity | 0:cbe0ea884289 | 1 | #include "mbed.h" |
harshit_felicity | 0:cbe0ea884289 | 2 | #define TIMES 20 |
harshit_felicity | 0:cbe0ea884289 | 3 | #define CALLSIGN_LEN 112 //in bytes |
harshit_felicity | 0:cbe0ea884289 | 4 | #define HK_DATA_LEN_SHORT 240 //in bytes |
harshit_felicity | 0:cbe0ea884289 | 5 | #define UNSTUFFED_CALLSIGN_LEN 7 //in bytes |
harshit_felicity | 0:cbe0ea884289 | 6 | |
harshit_felicity | 0:cbe0ea884289 | 7 | struct ShortBeacon { //dedicated Short Beacon structure |
harshit_felicity | 0:cbe0ea884289 | 8 | char Voltage[1]; |
harshit_felicity | 0:cbe0ea884289 | 9 | char AngularSpeed[2]; |
harshit_felicity | 0:cbe0ea884289 | 10 | char SubsystemStatus[1]; |
harshit_felicity | 0:cbe0ea884289 | 11 | char Temp[3]; |
harshit_felicity | 0:cbe0ea884289 | 12 | char ErrorFlag[1]; |
harshit_felicity | 0:cbe0ea884289 | 13 | } ; |
harshit_felicity | 0:cbe0ea884289 | 14 | |
harshit_felicity | 0:cbe0ea884289 | 15 | void writereg(uint8_t reg,uint8_t val); |
harshit_felicity | 0:cbe0ea884289 | 16 | uint8_t readreg(uint8_t reg); |
harshit_felicity | 0:cbe0ea884289 | 17 | void bitstuffinghk(uint8_t byte); |
harshit_felicity | 0:cbe0ea884289 | 18 | void FUNC_SHORTBEACON(); |