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@0:0861bf46efe4, 2016-02-12 (annotated)
- Committer:
- flowh
- Date:
- Fri Feb 12 20:54:38 2016 +0000
- Revision:
- 0:0861bf46efe4
enregistrement Acc et boussole sur sd
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
flowh | 0:0861bf46efe4 | 1 | ///Definition de la classe DataFile qui gère l'enregistrement des mesures |
flowh | 0:0861bf46efe4 | 2 | |
flowh | 0:0861bf46efe4 | 3 | #include "mbed.h" |
flowh | 0:0861bf46efe4 | 4 | #include "Mesure.h" |
flowh | 0:0861bf46efe4 | 5 | |
flowh | 0:0861bf46efe4 | 6 | #ifndef DATAFILE_H |
flowh | 0:0861bf46efe4 | 7 | #define DATAFILE_H |
flowh | 0:0861bf46efe4 | 8 | |
flowh | 0:0861bf46efe4 | 9 | |
flowh | 0:0861bf46efe4 | 10 | |
flowh | 0:0861bf46efe4 | 11 | class tDataFile |
flowh | 0:0861bf46efe4 | 12 | { |
flowh | 0:0861bf46efe4 | 13 | public: |
flowh | 0:0861bf46efe4 | 14 | tDataFile(); |
flowh | 0:0861bf46efe4 | 15 | void New(); |
flowh | 0:0861bf46efe4 | 16 | void Close(); |
flowh | 0:0861bf46efe4 | 17 | void SaveMesures(tMesure * apMesure ); |
flowh | 0:0861bf46efe4 | 18 | |
flowh | 0:0861bf46efe4 | 19 | private: |
flowh | 0:0861bf46efe4 | 20 | FILE *fp; |
flowh | 0:0861bf46efe4 | 21 | DigitalOut* pLedRecord ; ///pin pour indiquer l'enregistrementou non |
flowh | 0:0861bf46efe4 | 22 | int Opened; //0 si fermé, 1 si ouvert |
flowh | 0:0861bf46efe4 | 23 | int Index; |
flowh | 0:0861bf46efe4 | 24 | }; |
flowh | 0:0861bf46efe4 | 25 | #endif |