summaryrefslogtreecommitdiffstats
path: root/libsensors/LightSensor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* libsensors: Big cleanup.Kyle Repinski2016-01-171-1/+1
| | | | | | | - Some formatting nitpicks. - Removed useless 'dev_name'/'dev_fd' stuff for SensorBase. - Merged sensor structs together. - Added handleToDriver for MPLSensor.
* sensors: Return a calculated lux value instead using the current 8 entry tableArve Hjønnevåg2011-11-011-36/+7
| | | | | | | | | | | The light sensor now uses the lux to current formula in the datasheet, I = 10 * log(Ev) uA, and multiplies the result by 4 as an attempt to correct for the glass in front of the sensor. Also update the config_autoBrightnessLevels table so the auto brightness change occurs at the same adc values as before (or close for 7.2 lux). Change-Id: I121ce0f23dca093c9607ac9447b9263f48507a09
* SensorHAL: clear previous light value on enableVishnudev Ramakrishnan2011-10-211-0/+8
| | | | | | | | | | Sensor HAL changes to make light sensor value to be reported on enabling light sensor. - Ignore the dummy initial value -1 that is pushed by driver - Set previous light value to -1 on enable Change-Id: Iaa64fb02f4b82339ba96146d170ca447f409a5ad Signed-off-by: Vishnudev Ramakrishnan <vramakri@sta.samsung.com>
* tuna: sensors: Light sensor ADC calibration valuesVishnudev Ramakrishnan2011-07-191-9/+9
| | | | | | | | | | | Changed the light sensor ADC calibration values to the ones provided by proxima hardware team. Also corrected the comparison operator during adc to lux lookup to account for boundary values. Change-Id: I434f5bf8774f5eff0e639377db73c058a10f7d2d Signed-off-by: Vishnudev Ramakrishnan <vramakri@sta.samsung.com>
* tuna: sensors: add light, proximity, pressure sensorsMarty Fouts2011-06-291-0/+68
NOTE: - light sensor ADC values need to be calibrated. Change-Id: Iba75dc62a922bbcd0d1e273566f9089c4da450fb Signed-off-by: Marty Fouts <mfouts@sta.samsung.com>