hkstore

Dependencies:   SDFileSystem mbed-rtos mbed

Fork of rtcfinalcodeyuppie by Pradeep Kotipalli

Committer:
pradeepvk2208
Date:
Thu Feb 05 22:32:29 2015 +0000
Revision:
6:ee97f01e6b7d
CDMS with hk

Who changed what in which revision?

UserRevisionLine numberNew contents of line
pradeepvk2208 6:ee97f01e6b7d 1 #include "mbed.h"
pradeepvk2208 6:ee97f01e6b7d 2 #include "SDFileSystem.h"
pradeepvk2208 6:ee97f01e6b7d 3 #include "string.h"
pradeepvk2208 6:ee97f01e6b7d 4 typedef struct SensorData {
pradeepvk2208 6:ee97f01e6b7d 5 char Voltage[8];
pradeepvk2208 6:ee97f01e6b7d 6 char Current[4];
pradeepvk2208 6:ee97f01e6b7d 7 char Temperature;
pradeepvk2208 6:ee97f01e6b7d 8 char PanelTemperature[2]; //HK Data Structure
pradeepvk2208 6:ee97f01e6b7d 9 char Vcell_soc;
pradeepvk2208 6:ee97f01e6b7d 10 char alerts;
pradeepvk2208 6:ee97f01e6b7d 11 char crate;
pradeepvk2208 6:ee97f01e6b7d 12 char BatteryTemperature;
pradeepvk2208 6:ee97f01e6b7d 13 char faultpoll;
pradeepvk2208 6:ee97f01e6b7d 14 char faultir;
pradeepvk2208 6:ee97f01e6b7d 15 char power_mode;
pradeepvk2208 6:ee97f01e6b7d 16 char AngularSpeed[2];
pradeepvk2208 6:ee97f01e6b7d 17 char Bnewvalue[2];
pradeepvk2208 6:ee97f01e6b7d 18 } SensorData;
pradeepvk2208 6:ee97f01e6b7d 19
pradeepvk2208 6:ee97f01e6b7d 20 void spiwrite(int);
pradeepvk2208 6:ee97f01e6b7d 21 int spiread(int);
pradeepvk2208 6:ee97f01e6b7d 22 int hexint(int);
pradeepvk2208 6:ee97f01e6b7d 23 char* getname(int,int,int,int,int,int,int);
pradeepvk2208 6:ee97f01e6b7d 24 void storedata(char*,int);
pradeepvk2208 6:ee97f01e6b7d 25 void init_rtc(void);