Variable-length I2C transmissions

Hi there,

I must interact with an I2C slave that sends variable-length messages. The first byte of the transactions describes the length of the remaining bytes.

i2c_write_read_cb() expects a fixed number of bytes to read, so I'm unsure how to use the API to interact with this slave.

Thanks in advance!

- Laci

Related