hkstore

Dependencies:   SDFileSystem mbed-rtos mbed

Fork of rtcfinalcodeyuppie by Pradeep Kotipalli

hk.h

Committer:
pradeepvk2208
Date:
2015-02-05
Revision:
6:ee97f01e6b7d

File content as of revision 6:ee97f01e6b7d:

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