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

force single measure and read data when finished More...

Collaboration diagram for Read in forced mode:

Functions

int8_t BME280_ReadAllForce_F (BME280_t *Dev, BME280_DataF_t *Data)
 Function forces single measure and returns all data as floats.
 
int8_t BME280_ReadTempForce_F (BME280_t *Dev, float *Temp)
 Function forces single measure and returns temperatrue as floats (forced mode)
 
int8_t BME280_ReadPressForce_F (BME280_t *Dev, float *Press)
 Function forces single measure and returns pressure as floats (forced mode)
 
int8_t BME280_ReadHumForce_F (BME280_t *Dev, float *Hum)
 Function forces single measure and returns humidity as floats (forced mode)
 

Detailed Description

force single measure and read data when finished

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

Function Documentation

◆ BME280_ReadAllForce_F()

int8_t BME280_ReadAllForce_F ( BME280_t Dev,
BME280_DataF_t Data 
)

Function forces single measure and returns all data as floats.

Note
Sensor must be in BME280_SLEEPMODE to force a single measurement.

Function reads sensor's configuration to check conditions and calculate max. delay time required for measure cycle. Then sends command to force single measurement and calls used-defined delay function. When delay function returns ir 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_SLEEPMODE
BME280_BUSY_ERR sensor is busy so cannot proceed
Here is the call graph for this function:

◆ BME280_ReadHumForce_F()

int8_t BME280_ReadHumForce_F ( BME280_t Dev,
float *  Hum 
)

Function forces single measure and returns humidity as floats (forced mode)

Note
Sensor must be in BME280_SLEEPMODE to force a single measurement.

Function reads sensor's configuration to check conditions and calculate max. delay time required for measure cycle. Then sends command to force single measurement and calls used-defined delay function. When delay function returns ir reads temperature and humidity related adc values from sensor, converts them into single variables and compensate with use BME280_calibration_data. Compensated values are then converted into float.

Parameters
[in]*Devpointer to sensor's BME280_t structure
[out]*Humpointer to variable where humidity 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_SLEEPMODE
BME280_BUSY_ERR sensor is busy so cannot proceed
Here is the call graph for this function:

◆ BME280_ReadPressForce_F()

int8_t BME280_ReadPressForce_F ( BME280_t Dev,
float *  Press 
)

Function forces single measure and returns pressure as floats (forced mode)

Note
Sensor must be in BME280_SLEEPMODE to force a single measurement.

Function reads sensor's configuration to check conditions and calculate max. delay time required for measure cycle. Then sends command to force single measurement and calls used-defined delay function. When delay function returns ir reads temperature and pressure related adc values from sensor, converts them into single variables and compensate with use BME280_calibration_data. Compensated values are then converted into float.

Parameters
[in]*Devpointer to sensor's BME280_t structure
[out]*Presspointer to variable where pressure 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_SLEEPMODE
BME280_BUSY_ERR sensor is busy so cannot proceed
Here is the call graph for this function:

◆ BME280_ReadTempForce_F()

int8_t BME280_ReadTempForce_F ( BME280_t Dev,
float *  Temp 
)

Function forces single measure and returns temperatrue as floats (forced mode)

Note
Sensor must be in BME280_SLEEPMODE to force a single measurement.

Function reads sensor's configuration to check conditions and calculate max. delay time required for measure cycle. Then sends command to force single measurement and calls used-defined delay function. When delay function returns ir reads temperature related adc values from sensor, converts them into single variables and compensate with use BME280_calibration_data. Compensated values are then converted into float.

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_SLEEPMODE
BME280_BUSY_ERR sensor is busy so cannot proceed
Here is the call graph for this function: