Loading...
Searching...
No Matches

Data Structures

struct  BMP581_t
 

Functions

BMP581_t BMP581_init (BMP581_t *, SPI_t *, GPIOpin_t, const float, const float)
 Initialiser for a BMP581 barometer.
 
void BMP581_update (BMP581_t *)
 Updates the BMP581 barometer readings.
 
void BMP581_readTemp (BMP581_t *, float *)
 Read the temperature from the BMP581 sensor.
 
void BMP581_readPress (BMP581_t *, float *)
 
void BMP581_readRawTemp (BMP581_t *, uint8_t *)
 
void BMP581_readRawPress (BMP581_t *, uint8_t *)
 
void BMP581_processRawTemp (BMP581_t *, uint8_t *, float *)
 Processes raw temperature data from BMP581 sensor.
 
void BMP581_processRawPress (BMP581_t *, uint8_t *, float *)
 

Detailed Description

Function Documentation

◆ BMP581_init()

BMP581_t BMP581_init ( BMP581_t * baro,
SPI_t * spi,
GPIOpin_t cs,
float tempSensitivity,
float pressSensitivity )

Initialiser for a BMP581 barometer.

Parameters
*baroPointer to BMP581 struct to be initialised.
*portPointer to GPIO port struct.
csDevice chip select address.
tempSensitivityBarometer temperature sensitivity.
pressSensitivityBarometer pressure sensitivity.
Returns
NULL.

Definition at line 27 of file bmp581.c.

◆ BMP581_update()

void BMP581_update ( BMP581_t * baro)

Updates the BMP581 barometer readings.

Parameters
*baroPointer to BMP581 struct to be updated.
Returns
NULL.

Definition at line 81 of file bmp581.c.

◆ BMP581_readTemp()

void BMP581_readTemp ( BMP581_t * baro,
float * out )

Read the temperature from the BMP581 sensor.

Parameters
*baroPointer to BMP581 struct.
*outPointer to float where the temperature will be stored.
Returns
NULL.

Definition at line 97 of file bmp581.c.

◆ BMP581_readPress()

void BMP581_readPress ( BMP581_t * baro,
float * out )
Parameters

param

Returns
NULL.

Definition at line 138 of file bmp581.c.

◆ BMP581_readRawTemp()

void BMP581_readRawTemp ( BMP581_t * baro,
uint8_t * out )
Parameters

param

Returns
NULL.

Definition at line 124 of file bmp581.c.

◆ BMP581_readRawPress()

void BMP581_readRawPress ( BMP581_t * baro,
uint8_t * out )
Parameters

param

Returns
NULL.

Definition at line 164 of file bmp581.c.

◆ BMP581_processRawTemp()

void BMP581_processRawTemp ( BMP581_t * baro,
uint8_t * bytes,
float * out )

Processes raw temperature data from BMP581 sensor.

Parameters
*baroPointer to BMP581 struct.
*bytesPointer to array containing raw temperature.
*outPointer to a float where processed temperature value will be stored.
Returns
NULL.

Definition at line 112 of file bmp581.c.

◆ BMP581_processRawPress()

void BMP581_processRawPress ( BMP581_t * baro,
uint8_t * bytes,
float * out )
Parameters

param

Returns
NULL.

Definition at line 152 of file bmp581.c.