Adaptor for internal ambient light sensor. More...
#include <alsadaptor.h>
Public Types | |
enum | DeviceType { DeviceUnknown = 0, RM680, RM696 } |
Public Member Functions | |
virtual bool | startSensor (const QString &sensorId) |
virtual void | stopSensor (const QString &sensorId) |
virtual bool | standby () |
virtual bool | resume () |
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 () | |
void | processSample (int pathId, int fd) |
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 55 of file alsadaptor.h.
Definition at line 60 of file alsadaptor.h.
ALSAdaptor::ALSAdaptor | ( | const QString & | id | ) | [protected] |
Constructor.
id | Identifier for the adaptor. |
ALSAdaptor::~ALSAdaptor | ( | ) | [protected] |
static DeviceAdaptor* ALSAdaptor::factoryMethod | ( | const QString & | id | ) | [inline, static] |
Factory method for gaining a new instance of ALSAdaptor class.
id | Identifier for the adaptor. |
Definition at line 73 of file alsadaptor.h.
void ALSAdaptor::processSample | ( | int | pathId, | |
int | fd | |||
) | [protected] |
virtual bool ALSAdaptor::resume | ( | ) | [virtual] |
virtual bool ALSAdaptor::standby | ( | ) | [virtual] |
virtual bool ALSAdaptor::startSensor | ( | const QString & | sensorId | ) | [virtual] |
virtual void ALSAdaptor::stopSensor | ( | const QString & | sensorId | ) | [virtual] |