From 1832f55760fff86d00b5d808b3da8f1e55a889e5 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Thu, 29 Jul 2010 15:22:30 -0700 Subject: [PATCH] Added definition/documentation for pressure sensors Change-Id: I68b1bb74ebf1aceee09b6e8cbb8e37b906dbdcd0 --- include/hardware/sensors.h | 10 ++++++++++ 1 file changed, 10 insertions(+) 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;