readBytesData method

int readBytesData(
  1. MraaI2cContext context,
  2. int command,
  3. Pointer<Uint8> data,
  4. int length,
)

Read bytes data - mraa_i2c_read_bytes_data

Bulk read from an I2C context, starting from the designated register Returns the length in bytes passed to the function or Mraa.generalError

Implementation

int readBytesData(MraaI2cContext context, int command, Pointer<Uint8> data,
        int length) =>
    _impl.mraa_i2c_read_bytes_data(context, command, data, length);