sensorfw
adaptors/oemtabletgyroscopeadaptor/oemtabletgyroscopeadaptor.h
Go to the documentation of this file.
00001 #ifndef OEMTABLETGYROSCOPEADAPTOR_H
00002 #define OEMTABLETGYROSCOPEADAPTOR_H
00003 
00004 #include "sysfsadaptor.h"
00005 #include "datatypes/orientationdata.h"
00006 
00007 class OEMTabletGyroscopeAdaptor : public SysfsAdaptor
00008 {
00009     Q_OBJECT;
00010 public:
00017     static DeviceAdaptor* factoryMethod(const QString& id)
00018     {
00019         return new OEMTabletGyroscopeAdaptor(id);
00020     }
00021 
00022 protected:
00023 
00029     OEMTabletGyroscopeAdaptor(const QString& id);
00030 
00034     ~OEMTabletGyroscopeAdaptor();
00035 
00036 private:
00037 
00046     void processSample(int pathId, int fd);
00047 
00048     DeviceAdaptorRingBuffer<TimedXyzData>* gyroscopeBuffer_;
00049 };
00050 
00051 #endif