Go to the documentation of this file.00001
00031 #ifndef MAGNETOMETERADAPTOR_ASCII_H
00032 #define MAGNETOMETERADAPTOR_ASCII_H
00033
00034 #include "sysfsadaptor.h"
00035 #include "deviceadaptorringbuffer.h"
00036 #include "datatypes/timedunsigned.h"
00037
00038 class MagnetometerAdaptorAscii : public SysfsAdaptor
00039 {
00040 Q_OBJECT;
00041 public:
00042 static DeviceAdaptor* factoryMethod(const QString& id)
00043 {
00044 return new MagnetometerAdaptorAscii(id);
00045 }
00046
00047 protected:
00048 MagnetometerAdaptorAscii(const QString& id);
00049 ~MagnetometerAdaptorAscii();
00050
00051 private:
00052 void processSample(int pathId, int fd);
00053 char buf[32];
00054
00055 DeviceAdaptorRingBuffer<TimedXyzData>* magnetBuffer_;
00056 };
00057
00058 #endif