diff options
author | Mike Lockwood <lockwood@android.com> | 2009-11-03 09:37:30 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2009-11-03 09:37:30 -0800 |
commit | fb9c9a63f392a1b0834d0f8965d88fb6dacfc85a (patch) | |
tree | 8a3403f21148b20b032b566a30ec3c4fd820ff6f | |
parent | 5a5d4ad61bc771b1d5ab8c56669c9ec3c3f10509 (diff) | |
parent | a2414316075dde4ca5c1393c662f224b36dd3fdc (diff) | |
download | libhardware-fb9c9a63f392a1b0834d0f8965d88fb6dacfc85a.tar.gz |
am a2414316: Add documentation for proximity and light sensors.
Merge commit 'a2414316075dde4ca5c1393c662f224b36dd3fdc' into eclair-mr2
* commit 'a2414316075dde4ca5c1393c662f224b36dd3fdc':
Add documentation for proximity and light sensors.
-rw-r--r-- | include/hardware/sensors.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/include/hardware/sensors.h b/include/hardware/sensors.h index 5c464d98..74d50dd1 100644 --- a/include/hardware/sensors.h +++ b/include/hardware/sensors.h @@ -173,7 +173,20 @@ __BEGIN_DECLS * * All values are in micro-Tesla (uT) and measure the ambient magnetic * field in the X, Y and Z axis. - * + * + * Proximity + * --------- + * + * The distance value is measured in centimeters. Note that some proximity + * sensors only support a binary "close" or "far" measurement. In this case, + * the sensor should report its maxRange value in the "far" state and a value + * less than maxRange in the "near" state. + * + * Light + * ----- + * + * The light sensor value is returned in SI lux units. + * */ typedef struct { union { @@ -220,7 +233,7 @@ typedef struct { /* distance in centimeters */ float distance; - /* light in lux */ + /* light in SI lux units */ float light; }; |