The DlnI2cMasterRead() function reads data from the specified I2C slave device.
A handle to the DLN-series adapter.
A number of the I2C master port.
A 7-bit number, assigned to each I2C slave device. For additional details refer to the I2C slave address section.
An internal address length. If set to zero, no internal address is sent.
An internal I2C slave device address. For details, read Using Internal Addresses.
The size of the message buffer (in the range from 1 to 256 bytes).
A pointer to an array of unsigned 8-bit integers that receives data from the I2C slave device during the function execution. The array must contain at least bufferLength elements.
The function executed the I2C read operation successfully.
The port number is not valid. Use the DlnI2cMasterGetPortCount() function to find the maximum possible port number.
The function cannot execute the I2C read operation because the specified I2C master port is not active. Use the DlnI2cMasterEnable()function to activate the I2C master port.
The DlnI2cMasterRead() function is defined in the dln_i2c_master.h file.