Add impl of hal::blocking::i2c::Transactional
to avr_hal_generic::i2c::I2c
#338
Labels
hal-api
API design for the different components of avr-hal
hal-generic
Related to MCU generic parts of avr-hal
help wanted
Extra attention is needed
I'd love to be able to use the
Transactional
IO model ofembedded_hal
forI2c
(https://docs.rs/embedded-hal/latest/embedded_hal/blocking/i2c/trait.Transactional.html), would it be possible to add this in? I'm happy to do the work if there are no objections or concerns.The only question I have is related to multiple read operations -- in the linked docs for
Transactional
, it states:If the last operation is a Read the master does not send an acknowledge for the last byte.
Would this mean that read operations that are not the last one in the batch send an ACK versus a NACK? Or would each read operation send a NACK?The text was updated successfully, but these errors were encountered: