|
sensorfw
|
Adaptor for internal accelerometer. More...
#include <accelerometeradaptor.h>
Static Public Member Functions | |
| static DeviceAdaptor * | factoryMethod (const QString &id) |
| Factory method for gaining a new instance of AccelerometerAdaptor class. | |
Protected Member Functions | |
| AccelerometerAdaptor (const QString &id) | |
| Constructor. | |
| ~AccelerometerAdaptor () | |
| virtual unsigned int | evaluateIntervalRequests (int &sessionId) const |
| Reimplement to allow for 0 interval to be the slowest entry. | |
Adaptor for internal accelerometer.
Adaptor for internal accelerometer. Uses SysFs driver interface in interval polling mode, i.e. values are read with given constant interval.
Driver interface is located in /sys/class/i2c-adapter/i2c-3/3-001d/ .
No other filehandles are currently in use by this adaptor.
Definition at line 46 of file accelerometeradaptor.h.
| AccelerometerAdaptor::AccelerometerAdaptor | ( | const QString & | id | ) | [protected] |
Constructor.
| id | Identifier for the adaptor. |
| AccelerometerAdaptor::~AccelerometerAdaptor | ( | ) | [protected] |
| virtual unsigned int AccelerometerAdaptor::evaluateIntervalRequests | ( | int & | sessionId | ) | const [protected, virtual] |
Reimplement to allow for 0 interval to be the slowest entry.
| static DeviceAdaptor* AccelerometerAdaptor::factoryMethod | ( | const QString & | id | ) | [inline, static] |
Factory method for gaining a new instance of AccelerometerAdaptor class.
| id | Identifier for the adaptor. |
Definition at line 54 of file accelerometeradaptor.h.