ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
i2c.h File Reference

Go to the source code of this file.

Data Structures

struct  esphome::i2c::I2CRegValue
 One register write for I2CDevice::write_registers(); tables of these may live in PROGMEM. More...
 
class  esphome::i2c::I2CRegister
 This class is used to create I2CRegister objects that act as proxies to read/write internal registers on an I2C device. More...
 
class  esphome::i2c::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  esphome::i2c::I2CDevice
 This Class provides the methods to read/write bytes from/to an i2c device. More...
 

Namespaces

namespace  esphome
 
namespace  esphome::i2c
 

Functions

void esphome::i2c::log_wrong_chip_id (uint8_t id, uint8_t expected)
 Out of line so each check_chip_id() caller only pays for a call.
 
uint16_t esphome::i2c::i2ctohs (uint16_t i2cshort)
 
uint16_t esphome::i2c::htoi2cs (uint16_t hostshort)