[En-Nut-Discussion] NutI2cMasterTransceive() versus NutI2cMasterTransact()
harald.kipp at egnite.de
Tue Feb 19 18:08:40 CET 2013
On 19.02.2013 18:05, Uwe Bonnes wrote:
> Harald> In this case the caller needs to know how many bytes had been
> Harald> actually delivered by the slave.
> I think code like
> rc= NutI2cMasterTransact(bus, NutI2C_MSG *msg, size)
> if (rc != size)
> if (rc >=0)
> num_rec = msg[rc].msg_ridx;
> would retrieve how many bytes had been actually delivered by the slave for
> the failing message.
Yes, that would work.
More information about the En-Nut-Discussion