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

exampleMain.cpp

Committer:
DVLevine
Date:
2018-07-11
Revision:
13:91350588d530
Parent:
7:f9dcfbedd1b2

File content as of revision 13:91350588d530:

/*

#include "mbed.h"
#include "dataRecorder.h"

DataRecorder* boba = new DataRecorder();

InterruptIn irq(PF_2);      
DigitalOut led1(PE_0);


int main() {
  
  printf("We are in! \n");
  
     uint16_t a = 123;
     uint16_t b = 2034;
     uint16_t c = 1040;
     uint16_t d = 8;
     uint16_t e = 980;

     uint32_t ta = 2121;
     uint32_t tb = 8181;
     uint32_t tc = 6262;
     uint32_t td = 3535;
     uint32_t te = 1212;
   
    boba->logDistancePoint(a);
    boba->logDistancePoint(b);
    boba->logDistancePoint(c);
    boba->logDistancePoint(d);
    boba->logDistancePoint(e);

    boba->logTimeStamp(ta);
    boba->logTimeStamp(tb);
    boba->logTimeStamp(tc);
    boba->logTimeStamp(td);
    boba->logTimeStamp(te);
    

    printf("about to save\n");

    boba->saveLoggedDataAndClearBuffer("/fs/SUPERDATAYO.txt"); 

    printf("saved\n");
    
    led1 = !led1;
}

*/