ESPHome 2025.9.0
Loading...
Searching...
No Matches
esphome::tca9548a::TCA9548AChannel Class Reference

#include <tca9548a.h>

Inheritance diagram for esphome::tca9548a::TCA9548AChannel:
esphome::i2c::I2CBus

Public Member Functions

void set_channel (uint8_t channel)
 
void set_parent (TCA9548AComponent *parent)
 
i2c::ErrorCode write_readv (uint8_t address, const uint8_t *write_buffer, size_t write_count, uint8_t *read_buffer, size_t read_count) override
 
- Public Member Functions inherited from esphome::i2c::I2CBus
virtual ~I2CBus ()=default
 
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)
 
 ESPDEPRECATED ("This method is deprecated and will be removed in ESPHome 2026.3.0. Use write_readv() instead.", "2025.9.0") ErrorCode readv(uint8_t address
 
 for (size_t i=0;i !=count;i++)
 
 if (err !=ERROR_OK) return err
 
 for (size_t i=0;i !=count;i++)
 
 ESPDEPRECATED ("This method is deprecated and will be removed in ESPHome 2026.3.0. Use write_readv() instead.", "2025.9.0") ErrorCode writev(uint8_t address
 

Protected Attributes

uint8_t channel_
 
TCA9548AComponentparent_
 

Additional Inherited Members

- Data Fields inherited from esphome::i2c::I2CBus
ReadBufferread_buffers
 
ReadBuffer size_t count
 
SmallBufferWithHeapFallback< 128 > buffer_alloc
 
uint8_t * buffer = buffer_alloc.get(total_len)
 
auto err = this->write_readv(address, nullptr, 0, buffer, total_len)
 
size_t pos = 0
 
return ERROR_OK
 
const WriteBufferwrite_buffers
 
const WriteBuffer size_t count
 
const WriteBuffer size_t bool stop
 
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.
 

Detailed Description

Definition at line 12 of file tca9548a.h.

Member Function Documentation

◆ set_channel()

void esphome::tca9548a::TCA9548AChannel::set_channel ( uint8_t channel)
inline

Definition at line 14 of file tca9548a.h.

◆ set_parent()

void esphome::tca9548a::TCA9548AChannel::set_parent ( TCA9548AComponent * parent)
inline

Definition at line 15 of file tca9548a.h.

◆ write_readv()

i2c::ErrorCode esphome::tca9548a::TCA9548AChannel::write_readv ( uint8_t address,
const uint8_t * write_buffer,
size_t write_count,
uint8_t * read_buffer,
size_t read_count )
overridevirtual

Implements esphome::i2c::I2CBus.

Definition at line 9 of file tca9548a.cpp.

Field Documentation

◆ channel_

uint8_t esphome::tca9548a::TCA9548AChannel::channel_
protected

Definition at line 21 of file tca9548a.h.

◆ parent_

TCA9548AComponent* esphome::tca9548a::TCA9548AChannel::parent_
protected

Definition at line 22 of file tca9548a.h.


The documentation for this class was generated from the following files: