hkstore

Dependencies:   SDFileSystem mbed-rtos mbed

Fork of rtcfinalcodeyuppie by Pradeep Kotipalli

Revision:
6:ee97f01e6b7d
--- /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);