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 
8 class OemtabletMagnetometerAdaptor : public SysfsAdaptor
9 {
10  Q_OBJECT;
11 public:
12  static DeviceAdaptor* factoryMethod(const QString& id)
13  {
14  return new OemtabletMagnetometerAdaptor(id);
15  }
16 
17 protected:
18  OemtabletMagnetometerAdaptor(const QString& id);
20 
21 private:
22  void processSample(int pathId, int fd);
23  int devId;
24  char buf[32];
25 
26  DeviceAdaptorRingBuffer<TimedXyzData>* magnetBuffer_;
27 };
28 
29 #endif
static DeviceAdaptor * factoryMethod(const QString &id)
OemtabletMagnetometerAdaptor(const QString &id)
Datatype for unsigned values.