The DlnI2cMasterWrite() function sends data to the specified I2C slave device.
A handle to the DLN-series adapter.
A number of the I2C master port to be used.
A 7-bit number, uniquely assigned to each I2C slave device. See I2C address section for additional information.
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 bytes. This value must fall within a range from 1 to 256.
A pointer to an array of unsigned 8-bit integers that receives information to be sent to a slave during the function execution. The buffer size must not exceed 256 bytes.
The function executed the I2C write 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 write operation because the specified I2C master port is not active. Use the DlnI2cMasterEnable()function to activate the I2C master port.
The DlnI2cMasterWrite() function is defined in the dln_i2c_master.h file.