TsctlTWIReadDesc

From embeddedTS Manuals

This function reads a frame from the two-wire interface.

The devadr parameter specifies the address of the devise to talk to.

The adrslen parameter specifies the length of the register address in the device. Valid values for this parameter are 0 through 4.

The adrs parameter specifies the address in the device to read from. If adrslen is 0, this value is ignored. The bytes in the adrs are sent LSB first.

The bytes parameter contains an Array to receive the data read, with the length of the Array being the number of bytes to read.