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.
Permalink
Failed to load latest commit information.
examples
src
tests
.gitignore
CHANGELOG.md
Cargo.toml
LICENSE-APACHE
LICENSE-MIT
README.md

README.md

Rust TCA9548A and PCA9548A I2C Switch Driver

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.

Datasheets:

License

Licensed under either of

Contributing

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.