avr-hal
avr-hal copied to clipboard
I2C streaming API.
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?
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).