[Overview][Constants][Types][Procedures and functions][Index] Reference for unit 'i2c_dev' (#pascalio)

i2c_smbus_read_i2c_block_data

Declaration

Source position: i2c_dev.pas line 171

function i2c_smbus_read_i2c_block_data(

  _file: cint;

  command: Byte;

  _length: Byte;

  values: PByte

):LongInt;

Function result

Number of read bytes

Description

Until kernel 2.6.22, the length is hardcoded to 32 bytes. If you ask for less than 32 bytes, your code will only work with kernels 2.6.23 and later.


Documentation generated on: 2020-05-22