sensorfw: adaptors/magnetometeradaptor-ascii/magnetometeradaptor-ascii.h Source File

sensorfw

magnetometeradaptor-ascii.h
Go to the documentation of this file.
1
32#ifndef MAGNETOMETERADAPTOR_ASCII_H
33#define MAGNETOMETERADAPTOR_ASCII_H
34
35#include "sysfsadaptor.h"
36#include "deviceadaptorringbuffer.h"
37#include "datatypes/timedunsigned.h"
38#include "datatypes/orientationdata.h"
39
40 class MagnetometerAdaptorAscii : public SysfsAdaptor
41{
42 Q_OBJECT;
43public:
44 static DeviceAdaptor* factoryMethod(const QString& id)
45 {
46 return new MagnetometerAdaptorAscii(id);
47 }
48
49protected:
50 MagnetometerAdaptorAscii(const QString& id);
51 ~MagnetometerAdaptorAscii();
52
53private:
54 void processSample(int pathId, int fd);
55 char buf[32];
56
57 DeviceAdaptorRingBuffer<CalibratedMagneticFieldData>* magnetBuffer_;
58};
59
60#endif
MagnetometerAdaptorAscii
Definition magnetometeradaptor-ascii.h:41
MagnetometerAdaptorAscii::factoryMethod
static DeviceAdaptor * factoryMethod(const QString &id)
Definition magnetometeradaptor-ascii.h:44
MagnetometerAdaptorAscii::MagnetometerAdaptorAscii
MagnetometerAdaptorAscii(const QString &id)
MagnetometerAdaptorAscii::~MagnetometerAdaptorAscii
~MagnetometerAdaptorAscii()
orientationdata.h
Datatypes for different filters.
timedunsigned.h
Datatype for unsigned values.