sensorfw
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.
bool setInterval (const unsigned int value, const int sessionId)
unsigned int interval () const

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/?????? .

  • angular_rate filehandle provides measurement values.

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:
idIdentifier for the adaptor.

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:
idIdentifier for the adaptor.
Returns:
A pointer to created adaptor with base class type.

Definition at line 53 of file gyroscopeadaptor.h.

unsigned int GyroscopeAdaptor::interval ( ) const [protected]
bool GyroscopeAdaptor::setInterval ( const unsigned int  value,
const int  sessionId 
) [protected]

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