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
43class GyroscopeAdaptor : public SysfsAdaptor
44{
45 Q_OBJECT;
46public:
53 static DeviceAdaptor* factoryMethod(const QString& id)
54 {
55 return new GyroscopeAdaptor(id);
56 }
57
58protected:
59
65 GyroscopeAdaptor(const QString& id);
66
71
72 bool setInterval(const unsigned int value, const int sessionId);
73 unsigned int interval() const;
74
75private:
76
85 void processSample(int pathId, int fd);
86
87 DeviceAdaptorRingBuffer<TimedXyzData>* gyroscopeBuffer_;
88 QByteArray dataRatePath_;
89};
90
91#endif
Adaptor for internal gyroscope.
static DeviceAdaptor * factoryMethod(const QString &id)
Factory method for gaining a new instance of this adaptor class.
~GyroscopeAdaptor()
Destructor.
unsigned int interval() const
bool setInterval(const unsigned int value, const int sessionId)
GyroscopeAdaptor(const QString &id)
Constructor.
Datatypes for different filters.