A set of data recording functions to locally store data in a circular buffer, with functions for offloading to an SD Card when convenient. dataRecorderr.h shows accessible functions to the main program - all direct SD operations are abstracted away by the library. When using this library, #include dataRecorder.h

Dependencies:   sd-driver_compatible_with_MAX32630FTHR

Fork of CircularBufferSDCardLib by Daniel Levine

Revision:
3:df8fb1b5d868
Parent:
2:c2cfb0ebc3bd
Child:
10:f5fdba83488a
--- a/dataRecorder.h	Wed Apr 04 16:17:34 2018 -0400
+++ b/dataRecorder.h	Wed Apr 04 17:15:36 2018 -0400
@@ -1,3 +1,6 @@
+#ifndef _DATARECORDER_H_
+#define _DATARECORDER_H_
+
 #include "mbed.h"
 #include "platform/CircularBuffer.h"
 #include "sdCardReader.h"
@@ -16,11 +19,11 @@
 
 class DataRecorder{
   public:
-    DataRecorder();
-
+  DataRecorder();
     /** Get Information **/
     // gets the number of values stored in the circular buffer
-    int getQuantityStored();
+    int getDataQuantity();
+    int getTimeStampQuantity();
     
     // pops the last value off of the circular buffer 
     uint16_t popLastDataPoint();
@@ -45,8 +48,8 @@
     // sd card
 
     /* Buffers for Data Storage */
-    CircularBuffer<uint16_t, BUF_SIZE> buf_data;
-    CircularBuffer<uint32_t, BUF_SIZE> buf_timestamp;
+    CircularBuffer<uint16_t, BUF_SIZE> m_buf_data;
+    CircularBuffer<uint32_t, BUF_SIZE> m_buf_timestamp;
 
     // Count for buffers
     int m_data_quantity;
@@ -82,3 +85,6 @@
     const uint8_t separator = ' ';*/
     
 };
+
+
+#endif