Loading...
Searching...
No Matches

Data Structures

struct  LPS22DF_t
 

Functions

LPS22DF_t LPS22DF_init (LPS22DF_t *, SPI_t *, GPIOpin_t, const float, const float)
 Initialiser for a LPS22DF barometer.
 
void LPS22DF_update (Baro_t *)
 Updates the LPS22DF barometer readings.
 
void LPS22DF_readTemp (Baro_t *, float *)
 Read the temperature from the LPS22DF sensor.
 
void LPS22DF_readPress (Baro_t *, float *)
 
void LPS22DF_readRawTemp (Baro_t *, uint8_t *)
 
void LPS22DF_readRawPress (Baro_t *, uint8_t *)
 
void LPS22DF_processRawTemp (Baro_t *, uint8_t *, float *)
 Processes raw temperature data from LPS22DF sensor.
 
void LPS22DF_processRawPress (Baro_t *, uint8_t *, float *)
 

Detailed Description

Function Documentation

◆ LPS22DF_init()

LPS22DF_t LPS22DF_init ( LPS22DF_t * baro,
SPI_t * spi,
GPIOpin_t cs,
float tempSensitivity,
float pressSensitivity )

Initialiser for a LPS22DF barometer.

Parameters
*baroPointer to LPS22DF 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 lps22df.c.

◆ LPS22DF_update()

void LPS22DF_update ( Baro_t * baro)

Updates the LPS22DF barometer readings.

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

Definition at line 77 of file lps22df.c.

◆ LPS22DF_readTemp()

void LPS22DF_readTemp ( Baro_t * baro,
float * out )

Read the temperature from the LPS22DF sensor.

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

Definition at line 93 of file lps22df.c.

◆ LPS22DF_readPress()

void LPS22DF_readPress ( Baro_t * baro,
float * out )
Parameters

param

Returns
NULL.

Definition at line 133 of file lps22df.c.

◆ LPS22DF_readRawTemp()

void LPS22DF_readRawTemp ( Baro_t * baro,
uint8_t * out )
Parameters

param

Returns
NULL.

Definition at line 120 of file lps22df.c.

◆ LPS22DF_readRawPress()

void LPS22DF_readRawPress ( Baro_t * baro,
uint8_t * out )
Parameters

param

Returns
NULL.

Definition at line 159 of file lps22df.c.

◆ LPS22DF_processRawTemp()

void LPS22DF_processRawTemp ( Baro_t * baro,
uint8_t * bytes,
float * out )

Processes raw temperature data from LPS22DF sensor.

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

Definition at line 108 of file lps22df.c.

◆ LPS22DF_processRawPress()

void LPS22DF_processRawPress ( Baro_t * baro,
uint8_t * bytes,
float * out )
Parameters

param

Returns
NULL.

Definition at line 147 of file lps22df.c.