The DlnI2cMasterTransfer() function sends and receives data via the I2C bus. The data is sent and received as an array of 1-byte elements.
A handle to the DLN-series adapter.
A number of the I2C master port.
The I2C slave device address value.
The length of data that should be written to the slave device.
The length of data that should be read from the slave device.
A pointer to an array of unsigned 8-bit integers that receives data to be sent to the slave during the function execution.
A pointer to an array of unsigned 8-bit integers that receives data from the slave during the function execution.
The function transmitted data via the I2C bus successfully.
The port number is not valid. Use the DlnI2cMasterGetPortCount() function to find the maximum possible port number.
The function transmit data via the I2C bus because the specified I2C master port is not active. Use the DlnI2cMasterEnable()function to activate the I2C master port.
The specified buffer size is not valid.
The DlnI2cMasterTransfer() function is defined in the dln_i2c_master.h file.