I need to read variable length blocks from an I2C slave using a TXRX transfer. The length of the following data is given in the first read data byte, similar to SMbus Is there support for this in the TWI libraries?
I need to read variable length blocks from an I2C slave using a TXRX transfer. The length of the following data is given in the first read data byte, similar to SMbus Is there support for this in the TWI libraries?
Hi,
You cannot read variable length data (with the length in the first received byte) with the twi driver/libraries. From hardware perspective it is possible (see the TWI peripheral).
You will have to make your own driver that supports this or in some way change the SDK driver to support this.
Ole