ESPHome 2025.12.0-dev
Loading...
Searching...
No Matches
xgzp68xx.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome {
8namespace xgzp68xx {
9
23
25 public:
28 void set_k_value(uint16_t k_value) { this->k_value_ = k_value; }
30 void set_pressure_oversampling(XGZP68XXOversampling pressure_oversampling) {
31 this->pressure_oversampling_ = pressure_oversampling;
32 }
33
34 void update() override;
35 void setup() override;
36 void dump_config() override;
37
38 protected:
41 uint16_t k_value_;
44};
45
46} // namespace xgzp68xx
47} // namespace esphome
This class simplifies creating components that periodically check a state.
Definition component.h:437
This Class provides the methods to read/write bytes from/to an i2c device.
Definition i2c.h:133
Base-class for all sensors.
Definition sensor.h:42
XGZP68XXOversampling last_pressure_oversampling_
Definition xgzp68xx.h:43
void read_pressure_()
Internal method to read the pressure from the component after it has been scheduled.
XGZP68XXOversampling pressure_oversampling_
Definition xgzp68xx.h:42
void set_pressure_oversampling(XGZP68XXOversampling pressure_oversampling)
Set the pressure oversampling value. Defaults to 4096X.
Definition xgzp68xx.h:30
SUB_SENSOR(temperature) SUB_SENSOR(pressure) void set_k_value(uint16_t k_value)
Definition xgzp68xx.h:26
XGZP68XXOversampling
Enum listing all oversampling options for the XGZP68XX.
Definition xgzp68xx.h:11
@ XGZP68XX_OVERSAMPLING_32768X
Definition xgzp68xx.h:19
@ XGZP68XX_OVERSAMPLING_1024X
Definition xgzp68xx.h:14
@ XGZP68XX_OVERSAMPLING_256X
Definition xgzp68xx.h:12
@ XGZP68XX_OVERSAMPLING_UNKNOWN
Definition xgzp68xx.h:21
@ XGZP68XX_OVERSAMPLING_8192X
Definition xgzp68xx.h:17
@ XGZP68XX_OVERSAMPLING_2048X
Definition xgzp68xx.h:15
@ XGZP68XX_OVERSAMPLING_4096X
Definition xgzp68xx.h:16
@ XGZP68XX_OVERSAMPLING_16384X
Definition xgzp68xx.h:18
@ XGZP68XX_OVERSAMPLING_512X
Definition xgzp68xx.h:13
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7
uint16_t temperature
Definition sun_gtil2.cpp:12
uint8_t pressure
Definition tt21100.cpp:7