summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2010-07-29 15:22:30 -0700
committerMathias Agopian <mathias@google.com>2010-07-29 15:22:30 -0700
commit1832f55760fff86d00b5d808b3da8f1e55a889e5 (patch)
tree632b854150299dabc066f6d88f57a42f2a04bc3a
parent478994a758e48b0de7f56f3de0678d5c2b6a4b61 (diff)
downloadlibhardware-1832f55760fff86d00b5d808b3da8f1e55a889e5.tar.gz
Added definition/documentation for pressure sensors
Change-Id: I68b1bb74ebf1aceee09b6e8cbb8e37b906dbdcd0
-rw-r--r--include/hardware/sensors.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/hardware/sensors.h b/include/hardware/sensors.h
index 2bbc8c96..0a3d673c 100644
--- a/include/hardware/sensors.h
+++ b/include/hardware/sensors.h
@@ -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;