Flush: If nonzero, the entire 256-byte RX buffer is emptied. If there are more than 32 bytes in the buffer that data is lost.
NumAsynchBytesInRXBuffer: Returns the number of bytes in the buffer before this read.
AsynchByte#: Returns the 32 oldest bytes from the RX buffer.
5.3.20 - I²C
Control command sends and receives serial data using I²C synchronous communication.
Bit 3: Enable clock streching.
Bit 2: No stop when restarting.
NumI2CWordsSend: This is the number of I2C bytes to send divided by 2. If the number of bytes is odd, round up and add
an extra zero to the packet. This parameter is actually just to specify the size of this packet, as the NumI2CbytesToSend
parameter below actually specifies how many bytes will be sent.
I2COptions: If ResetAtStart is true, an I2C bus reset will be done before communicating.
73