hkstore

Dependencies:   SDFileSystem mbed-rtos mbed

Fork of rtcfinalcodeyuppie by Pradeep Kotipalli

Committer:
pradeepvk2208
Date:
Tue Feb 03 17:10:21 2015 +0000
Revision:
5:3979ca24777a
Parent:
4:374c51671a69
hi

Who changed what in which revision?

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