ESPHome  2024.9.0
bme68x_bsec2_i2c.h
Go to the documentation of this file.
1 #pragma once
2 
4 #include "esphome/core/defines.h"
6 
7 #ifdef USE_BSEC2
8 
11 
12 namespace esphome {
13 namespace bme68x_bsec2_i2c {
14 
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
std::string size_t len
Definition: helpers.h:292
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
This Class provides the methods to read/write bytes from/to an i2c device.
Definition: i2c.h:133