Loading...
Searching...
No Matches
Barometer

Barometer Sensor API. More...

Data Structures

struct  Baro_t
 

Detailed Description

Barometer Sensor API.

Contains functions and types for configuring and reading data from the barometer/pressure sensor.


Data Structure Documentation

◆ Baro_t

struct 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
*baroPointer to baro struct.
Returns
NULL.
void(*)(struct Baro *baro, float *out) readTemp Pointer to readTemp method.

Read processed floating point temperature.

Parameters
*baroPointer to baro struct.
*outFloating 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
*baroPointer to baro struct.
*outFloating 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
*baroPointer to baro struct.
*outRaw 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
*baroPointer to baro struct.
*outRaw 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
*baroPointer to baro struct.
*bytesRaw temperature data byte array.
*outProcessed 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
*baroPointer to baro struct.
*bytesRaw pressure data byte array.
*outProcessed 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