Static Public Member Functions | Protected Member Functions

GyroscopeAdaptor Class Reference

Adaptor for internal gyroscope. More...

#include <gyroscopeadaptor.h>

List of all members.

Static Public Member Functions

static DeviceAdaptor * factoryMethod (const QString &id)
 Factory method for gaining a new instance of this adaptor class.

Protected Member Functions

 GyroscopeAdaptor (const QString &id)
 Constructor.
 ~GyroscopeAdaptor ()
 Destructor.

Detailed Description

Adaptor for internal gyroscope.

Adaptor for internal gyroscope. Uses SysFs driver interface in polling mode, i.e. values are read with given constant interval.

Driver interface is located in /sys/class/i2c-adapter/?????? .

No other filehandles are currently in use by this adaptor.

Definition at line 43 of file gyroscopeadaptor.h.


Constructor & Destructor Documentation

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

Constructor.

Protected to force externals to use factory method.

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

Destructor.


Member Function Documentation

static DeviceAdaptor* GyroscopeAdaptor::factoryMethod ( const QString &  id  )  [inline, static]

Factory method for gaining a new instance of this adaptor class.

Parameters:
id Identifier for the adaptor.
Returns:
A pointer to created adaptor with base class type.

Definition at line 53 of file gyroscopeadaptor.h.


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