BME280 Driver 2.0.x
Driver for BME280 sensor
|
read last measured data from sensor in normal mode More...
Functions | |
int8_t | BME280_ReadAllLast (BME280_t *Dev, BME280_Data_t *Data) |
Function reads all measured data at once. | |
int8_t | BME280_ReadTempLast (BME280_t *Dev, int8_t *TempInt, uint8_t *TempFract) |
Function reads last measured temperature. | |
int8_t | BME280_ReadPressLast (BME280_t *Dev, uint16_t *PressInt, uint16_t *PressFract) |
Function reads last measured pressure. | |
int8_t | BME280_ReadHumLast (BME280_t *Dev, uint8_t *HumInt, uint16_t *HumFract) |
Function reads last measured humidity. | |
read last measured data from sensor in normal mode
int8_t BME280_ReadAllLast | ( | BME280_t * | Dev, |
BME280_Data_t * | Data | ||
) |
Function reads all measured data at once.
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_Data_t structure.
[in] | *Dev | pointer to sensor's BME280_t structure |
[out] | *Data | pointer to structure where result will be stored |
int8_t BME280_ReadHumLast | ( | BME280_t * | Dev, |
uint8_t * | HumInt, | ||
uint16_t * | HumFract | ||
) |
Function reads last measured humidity.
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 integer part and fractial part and stored in external variables
[in] | *Dev | pointer to sensor's BME280_t structure |
[out] | *HumInt | pointer to variable where integer part of humidity will be stored |
[out] | *HumFract | pointer to variable where fractial part of humidity will be stored |
int8_t BME280_ReadPressLast | ( | BME280_t * | Dev, |
uint16_t * | PressInt, | ||
uint16_t * | PressFract | ||
) |
Function reads last measured pressure.
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 integer part and fractial part and stored in external variables
[in] | *Dev | pointer to sensor's BME280_t structure |
[out] | *PressInt | pointer to variable where integer part of pressure will be stored |
[out] | *PressFract | pointer to variable where fractial part of pressure will be stored |
int8_t BME280_ReadTempLast | ( | BME280_t * | Dev, |
int8_t * | TempInt, | ||
uint8_t * | TempFract | ||
) |
Function reads last measured temperature.
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 integer part and fractial part and stored in external variables
[in] | *Dev | pointer to sensor's BME280_t structure |
[out] | *TempInt | pointer to variable where integer part of temperature will be stored |
[out] | *TempFract | pointer to variable where fractial part of temperature will be stored |