ESPHome  1.15.2
Data Structures | Enumerations | Functions
esphome::bme280 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 i2c 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)
 
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 52 of file bme280.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 39 of file bme280.h.

Function Documentation

◆ combine_bytes()

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

Definition at line 42 of file bme280.cpp.

◆ oversampling_to_time()

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

Definition at line 167 of file bme280.cpp.