rust-embedded / rust-i2cdev

Rust library for interfacing with i2c devices under Linux
Apache License 2.0
207 stars 54 forks source link

[WIP] Allow sending multiple read/write operations in one transfer #45

Closed RandomInsano closed 5 years ago

RandomInsano commented 6 years ago

I've started mocking up what I think the interface for the I2C_RDWR should look like, and I'm too green to be confident this is a good plan. While this compiles alright, Traits are also one of those things I'm not overly comfortable with.

The two things I think I want to change are:

  1. The 'flags' u16 parameter on the 'custom' function should be a trait as well
  2. Should there be some sort of factory class? Maybe that can be left up to the implementer?
Disasm commented 5 years ago

Ping from triage: any progress on this?

posborne commented 5 years ago

Closed in favor of https://github.com/rust-embedded/rust-i2cdev/pull/50