code for bae n cdms integration working
Dependencies: SDFileSystem mbed-rtos mbed
Fork of CDMS_BAE by
Diff: hk.h
- Revision:
- 6:ee97f01e6b7d
- Child:
- 7:60e940b7a36b
diff -r 3979ca24777a -r ee97f01e6b7d hk.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hk.h Thu Feb 05 22:32:29 2015 +0000 @@ -0,0 +1,25 @@ +#include "mbed.h" +#include "SDFileSystem.h" +#include "string.h" +typedef struct SensorData { + char Voltage[8]; + char Current[4]; + char Temperature; + char PanelTemperature[2]; //HK Data Structure + char Vcell_soc; + char alerts; + char crate; + char BatteryTemperature; + char faultpoll; + char faultir; + char power_mode; + char AngularSpeed[2]; + char Bnewvalue[2]; +} SensorData; + +void spiwrite(int); +int spiread(int); +int hexint(int); +char* getname(int,int,int,int,int,int,int); +void storedata(char*,int); +void init_rtc(void);