sensorfw: adaptors/oemtabletmagnetometeradaptor/oemtabletmagnetometeradaptor.h Source File

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"
6#include "datatypes/timedunsigned.h"
7
8 class 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);
19 ~OemtabletMagnetometerAdaptor();
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
Definition: oemtabletmagnetometeradaptor.h:9
OemtabletMagnetometerAdaptor::OemtabletMagnetometerAdaptor
OemtabletMagnetometerAdaptor(const QString &id)
OemtabletMagnetometerAdaptor::factoryMethod
static DeviceAdaptor * factoryMethod(const QString &id)
Definition: oemtabletmagnetometeradaptor.h:12
OemtabletMagnetometerAdaptor::~OemtabletMagnetometerAdaptor
~OemtabletMagnetometerAdaptor()
timedunsigned.h
Datatype for unsigned values.