ESPHome
2025.5.0
Loading...
Searching...
No Matches
esphome
components
bme68x_bsec2_i2c
bme68x_bsec2_i2c.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/core/defines.h
"
5
#include "
esphome/core/preferences.h
"
6
7
#ifdef USE_BSEC2
8
9
#include "
esphome/components/bme68x_bsec2/bme68x_bsec2.h
"
10
#include "
esphome/components/i2c/i2c.h
"
11
12
namespace
esphome
{
13
namespace
bme68x_bsec2_i2c {
14
15
class
BME68xBSEC2I2CComponent
:
public
bme68x_bsec2::BME68xBSEC2Component
,
public
i2c::I2CDevice
{
16
void
setup()
override
;
17
void
dump_config()
override
;
18
19
uint32_t get_hash()
override
;
20
21
static
int8_t read_bytes_wrapper(uint8_t a_register, uint8_t *data, uint32_t
len
,
void
*intfPtr);
22
static
int8_t write_bytes_wrapper(uint8_t a_register,
const
uint8_t *data, uint32_t
len
,
void
*intfPtr);
23
static
void
delay_us(uint32_t period,
void
*intfPtr);
24
};
25
26
}
// namespace bme68x_bsec2_i2c
27
}
// namespace esphome
28
#endif
bme68x_bsec2.h
esphome::bme68x_bsec2::BME68xBSEC2Component
Definition
bme68x_bsec2.h:47
esphome::bme68x_bsec2_i2c::BME68xBSEC2I2CComponent
Definition
bme68x_bsec2_i2c.h:15
esphome::i2c::I2CDevice
This Class provides the methods to read/write bytes from/to an i2c device.
Definition
i2c.h:133
component.h
preferences.h
defines.h
i2c.h
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
esphome::len
std::string size_t len
Definition
helpers.h:301
Generated by
1.12.0