Added definition/documentation for pressure sensors

Change-Id: I68b1bb74ebf1aceee09b6e8cbb8e37b906dbdcd0
This commit is contained in:
Mathias Agopian 2010-07-29 15:22:30 -07:00
parent 478994a758
commit 1832f55760

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;