This is a platform agnostic Rust driver for the for TCA9548A and PCA9548A I2C
switches/multiplexers, based on the
embedded-hal
traits.
This driver allows you to: - Enable one or multiple I2C channels. - Communicate with the slaves connected to the enabled channels transparently.
The TCA9548A and PCA9548 devices have eight bidirectional translating switches that can be controlled through the I2C bus. The SCL/SDA upstream pair fans out to eight downstream pairs, or channels. Any individual SCn/SDn channel or combination of channels can be selected, determined by the contents of the programmable control register. These downstream channels can be used to resolve I2C slave address conflicts. For example, if eight identical digital temperature sensors are needed in the application, one sensor can be connected at each channel: 0-7.
Datasheets: - TCA9548A - PCA9548A
Licensed under either of
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.