smbus-adapter

Crates.iosmbus-adapter
lib.rssmbus-adapter
version0.1.1
sourcesrc
created_at2024-01-18 08:38:27.250559
updated_at2024-01-18 08:40:16.167677
descriptionProvides smbus standardized transfers to i2c devices.
homepage
repositoryhttps://github.com/CBJamo/smbus-adapter
max_upload_size
id1103985
size6,867
Caleb Jamison (CBJamo)

documentation

README

I2c to Smbus Adapter

Smbus is mostly compatable with i2c. This tiny crate does not attempt to address differences such as transfer timeouts, the alert line, or error checking. It simply provides helper functions for the smbus standardized transfers.

Note that the smbus spec only allows 100kHz clock speed. If operating a mixed i2c and smbus bus, and you need to communicate with the i2c devices at more than 100kHz, I recomend using the I2cDeviceWithConfig struct provided by embassy-embedded-hal.

The SmbusAdapter struct accepts anything that impls the I2c trait. It also impls the I2c trait on itself, for devices that use both standard Smbus commands and direct register access.

Currently, only async operation is supported.

Commit count: 0

cargo fmt