ESPHome
2024.11.0
|
Data Structures | |
class | ArduinoI2CBus |
class | I2CBus |
This Class provides the methods to read and write bytes from an I2CBus. More... | |
class | I2CDevice |
This Class provides the methods to read/write bytes from/to an i2c device. More... | |
class | I2CRegister |
This class is used to create I2CRegister objects that act as proxies to read/write internal registers on an I2C device. More... | |
class | I2CRegister16 |
This class is used to create I2CRegister16 objects that act as proxies to read/write internal registers (specified with a 16 bit address) on an I2C device. More... | |
class | IDFI2CBus |
struct | ReadBuffer |
the ReadBuffer structure stores a pointer to a read buffer and its length More... | |
struct | WriteBuffer |
the WriteBuffer structure stores a pointer to a write buffer and its length More... | |
Enumerations | |
enum | ErrorCode { NO_ERROR = 0, ERROR_OK = 0, ERROR_INVALID_ARGUMENT = 1, ERROR_NOT_ACKNOWLEDGED = 2, ERROR_TIMEOUT = 3, ERROR_NOT_INITIALIZED = 4, ERROR_TOO_LARGE = 5, ERROR_UNKNOWN = 6, ERROR_CRC = 7 } |
Error codes returned by I2CBus and I2CDevice methods. More... | |
enum | RecoveryCode { RECOVERY_FAILED_SCL_LOW, RECOVERY_FAILED_SDA_LOW, RECOVERY_COMPLETED, RECOVERY_FAILED_SCL_LOW, RECOVERY_FAILED_SDA_LOW, RECOVERY_COMPLETED } |
enum | RecoveryCode { RECOVERY_FAILED_SCL_LOW, RECOVERY_FAILED_SDA_LOW, RECOVERY_COMPLETED, RECOVERY_FAILED_SCL_LOW, RECOVERY_FAILED_SDA_LOW, RECOVERY_COMPLETED } |
Functions | |
uint16_t | i2ctohs (uint16_t i2cshort) |
uint16_t | htoi2cs (uint16_t hostshort) |
Error codes returned by I2CBus and I2CDevice methods.
Enumerator | |
---|---|
RECOVERY_FAILED_SCL_LOW | |
RECOVERY_FAILED_SDA_LOW | |
RECOVERY_COMPLETED | |
RECOVERY_FAILED_SCL_LOW | |
RECOVERY_FAILED_SDA_LOW | |
RECOVERY_COMPLETED |
Definition at line 12 of file i2c_bus_esp_idf.h.
Enumerator | |
---|---|
RECOVERY_FAILED_SCL_LOW | |
RECOVERY_FAILED_SDA_LOW | |
RECOVERY_COMPLETED | |
RECOVERY_FAILED_SCL_LOW | |
RECOVERY_FAILED_SDA_LOW | |
RECOVERY_COMPLETED |
Definition at line 12 of file i2c_bus_arduino.h.