Barometer Sensor API.
More...
Barometer Sensor API.
Contains functions and types for configuring and reading data from the barometer/pressure sensor.
◆ Baro_t
Definition at line 14 of file barometer.h.
Data Fields |
void(*)(struct Baro *baro) |
update |
Pointer to update method. Update internally stored pressure and temperature readings.
- Parameters
-
*baro | Pointer to baro struct. |
- Returns
NULL .
|
void(*)(struct Baro *baro, float *out) |
readTemp |
Pointer to readTemp method. Read processed floating point temperature.
- Parameters
-
*baro | Pointer to baro struct. |
*out | Floating point temperature value pointer to write. |
- Returns
NULL .
|
void(*)(struct Baro *baro, float *out) |
readPress |
Pointer to readPress method. Read processed floating point pressure.
- Parameters
-
*baro | Pointer to baro struct. |
*out | Floating point pressure value pointer to write. |
- Returns
NULL .
|
void(*)(struct Baro *baro, uint8_t *out) |
readRawTemp |
Pointer to readRawTemp method. Read raw temperature data bytes.
- Parameters
-
*baro | Pointer to baro struct. |
*out | Raw temperature data byte array to write. |
- Returns
NULL .
|
void(*)(struct Baro *baro, uint8_t *out) |
readRawPress |
Pointer to readRawPress method. Read raw pressure data bytes.
- Parameters
-
*baro | Pointer to baro struct. |
*out | Raw pressure data byte array to write. |
- Returns
NULL .
|
void(*)(struct Baro *baro, uint8_t *bytes, float *out) |
processRawTemp |
Pointer to processRawTemp method. Process raw temperature data bytes to floating point temperature.
- Parameters
-
*baro | Pointer to baro struct. |
*bytes | Raw temperature data byte array. |
*out | Processed floating point temperature value pointer to write. |
- Returns
NULL .
|
void(*)(struct Baro *baro, uint8_t *bytes, float *out) |
processRawPress |
Pointer to processRawPress method. Process raw pressure data bytes to floating point pressure.
- Parameters
-
*baro | Pointer to baro struct. |
*bytes | Raw pressure data byte array. |
*out | Processed floating point pressure value pointer to write. |
- Returns
NULL .
|
uint8_t |
pressDataSize |
Size of raw pressure data in bytes. |
uint8_t |
tempDataSize |
Size of raw temperature data in bytes. |
uint8_t * |
rawPress |
Pointer to driver defined raw pressure data array. |
uint8_t * |
rawTemp |
Pointer to driver defined raw temperature data array. |
float |
groundPress |
Stored ground pressure reading. |
float |
press |
Last read processed pressure value. |
float |
temp |
Last read processed temperature value. |
float |
sensitivity |
|