ESPHome  2024.12.2
Data Structures | Enumerations | Functions
esphome::bme280_base Namespace Reference

Data Structures

struct  BME280CalibrationData
 Internal struct storing the calibration values of an BME280. More...
 
class  BME280Component
 This class implements support for the BME280 Temperature+Pressure+Humidity sensor. More...
 

Enumerations

enum  BME280Oversampling {
  BME280_OVERSAMPLING_NONE = 0b000, BME280_OVERSAMPLING_1X = 0b001, BME280_OVERSAMPLING_2X = 0b010, BME280_OVERSAMPLING_4X = 0b011,
  BME280_OVERSAMPLING_8X = 0b100, BME280_OVERSAMPLING_16X = 0b101
}
 Enum listing all Oversampling values for the BME280. More...
 
enum  BME280IIRFilter {
  BME280_IIR_FILTER_OFF = 0b000, BME280_IIR_FILTER_2X = 0b001, BME280_IIR_FILTER_4X = 0b010, BME280_IIR_FILTER_8X = 0b011,
  BME280_IIR_FILTER_16X = 0b100
}
 Enum listing all Infinite Impulse Filter values for the BME280. More...
 

Functions

uint16_t combine_bytes (uint8_t msb, uint8_t lsb)
 
const char * iir_filter_to_str (BME280IIRFilter filter)
 
const char * oversampling_to_str (BME280Oversampling oversampling)
 
uint8_t oversampling_to_time (BME280Oversampling over_sampling)
 

Enumeration Type Documentation

◆ BME280IIRFilter

Enum listing all Infinite Impulse Filter values for the BME280.

Higher values increase accuracy, but decrease response time.

Enumerator
BME280_IIR_FILTER_OFF 
BME280_IIR_FILTER_2X 
BME280_IIR_FILTER_4X 
BME280_IIR_FILTER_8X 
BME280_IIR_FILTER_16X 

Definition at line 51 of file bme280_base.h.

◆ BME280Oversampling

Enum listing all Oversampling values for the BME280.

Oversampling basically means measuring a condition multiple times. Higher oversampling values therefore increase the time required to read sensor values but increase accuracy.

Enumerator
BME280_OVERSAMPLING_NONE 
BME280_OVERSAMPLING_1X 
BME280_OVERSAMPLING_2X 
BME280_OVERSAMPLING_4X 
BME280_OVERSAMPLING_8X 
BME280_OVERSAMPLING_16X 

Definition at line 38 of file bme280_base.h.

Function Documentation

◆ combine_bytes()

uint16_t esphome::bme280_base::combine_bytes ( uint8_t  msb,
uint8_t  lsb 
)
inline

Definition at line 52 of file bme280_base.cpp.

◆ iir_filter_to_str()

const char* esphome::bme280_base::iir_filter_to_str ( BME280IIRFilter  filter)

Definition at line 54 of file bme280_base.cpp.

◆ oversampling_to_str()

const char* esphome::bme280_base::oversampling_to_str ( BME280Oversampling  oversampling)

Definition at line 71 of file bme280_base.cpp.

◆ oversampling_to_time()

uint8_t esphome::bme280_base::oversampling_to_time ( BME280Oversampling  over_sampling)
inline

Definition at line 206 of file bme280_base.cpp.