Added definition/documentation for pressure sensors
Change-Id: I68b1bb74ebf1aceee09b6e8cbb8e37b906dbdcd0
This commit is contained in:
parent
478994a758
commit
1832f55760
1 changed files with 10 additions and 0 deletions
|
@ -205,6 +205,13 @@ __BEGIN_DECLS
|
||||||
* Light sensors report a value only when it changes and each time the
|
* Light sensors report a value only when it changes and each time the
|
||||||
* sensor is enabled. setDelay() is ignored.
|
* 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 {
|
typedef struct {
|
||||||
union {
|
union {
|
||||||
|
@ -264,6 +271,9 @@ typedef struct sensors_event_t {
|
||||||
|
|
||||||
/* light in SI lux units */
|
/* light in SI lux units */
|
||||||
float light;
|
float light;
|
||||||
|
|
||||||
|
/* pressure in hectopascal (hPa) */
|
||||||
|
float pressure;
|
||||||
};
|
};
|
||||||
uint32_t reserved1[4];
|
uint32_t reserved1[4];
|
||||||
} sensors_event_t;
|
} sensors_event_t;
|
||||||
|
|
Loading…
Reference in a new issue