ESPHome  2024.10.2
Data Structures | Enumerations | Functions
esphome::bmp280_base Namespace Reference

Data Structures

struct  BMP280CalibrationData
 Internal struct storing the calibration values of an BMP280. More...
 
class  BMP280Component
 This class implements support for the BMP280 Temperature+Pressure sensor. More...
 

Enumerations

enum  BMP280Oversampling {
  BMP280_OVERSAMPLING_NONE = 0b000, BMP280_OVERSAMPLING_1X = 0b001, BMP280_OVERSAMPLING_2X = 0b010, BMP280_OVERSAMPLING_4X = 0b011,
  BMP280_OVERSAMPLING_8X = 0b100, BMP280_OVERSAMPLING_16X = 0b101
}
 Enum listing all Oversampling values for the BMP280. More...
 
enum  BMP280IIRFilter {
  BMP280_IIR_FILTER_OFF = 0b000, BMP280_IIR_FILTER_2X = 0b001, BMP280_IIR_FILTER_4X = 0b010, BMP280_IIR_FILTER_8X = 0b011,
  BMP280_IIR_FILTER_16X = 0b100
}
 Enum listing all Infinite Impulse Filter values for the BMP280. More...
 

Functions

uint16_t combine_bytes (uint8_t msb, uint8_t lsb)
 
uint8_t oversampling_to_time (BMP280Oversampling over_sampling)
 

Enumeration Type Documentation

◆ BMP280IIRFilter

Enum listing all Infinite Impulse Filter values for the BMP280.

Higher values increase accuracy, but decrease response time.

Enumerator
BMP280_IIR_FILTER_OFF 
BMP280_IIR_FILTER_2X 
BMP280_IIR_FILTER_4X 
BMP280_IIR_FILTER_8X 
BMP280_IIR_FILTER_16X 

Definition at line 44 of file bmp280_base.h.

◆ BMP280Oversampling

Enum listing all Oversampling values for the BMP280.

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

Enumerator
BMP280_OVERSAMPLING_NONE 
BMP280_OVERSAMPLING_1X 
BMP280_OVERSAMPLING_2X 
BMP280_OVERSAMPLING_4X 
BMP280_OVERSAMPLING_8X 
BMP280_OVERSAMPLING_16X 

Definition at line 31 of file bmp280_base.h.

Function Documentation

◆ combine_bytes()

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

Definition at line 21 of file bmp280_base.cpp.

◆ oversampling_to_time()

uint8_t esphome::bmp280_base::oversampling_to_time ( BMP280Oversampling  over_sampling)
inline

Definition at line 154 of file bmp280_base.cpp.