ESPHome  2024.11.1
Public Member Functions | Protected Attributes
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 readv (uint8_t address, i2c::ReadBuffer *buffers, size_t cnt) override
 
i2c::ErrorCode writev (uint8_t address, i2c::WriteBuffer *buffers, size_t cnt, bool stop) override
 
- Public Member Functions inherited from esphome::i2c::I2CBus
virtual ErrorCode read (uint8_t address, uint8_t *buffer, size_t len)
 Creates a ReadBuffer and calls the virtual readv() method to read bytes into this buffer. More...
 
virtual ErrorCode write (uint8_t address, const uint8_t *buffer, size_t len)
 
virtual ErrorCode write (uint8_t address, const uint8_t *buffer, size_t len, bool stop)
 Creates a WriteBuffer and calls the writev() method to send the bytes from this buffer. More...
 
virtual ErrorCode writev (uint8_t address, WriteBuffer *buffers, size_t cnt)
 

Protected Attributes

uint8_t channel_
 
TCA9548AComponentparent_
 
- Protected Attributes inherited from esphome::i2c::I2CBus
std::vector< std::pair< uint8_t, bool > > scan_results_
 array containing scan results More...
 
bool scan_ {false}
 Should we scan ? Can be set in the yaml. More...
 

Additional Inherited Members

- Protected Member Functions inherited from esphome::i2c::I2CBus
void i2c_scan_ ()
 Scans the I2C bus for devices. More...
 

Detailed Description

Definition at line 12 of file tca9548a.h.

Member Function Documentation

◆ readv()

i2c::ErrorCode esphome::tca9548a::TCA9548AChannel::readv ( uint8_t  address,
i2c::ReadBuffer buffers,
size_t  cnt 
)
overridevirtual

Implements esphome::i2c::I2CBus.

Definition at line 9 of file tca9548a.cpp.

◆ 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.

◆ writev()

i2c::ErrorCode esphome::tca9548a::TCA9548AChannel::writev ( uint8_t  address,
i2c::WriteBuffer buffers,
size_t  cnt,
bool  stop 
)
overridevirtual

Implements esphome::i2c::I2CBus.

Definition at line 17 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: