Backlight services: Difference between revisions

P-sam (talk | contribs)
m add note about float lux output from GetAmbientLightSensorValue
P-sam (talk | contribs)
m describe more properly the struct returned by GetAmbientLightSensorValue
Line 66: Line 66:


== GetAmbientLightSensorValue ==
== GetAmbientLightSensorValue ==
No input. Returns an output float of the current ambient light sensor value (unit: lux). Note: float seems to be preceded by an u32 int (zeroes)
No input. Returns an output struct:
{| class="wikitable" border="1"
|-
! Offset || Size || Description
|-
| 0x0 || 0x4 || bSunny. (u32) Equals to 1 if fLux >= 10000.
|-
| 0x4 || 0x4 || fLux. (float) Value in lux from the ambient light sensor.
|}


== GetCurrentBrightnessSetting ==
== GetCurrentBrightnessSetting ==