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
DataFile/DataFile.h
- Committer:
- flowh
- Date:
- 2016-02-12
- Revision:
- 0:0861bf46efe4
File content as of revision 0:0861bf46efe4:
///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