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"
38 
39 class MagnetometerAdaptorAscii : public SysfsAdaptor
40 {
41  Q_OBJECT;
42 public:
43  static DeviceAdaptor* factoryMethod(const QString& id)
44  {
45  return new MagnetometerAdaptorAscii(id);
46  }
47 
48 protected:
49  MagnetometerAdaptorAscii(const QString& id);
51 
52 private:
53  void processSample(int pathId, int fd);
54  char buf[32];
55 
56  DeviceAdaptorRingBuffer<TimedXyzData>* magnetBuffer_;
57 };
58 
59 #endif
MagnetometerAdaptorAscii(const QString &id)
Datatype for unsigned values.
static DeviceAdaptor * factoryMethod(const QString &id)