hkstore

Dependencies:   SDFileSystem mbed-rtos mbed

Fork of rtcfinalcodeyuppie by Pradeep Kotipalli

rtsc.h

Committer:
pradeepvk2208
Date:
2015-02-03
Revision:
5:3979ca24777a
Parent:
4:374c51671a69

File content as of revision 5:3979ca24777a:

#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(void);