sensorfw: adaptors/oaktrailaccelerometer/oaktrailaccelerometeradaptor.h Source File

sensorfw

oaktrailaccelerometeradaptor.h
Go to the documentation of this file.
1#ifndef OAKTRAILACCELEROMETERADPTOR_H
2#define OAKTRAILACCELEROMETERADPTOR_H
3#include "sysfsadaptor.h"
4#include <QString>
5#include <QStringList>
6#include <linux/input.h>
7#include "deviceadaptorringbuffer.h"
8#include "datatypes/orientationdata.h"
9#include <QTime>
10
11 class OaktrailAccelAdaptor : public SysfsAdaptor {
12 Q_OBJECT
13
14 public:
15 static DeviceAdaptor* factoryMethod (const QString& id) {
16 return new OaktrailAccelAdaptor (id);
17 }
18 OaktrailAccelAdaptor (const QString& id);
19 ~OaktrailAccelAdaptor ();
20
21 bool startSensor ();
22 void stopSensor ();
23
24 protected:
25 void processSample (int pathId, int fd);
26
27 private:
28 DeviceAdaptorRingBuffer<OrientationData>* buffer;
29 QString devPath;
30 int devId;
31};
32#endif
OaktrailAccelAdaptor
Definition: oaktrailaccelerometeradaptor.h:11
OaktrailAccelAdaptor::OaktrailAccelAdaptor
OaktrailAccelAdaptor(const QString &id)
OaktrailAccelAdaptor::processSample
void processSample(int pathId, int fd)
OaktrailAccelAdaptor::stopSensor
void stopSensor()
OaktrailAccelAdaptor::factoryMethod
static DeviceAdaptor * factoryMethod(const QString &id)
Definition: oaktrailaccelerometeradaptor.h:15
OaktrailAccelAdaptor::~OaktrailAccelAdaptor
~OaktrailAccelAdaptor()
OaktrailAccelAdaptor::startSensor
bool startSensor()
orientationdata.h
Datatypes for different filters.