cbowen12345
11-11-2008, 04:36 PM
I am trying to read data from a I2C device. The following statement is made in the reference manual....
Parameter numToRead specifies how much data to read back from the external I2C device.
Is the "numToRead" an interger number? Assuming that is correct, is it the number of bits/bytes to be read?
Initially I am reading a status byte. Bits 0-6 contain information about how much of the80 byte receive buffer contains data and bit 7 is a flag indicating that the device buffer has data waiting.
Thanks for any assistance
Rick
PS. Writing to the device is not a problem
Parameter numToRead specifies how much data to read back from the external I2C device.
Is the "numToRead" an interger number? Assuming that is correct, is it the number of bits/bytes to be read?
Initially I am reading a status byte. Bits 0-6 contain information about how much of the80 byte receive buffer contains data and bit 7 is a flag indicating that the device buffer has data waiting.
Thanks for any assistance
Rick
PS. Writing to the device is not a problem