ESPHome  2024.2.1
Data Structures | Namespaces | Enumerations
i2c_bus.h File Reference

Go to the source code of this file.

Data Structures

struct  esphome::i2c::ReadBuffer
 the ReadBuffer structure stores a pointer to a read buffer and its length More...
 
struct  esphome::i2c::WriteBuffer
 the WriteBuffer structure stores a pointer to a write buffer and its length More...
 
class  esphome::i2c::I2CBus
 This Class provides the methods to read and write bytes from an I2CBus. More...
 

Namespaces

 esphome
 This is a workaround until we can figure out a way to get the tflite-micro idf component code available in CI.
 
 esphome::i2c
 

Enumerations

enum  esphome::i2c::ErrorCode {
  esphome::i2c::NO_ERROR = 0, esphome::i2c::ERROR_OK = 0, esphome::i2c::ERROR_INVALID_ARGUMENT = 1, esphome::i2c::ERROR_NOT_ACKNOWLEDGED = 2,
  esphome::i2c::ERROR_TIMEOUT = 3, esphome::i2c::ERROR_NOT_INITIALIZED = 4, esphome::i2c::ERROR_TOO_LARGE = 5, esphome::i2c::ERROR_UNKNOWN = 6,
  esphome::i2c::ERROR_CRC = 7
}
 Error codes returned by I2CBus and I2CDevice methods. More...