Backlight services: Difference between revisions
m describe more properly the struct returned by GetAmbientLightSensorValue |
m →GetAmbientLightSensorValue: Add 4.1.0 and current behavior |
||
| Line 66: | Line 66: | ||
== GetAmbientLightSensorValue == | == GetAmbientLightSensorValue == | ||
No input. Returns an output struct: | No input. Before 5.x, outputs lux in float. (5.0.0+) Returns an output struct: | ||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
|- | |- | ||
! Offset || Size || Description | ! Offset || Size || Description | ||
|- | |- | ||
| 0x0 || 0x4 || | | 0x0 || 0x4 || bAbove13k. (u32) Equals to 1 if fLux >= 13000. | ||
|- | |- | ||
| 0x4 || 0x4 || fLux. (float) Value in lux from the ambient light sensor. | | 0x4 || 0x4 || fLux. (float) Value in lux from the ambient light sensor. | ||
|} | |} | ||
Note: if bAbove13k = 1 then the real lux value equals to (13000 - fLux) + 13000 and caps out at ~25000. | |||
== GetCurrentBrightnessSetting == | == GetCurrentBrightnessSetting == | ||