Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FileManager GPSGms6 SDFileSystem mbed
Fork of 2545_SD_Card by
Diff: FileManager.h
- Revision:
- 4:aa7ac2ac6913
- Parent:
- 2:c96b02fcb98e
- Child:
- 5:07aaa6e3784c
--- a/FileManager.h Fri May 06 20:23:08 2016 +0000
+++ b/FileManager.h Mon May 09 08:59:23 2016 +0000
@@ -1,11 +1,18 @@
+#define SETUP_FILE_NAME "/sd/RMS_Tester.xml"
+#define GPS_LOG_FILE_NAME "/sd/gps.csv"
+#define VARIABLE_FILE_NAME "/sd/20160216185627_upload.xml"
+#define MINIRMS_LOG_FILE_NAME "/sd/miniRMS.log"
+
#define GPS_TAG "<Gps>"
#define DATA_TAG "<Data>"
#define UPDATE_INTERVAL_TAG "<Update_Interval>"
-#define SETUP_FILE_NAME "/sd/RMS_Tester.xml"
-#define GPS_LOG_FILE_NAME "/sd/gps.csv"
-#define MINIRMS_LOG_FILE_NAME "/sd/miniRMS.log"
+#define VAR_NAME_TAG "<varName>"
+#define VAR_ADDR_TAG "<varAddress>"
#define XMLTEXT_SIZE 20
+#define VAR_NAME_MAX_SIZE 20
+#define VAR_ADDR_MAX_SIZE 10
+#define MAX_VAR 50
typedef enum {
STATE_FINDING, /** Finding */
@@ -16,6 +23,11 @@
}ReadingFileState;
+typedef struct
+{
+ char varName[VAR_NAME_MAX_SIZE];
+ char varAddress[VAR_ADDR_MAX_SIZE+1];
+} Variable_Data_TypeDef;
void readSetupFile();
void delete_file(char filename[]);
@@ -23,3 +35,5 @@
int DataInterval();
void logGPSData(char date[], char time[]);
void logSystemData(float gps_interval);
+Variable_Data_TypeDef * readVarFile();
+int getVarListAmount();
