avr-hal icon indicating copy to clipboard operation
avr-hal copied to clipboard

I2C streaming API.

Open booti386 opened this issue 3 months ago • 1 comments

Hello,

For some i2c devices the returned data through a single transaction can be quite large (e.g. PN532, with > 256 possible bytes per transaction). In this case it make little sense to hold the whole buffer in memory instead of processing bytes on the fly. Is a streaming, byte-by-byte API planned that would allow us to handle this properly?

booti386 avatar Sep 25 '25 10:09 booti386

Nothing planned, but I'm willing to accept a PR ;) Please check related discussions in upstream embedded-hal and maybe look for similar implementations in other MCU hals (e.g. STM32).

Rahix avatar Sep 25 '25 16:09 Rahix