sensorfw
gyroscopeadaptor.h
Go to the documentation of this file.
1 
27 #ifndef GYROSCOPEADAPTOR_H
28 #define GYROSCOPEADAPTOR_H
29 
30 #include "sysfsadaptor.h"
32 
43 class GyroscopeAdaptor : public SysfsAdaptor
44 {
45  Q_OBJECT;
46 public:
53  static DeviceAdaptor* factoryMethod(const QString& id)
54  {
55  return new GyroscopeAdaptor(id);
56  }
57 
58 protected:
59 
65  GyroscopeAdaptor(const QString& id);
66 
71 
72  bool setInterval(const unsigned int value, const int sessionId);
73  unsigned int interval() const;
74 
75 private:
76 
85  void processSample(int pathId, int fd);
86 
87  DeviceAdaptorRingBuffer<TimedXyzData>* gyroscopeBuffer_;
88  QByteArray dataRatePath_;
89 };
90 
91 #endif
unsigned int interval() const
static DeviceAdaptor * factoryMethod(const QString &id)
Factory method for gaining a new instance of this adaptor class.
Datatypes for different filters.
~GyroscopeAdaptor()
Destructor.
GyroscopeAdaptor(const QString &id)
Constructor.
Adaptor for internal gyroscope.
bool setInterval(const unsigned int value, const int sessionId)