sensorfw
oemtabletmagnetometeradaptor.h
Go to the documentation of this file.
1#ifndef OEMTABLETMAGNETOMETERADAPTOR_H
2#define OEMTABLETMAGNETOMETERADAPTOR_H
3
4#include "sysfsadaptor.h"
5#include "deviceadaptorringbuffer.h"
7
8class OemtabletMagnetometerAdaptor : public SysfsAdaptor
9{
10 Q_OBJECT;
11public:
12 static DeviceAdaptor* factoryMethod(const QString& id)
13 {
14 return new OemtabletMagnetometerAdaptor(id);
15 }
16
17protected:
18 OemtabletMagnetometerAdaptor(const QString& id);
20
21private:
22 void processSample(int pathId, int fd);
23 int devId;
24 char buf[32];
25
26 DeviceAdaptorRingBuffer<TimedXyzData>* magnetBuffer_;
27};
28
29#endif
OemtabletMagnetometerAdaptor(const QString &id)
static DeviceAdaptor * factoryMethod(const QString &id)
Datatype for unsigned values.