|
ESPHome 2026.11.0-dev
|
Data Structures | |
| class | WeikaiComponentI2C |
| The WeikaiComponentI2C class stores the information to the WeiKai component connected through an I2C bus. More... | |
| class | WeikaiRegisterI2C |
| WeikaiRegisterI2C objects acts as proxies to access remote register through an I2C Bus. More... | |
Enumerations | |
| enum | RegType { REG = 0 , FIFO = 1 } |
Functions | |
| ESPHOME_LOG_TAG (TAG, "weikai_i2c") | |
| uint8_t | i2c_address (uint8_t base_address, uint8_t channel, RegType fifo) |
| Computes the I²C bus's address used to access the component. | |
| Enumerator | |
|---|---|
| REG | |
| FIFO | |
Definition at line 12 of file weikai_i2c.cpp.
| esphome::weikai_i2c::ESPHOME_LOG_TAG | ( | TAG | , |
| "weikai_i2c" | ) |
|
inline |
Computes the I²C bus's address used to access the component.
| base_address | the base address of the component - set by the A1 A0 pins |
| channel | (0-3) the UART channel |
| fifo | (0-1) 0 = access to internal register, 1 = direct access to fifo |
Definition at line 19 of file weikai_i2c.cpp.