Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions

ALSAdaptor Class Reference

Adaptor for internal ambient light sensor. More...

#include <alsadaptor.h>

List of all members.

Public Types

enum  DeviceType { DeviceUnknown = 0, RM680, RM696 }

Public Member Functions

bool startAdaptor ()
 Start measuring loop.
void stopAdaptor ()
 Stop measuring loop.

Static Public Member Functions

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

Protected Member Functions

 ALSAdaptor (const QString &id)
 Constructor.
 ~ALSAdaptor ()

Detailed Description

Adaptor for internal ambient light sensor.

Adaptor for the internal ambient light sensor. Provides the amount of ambient light detected by the device.

Sysfs driver interface can be found at dev/bh1770glc_als .

Value output frequency depends on driver decision - only changed values are pushed out of driver.

Definition at line 54 of file alsadaptor.h.


Member Enumeration Documentation

Enumerator:
DeviceUnknown 
RM680 
RM696 

Definition at line 59 of file alsadaptor.h.


Constructor & Destructor Documentation

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

Constructor.

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

Member Function Documentation

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

Factory method for gaining a new instance of ALSAdaptor class.

Parameters:
id Identifier for the adaptor.

Definition at line 70 of file alsadaptor.h.

bool ALSAdaptor::startAdaptor (  ) 

Start measuring loop.

Opens file descriptors and set streaming mode

void ALSAdaptor::stopAdaptor (  ) 

Stop measuring loop.

Closes file descriptors and removes streaming mode


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