Static Public Member Functions | Protected Member Functions

AccelerometerAdaptor Class Reference

Adaptor for internal accelerometer. More...

#include <accelerometeradaptor.h>

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

AccelerometerAdaptor::AccelerometerAdaptor ( const QString &  id  )  [protected]

Constructor.

Parameters:
id Identifier for the adaptor.
AccelerometerAdaptor::~AccelerometerAdaptor (  )  [protected]

Member Function Documentation

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.

Parameters:
id Identifier for the adaptor.

Definition at line 54 of file accelerometeradaptor.h.


The documentation for this class was generated from the following file: