diff options
author | Mathias Agopian <mathias@google.com> | 2010-07-22 17:15:00 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-07-22 17:15:00 -0700 |
commit | f0e4ec1a04701c40e38a09a97e6f1c417163e0c2 (patch) | |
tree | 4098b3e51b72b179cd8d544f2905807a681a0cfe /include | |
parent | 95e5456cf87adbc99a20bdc358ff63bc7e501f04 (diff) | |
parent | 66a4095ca0ecfe89b10abe5402617450f57759cd (diff) | |
download | hardware_libhardware-f0e4ec1a04701c40e38a09a97e6f1c417163e0c2.zip hardware_libhardware-f0e4ec1a04701c40e38a09a97e6f1c417163e0c2.tar.gz hardware_libhardware-f0e4ec1a04701c40e38a09a97e6f1c417163e0c2.tar.bz2 |
am 66a4095c: Be more explicit about the rate at which sensor events must be returned
Merge commit '66a4095ca0ecfe89b10abe5402617450f57759cd' into gingerbread-plus-aosp
* commit '66a4095ca0ecfe89b10abe5402617450f57759cd':
Be more explicit about the rate at which sensor events must be returned
Diffstat (limited to 'include')
-rw-r--r-- | include/hardware/sensors.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/hardware/sensors.h b/include/hardware/sensors.h index 7439c5e..30bff91 100644 --- a/include/hardware/sensors.h +++ b/include/hardware/sensors.h @@ -118,6 +118,9 @@ __BEGIN_DECLS * * All values are angles in degrees. * + * Orientation sensors return sensor events for all 3 axes at a constant + * rate defined by setDelay(). + * * azimuth: angle between the magnetic north direction and the Y axis, around * the Z axis (0<=azimuth<360). * 0=North, 90=East, 180=South, 270=West @@ -153,6 +156,9 @@ __BEGIN_DECLS * All values are in SI units (m/s^2) and measure the acceleration of the * device minus the force of gravity. * + * Acceleration sensors return sensor events for all 3 axes at a constant + * rate defined by setDelay(). + * * x: Acceleration minus Gx on the x-axis * y: Acceleration minus Gy on the y-axis * z: Acceleration minus Gz on the z-axis @@ -177,6 +183,9 @@ __BEGIN_DECLS * All values are in micro-Tesla (uT) and measure the ambient magnetic * field in the X, Y and Z axis. * + * Magnetic Field sensors return sensor events for all 3 axes at a constant + * rate defined by setDelay(). + * * Proximity * --------- * @@ -185,11 +194,17 @@ __BEGIN_DECLS * the sensor should report its maxRange value in the "far" state and a value * less than maxRange in the "near" state. * + * Proximity sensors report a value only when it changes. setDelay() is + * ignored. + * * Light * ----- * * The light sensor value is returned in SI lux units. * + * Light sensors report a value only when it changes. setDelay() is + * ignored. + * */ typedef struct { union { |