ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
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

 ESPHOME_LOG_TAG (TAG, "bmp280.sensor")
 
 PROGMEM_STRING_TABLE (OversamplingStrings, "None", "1x", "2x", "4x", "8x", "16x", "UNKNOWN")
 
 PROGMEM_STRING_TABLE (IIRFilterStrings, "OFF", "2x", "4x", "8x", "16x", "UNKNOWN")
 
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 43 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 30 of file bmp280_base.h.

Function Documentation

◆ ESPHOME_LOG_TAG()

esphome::bmp280_base::ESPHOME_LOG_TAG ( TAG ,
"bmp280.sensor"  )

◆ oversampling_to_time()

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

Definition at line 115 of file bmp280_base.cpp.

◆ PROGMEM_STRING_TABLE() [1/2]

esphome::bmp280_base::PROGMEM_STRING_TABLE ( IIRFilterStrings ,
"OFF" ,
"2x" ,
"4x" ,
"8x" ,
"16x" ,
"UNKNOWN"  )

◆ PROGMEM_STRING_TABLE() [2/2]

esphome::bmp280_base::PROGMEM_STRING_TABLE ( OversamplingStrings ,
"None" ,
"1x" ,
"2x" ,
"4x" ,
"8x" ,
"16x" ,
"UNKNOWN"  )