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:
10:f5fdba83488a
Parent:
3:df8fb1b5d868
Child:
12:c09a50d9469a
--- a/dataRecorder.h	Fri Apr 06 04:01:33 2018 +0000
+++ b/dataRecorder.h	Sat Apr 07 04:57:09 2018 +0000
@@ -11,7 +11,7 @@
 #define SSTR( x ) static_cast< std::ostringstream & >(( std::ostringstream() << std::dec << x ) ).str()
 
 // Define circular buffer size
-#define BUF_SIZE    350
+#define BUF_SIZE    2000
 
 
 /** Data Recorder is a class that stores data measurements in a ring buffer. 
@@ -19,7 +19,7 @@
 
 class DataRecorder{
   public:
-  DataRecorder();
+  DataRecorder(int numDataFields);
     /** Get Information **/
     // gets the number of values stored in the circular buffer
     int getDataQuantity();
@@ -57,6 +57,8 @@
     
     /* SD Card Interface Object  */
     SDCardReader* m_saveBuddy;
+    
+    int m_numDataFields;