8static const uint8_t TCA9548A_DISABLE_CHANNELS_COMMAND = 0x00;
10class TCA9548AComponent;
17 size_t read_count)
override;
19#ifdef I2C_PORT_FREQUENCY_COUNT
26#ifdef I2C_PORT_FREQUENCY_COUNT
30 size_t write_count, uint8_t *read_buffer,
size_t read_count);
32 uint8_t *read_buffer,
size_t read_count);
43 void setup()
override;
50#ifdef I2C_PORT_FREQUENCY_COUNT
57#ifdef I2C_PORT_FREQUENCY_COUNT
This Class provides the methods to read and write bytes from an I2CBus.
This Class provides the methods to read/write bytes from/to an i2c device.
i2c::ErrorCode write_readv_at_port_frequency_(uint32_t select_frequency, uint8_t address, const uint8_t *write_buffer, size_t write_count, uint8_t *read_buffer, size_t read_count)
void set_parent(TCA9548AComponent *parent)
uint32_t transfer_frequency_() const
uint32_t get_frequency() const override
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
i2c::ErrorCode switch_frequency(uint32_t frequency) override
i2c::ErrorCode switch_bus_(uint32_t frequency)
Switch the upstream bus, flagging the multiplexer on failure.
TCA9548AComponent * parent_
void set_channel(uint8_t channel)
i2c::ErrorCode transfer_(uint32_t select_frequency, uint8_t address, const uint8_t *write_buffer, size_t write_count, uint8_t *read_buffer, size_t read_count)
void set_frequency(uint32_t frequency)
uint32_t select_frequency_() const
i2c::ErrorCode switch_to_channel(uint8_t channel)
void disable_all_channels()
void dump_config() override
void set_frequency(uint32_t frequency)
Addressing frequency, and the default for the ports.
float get_setup_priority() const override
ErrorCode
Error codes returned by I2CBus and I2CDevice methods.
constexpr float IO
For components that represent GPIO pins like PCF8573.