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-13
Revision:
2:f53340e49cc0
Parent:
0:0861bf46efe4

File content as of revision 2:f53340e49cc0:

///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