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:
2:c2cfb0ebc3bd
Parent:
1:45627bbdeb69
Child:
3:df8fb1b5d868
--- a/dataRecorder.h	Tue Apr 03 22:41:46 2018 -0400
+++ b/dataRecorder.h	Wed Apr 04 16:17:34 2018 -0400
@@ -8,7 +8,7 @@
 #define SSTR( x ) static_cast< std::ostringstream & >(( std::ostringstream() << std::dec << x ) ).str()
 
 // Define circular buffer size
-#define BUF_SIZE    150
+#define BUF_SIZE    350
 
 
 /** Data Recorder is a class that stores data measurements in a ring buffer. 
@@ -39,7 +39,6 @@
   private:
 
     void savePoint(uint16_t value);
-    void pushEleToBuffer(uint16_t);
     // input values are converted to char arrays
     // iterate over char array to add values to buffer
     // buffer contents it turned into a uint8_t array and written to 
@@ -51,6 +50,7 @@
 
     // Count for buffers
     int m_data_quantity;
+    int m_time_quantity;
     
     /* SD Card Interface Object  */
     SDCardReader* m_saveBuddy;