U2C_RESULT U2C_Write( HANDLE hDevice, PU2C_TRANSACTION pTransaction );
The U2C_Write() function writes up to 256 bytes into the I2C slave device.
Parameters:
Handle to the U2C-12 device.
Pointer to the U2C_TRANSACTION structure to be used during the I2C write transaction. Before calling the function this structure have to be filled:
Return values:
U2C_SUCCESS
The data was successfully written into the I2C slave device.
U2C_HARDWARE_NOT_FOUND
U2C-12 device referenced by hDevice handle was not found.
U2C_SLAVE_OPENNING_FOR_WRITE_FAILED
I2C slave device did not acknowledge write slave address.
U2C_SENDING_MEMORY_ADDRESS_FAILED
I2C slave device did not acknowledge internal address.
U2C_SENDING_DATA_FAILED
I2C slave did not acknowledge data output.