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
Diff: dataRecorder.cpp
- Revision:
- 12:c09a50d9469a
- Parent:
- 11:c70e8305ddd7
- Child:
- 13:91350588d530
--- a/dataRecorder.cpp Tue Apr 10 23:49:52 2018 -0400 +++ b/dataRecorder.cpp Fri Apr 27 02:11:18 2018 -0400 @@ -137,3 +137,7 @@ saveLoggedData(filename); // then eraseBuffers(); } + +int DataRecorder::getTrialNumAndIncrement(){ + return m_saveBuddy->readAndIncrement("trialNum.txt"); +}