#include <i2c_bus.h>
|
| virtual int | get_port () const =0 |
| | Returns the I2C port number.
|
| |
| virtual | ~I2CBus ()=default |
| |
| virtual ErrorCode | write_readv (uint8_t address, const uint8_t *write_buffer, size_t write_count, uint8_t *read_buffer, size_t read_count)=0 |
| | This virtual method writes bytes to an I2CBus from an array, then reads bytes into an array of ReadBuffer.
|
| |
| ErrorCode | read (uint8_t address, uint8_t *buffer, size_t len) |
| |
| ErrorCode | write (uint8_t address, const uint8_t *buffer, size_t len, bool stop=true) |
| |
|
| void | i2c_scan_ () |
| | Scans the I2C bus for devices.
|
| |
| std::vector< std::pair< uint8_t, bool > > | scan_results_ |
| | array containing scan results
|
| |
| bool | scan_ {false} |
| | Should we scan ? Can be set in the yaml.
|
| |
Definition at line 64 of file i2c_bus.h.
◆ get_port()
| virtual int esphome::i2c::InternalI2CBus::get_port |
( |
| ) |
const |
|
pure virtual |
The documentation for this class was generated from the following file: