The TCommLSRead structure
// CommLSRead TCommLSRead struct Result sbyte // The function call result. Port byte // The port to which the I2C device is connected. Buffer byte[] // The buffer used to store the bytes read from the I2C device. BufferLen byte // The size of the output buffer on input. This field is not updated during the function call. TCommLSRead ends
Possible Result values include ERR_COMM_BUS_ERR, ERR_COMM_CHAN_INVALID, STAT_COMM_PENDING, ERR_COMM_CHAN_NOT_READY, ERR_INVALID_SIZE, and NO_ERR.