am 1832f557: Added definition/documentation for pressure sensors

Merge commit '1832f55760fff86d00b5d808b3da8f1e55a889e5' into gingerbread-plus-aosp

* commit '1832f55760fff86d00b5d808b3da8f1e55a889e5':
  Added definition/documentation for pressure sensors
This commit is contained in:
Mathias Agopian 2010-07-29 18:18:54 -07:00 committed by Android Git Automerger
commit 0bcdefe818

View file

@ -205,6 +205,13 @@ __BEGIN_DECLS
* Light sensors report a value only when it changes and each time the
* sensor is enabled. setDelay() is ignored.
*
* Pressure
* --------
*
* The pressure sensor value is returned in hectopascal (hPa)
*
* Pressure sensors report events at a constant rate defined by setDelay().
*
*/
typedef struct {
union {
@ -264,6 +271,9 @@ typedef struct sensors_event_t {
/* light in SI lux units */
float light;
/* pressure in hectopascal (hPa) */
float pressure;
};
uint32_t reserved1[4];
} sensors_event_t;