Log measurements on SD card added on DISCO-L476VG board acceleration, omega, compass & 5 Analog values
Dependencies: BSP_DISCO_L476VG COMPASS_DISCO_L476VG ConfigFile GYRO_DISCO_L476VG SDFileSystem mbed
Diff: DataFile/DataFile.h
- Revision:
- 0:0861bf46efe4
diff -r 000000000000 -r 0861bf46efe4 DataFile/DataFile.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DataFile/DataFile.h Fri Feb 12 20:54:38 2016 +0000 @@ -0,0 +1,25 @@ +///Definition de la classe DataFile qui gère l'enregistrement des mesures + +#include "mbed.h" +#include "Mesure.h" + +#ifndef DATAFILE_H +#define DATAFILE_H + + + +class tDataFile +{ +public: +tDataFile(); + void New(); + void Close(); + void SaveMesures(tMesure * apMesure ); + +private: + FILE *fp; + DigitalOut* pLedRecord ; ///pin pour indiquer l'enregistrementou non + int Opened; //0 si fermé, 1 si ouvert + int Index; +}; +#endif \ No newline at end of file