ESPHome 2025.5.0
Loading...
Searching...
No Matches
ens160_i2c.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace esphome {
7namespace ens160_i2c {
8
10 void dump_config() override;
11
12 bool read_byte(uint8_t a_register, uint8_t *data) override;
13 bool write_byte(uint8_t a_register, uint8_t data) override;
14 bool read_bytes(uint8_t a_register, uint8_t *data, size_t len) override;
15 bool write_bytes(uint8_t a_register, uint8_t *data, size_t len) override;
16};
17
18} // namespace ens160_i2c
19} // namespace esphome
This Class provides the methods to read/write bytes from/to an i2c device.
Definition i2c.h:133
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7
std::string size_t len
Definition helpers.h:301