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:
12:c09a50d9469a
Parent:
10:f5fdba83488a
--- a/dataRecorder.h	Tue Apr 10 23:49:52 2018 -0400
+++ b/dataRecorder.h	Fri Apr 27 02:11:18 2018 -0400
@@ -11,7 +11,7 @@
 #define SSTR( x ) static_cast< std::ostringstream & >(( std::ostringstream() << std::dec << x ) ).str()
 
 // Define circular buffer size
-#define BUF_SIZE    2000
+#define BUF_SIZE    10000
 
 
 /** Data Recorder is a class that stores data measurements in a ring buffer. 
@@ -38,6 +38,8 @@
     //saves buffer to sd card and clears it    
     void saveLoggedDataAndClearBuffer(string filename);
 
+    int getTrialNumAndIncrement();
+
     
   private: