BME280 Driver 2.0.x
Driver for BME280 sensor
Loading...
Searching...
No Matches

read last measured data from sensor in normal mode More...

Collaboration diagram for Read in normal mode:

Functions

int8_t BME280_ReadAllLast_F (BME280_t *Dev, BME280_DataF_t *Data)
 Function reads all measured data at once.
 
int8_t BME280_ReadTempLast_F (BME280_t *Dev, float *Temp)
 Function reads last measured temperature.
 
int8_t BME280_ReadPressLast_F (BME280_t *Dev, float *Press)
 Function reads last measured pressure.
 
int8_t BME280_ReadHumLast_F (BME280_t *Dev, float *Hum)
 Function reads last measured humidity.
 

Detailed Description

read last measured data from sensor in normal mode

Note
USE_NORMAL_MODE in Library Configuration must be uncommented to use these functions

Function Documentation

◆ BME280_ReadAllLast_F()

int8_t BME280_ReadAllLast_F ( BME280_t Dev,
BME280_DataF_t Data 
)

Function reads all measured data at once.

Note
Sensor must be in BME280_NORMALMODE to read last measured values.

Function reads all adc values from sensor, converts them into single variables and compensate with use BME280_calibration_data. Compensated values are then converted into BME280_DataF_t structure.

Parameters
[in]*Devpointer to sensor's BME280_t structure
[out]*Datapointer to structure where result will be stored
Returns
BME280_OK success
BME280_PARAM_ERR wrong parameter passed
BME280_INTERFACE_ERR user defined read/write function returned non-zero value
BME280_NO_INIT_ERR sensor was not initialized before
BME280_CONDITION_ERR sensor is not in BME280_NORMALMODE
Here is the call graph for this function:

◆ BME280_ReadHumLast_F()

int8_t BME280_ReadHumLast_F ( BME280_t Dev,
float *  Hum 
)

Function reads last measured humidity.

Note
Sensor must be in BME280_NORMALMODE to read last measured values.

Function reads temperature and humidity related adc values from sensor, converts them into single variables and compensate with use BME280_calibration_data. Compensated value is then converted into floating point value and stored in external variable

Parameters
[in]*Devpointer to sensor's BME280_t structure
[out]*Humpointer to variable where temperature will be stored
Returns
BME280_OK success
BME280_PARAM_ERR wrong parameter passed
BME280_INTERFACE_ERR user defined read/write function returned non-zero value
BME280_NO_INIT_ERR sensor was not initialized before
BME280_CONDITION_ERR sensor is not in BME280_NORMALMODE
Here is the call graph for this function:

◆ BME280_ReadPressLast_F()

int8_t BME280_ReadPressLast_F ( BME280_t Dev,
float *  Press 
)

Function reads last measured pressure.

Note
Sensor must be in BME280_NORMALMODE to read last measured values.

Function reads temperature and pressure related adc values from sensor, converts them into single variables and compensate with use BME280_calibration_data. Compensated value is then converted into floating point value and stored in external variable

Parameters
[in]*Devpointer to sensor's BME280_t structure
[out]*Presspointer to variable where temperature will be stored
Returns
BME280_OK success
BME280_PARAM_ERR wrong parameter passed
BME280_INTERFACE_ERR user defined read/write function returned non-zero value
BME280_NO_INIT_ERR sensor was not initialized before
BME280_CONDITION_ERR sensor is not in BME280_NORMALMODE
Here is the call graph for this function:

◆ BME280_ReadTempLast_F()

int8_t BME280_ReadTempLast_F ( BME280_t Dev,
float *  Temp 
)

Function reads last measured temperature.

Note
Sensor must be in BME280_NORMALMODE to read last measured values.

Function reads temperature related adc values from sensor, converts them into single variable and compensate with use BME280_calibration_data. Compensated value is then converted into floating point value and stored in external variable

Parameters
[in]*Devpointer to sensor's BME280_t structure
[out]*Temppointer to variable where temperature will be stored
Returns
BME280_OK success
BME280_PARAM_ERR wrong parameter passed
BME280_INTERFACE_ERR user defined read/write function returned non-zero value
BME280_NO_INIT_ERR sensor was not initialized before
BME280_CONDITION_ERR sensor is not in BME280_NORMALMODE
Here is the call graph for this function: