Skip to content

Add impl of hal::blocking::i2c::Transactional to avr_hal_generic::i2c::I2c #338

@linclelinkpart5

Description

@linclelinkpart5

I'd love to be able to use the Transactional IO model of embedded_hal for I2c (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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    hal-apiAPI design for the different components of avr-halhal-genericRelated to MCU generic parts of avr-halhelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions