Platform-agnostic Rust driver for the TCA9548A and PCA9548A I2C switches/multiplexers using embedded-hal.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Rust TCA9548A and PCA9548A I2C Switch Driver Docs Build Status

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 devices

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.



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.