ESPHome  2022.11.3
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)
 
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)
 
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_
 
bool scan_ {false}
 

Additional Inherited Members

- Protected Member Functions inherited from esphome::i2c::I2CBus
void i2c_scan_ ()
 

Detailed Description

Definition at line 10 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 12 of file tca9548a.h.

◆ set_parent()

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

Definition at line 13 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 15 of file tca9548a.cpp.

Field Documentation

◆ channel_

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

Definition at line 19 of file tca9548a.h.

◆ parent_

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

Definition at line 20 of file tca9548a.h.


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