sensorfw: HybrisAlsAdaptor Class Reference

sensorfw

Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
HybrisAlsAdaptor Class Reference

Adaptor for hybris ambient light sensor. More...

`#include <hybrisalsadaptor.h>`

Inheritance diagram for HybrisAlsAdaptor:

## Public Member Functions
| HybrisAlsAdaptor (const QString &id)
| ~HybrisAlsAdaptor ()
bool | startSensor ()
void | stopSensor ()
void | sendInitialData ()

## Static Public Member Functions
static DeviceAdaptor * | factoryMethod (const QString &id)

## Protected Member Functions
void | processSample (const sensors_event_t &data)

## Detailed Description

Adaptor for hybris ambient light sensor.

Adaptor for internal light sensor. Provides the amount of ambient light detected by the device. Uses hybris sensor daemon driver interface.

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

Definition at line 41 of file hybrisalsadaptor.h.

## Constructor & Destructor Documentation

## ◆ HybrisAlsAdaptor()

HybrisAlsAdaptor::HybrisAlsAdaptor | ( | const QString & | id | ) |

## ◆ ~HybrisAlsAdaptor()

HybrisAlsAdaptor::~HybrisAlsAdaptor | ( |  | ) |

## Member Function Documentation

## ◆ factoryMethod()

static DeviceAdaptor * HybrisAlsAdaptor::factoryMethod | ( | const QString & | id | ) |
| inlinestatic

Definition at line 46 of file hybrisalsadaptor.h.

## ◆ processSample()

void HybrisAlsAdaptor::processSample | ( | const sensors_event_t & | data | ) |
| protected

## ◆ sendInitialData()

void HybrisAlsAdaptor::sendInitialData | ( |  | ) |

## ◆ startSensor()

bool HybrisAlsAdaptor::startSensor | ( |  | ) |

## ◆ stopSensor()

void HybrisAlsAdaptor::stopSensor | ( |  | ) |

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

- adaptors/hybrisalsadaptor/hybrisalsadaptor.h