ESPHome
2024.11.1
esphome
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
esphome::bme68x_bsec2::BME68xBSEC2Component
Definition:
bme68x_bsec2.h:47
preferences.h
defines.h
esphome::bme68x_bsec2_i2c::BME68xBSEC2I2CComponent
Definition:
bme68x_bsec2_i2c.h:15
esphome::len
std::string size_t len
Definition:
helpers.h:293
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
component.h
bme68x_bsec2.h
esphome::i2c::I2CDevice
This Class provides the methods to read/write bytes from/to an i2c device.
Definition:
i2c.h:133
i2c.h
Generated by
1.8.13