U2C_RESULT U2C_PutByteWithAck( HANDLE hDevice, BYTE Data );
The U2C_PutByteWithAck() function shifts out (transmits) a single byte to I2C bus and checks for acknowledge from I2C slave device. It assumes that the bus is available and Start Condition has been generated first. This function can be called several times to implement custom I2C-like protocol. The function does not finish the I2C bus transaction after transmission, so at the end of I2C transaction U2C_Stop() function has to be called.
Handle to the U2C-12 device.
Byte value to be transmitted to the I2C bus.
Byte was successfully transmitted to the I2C bus and I2C slave device provided acknowledge.
U2C-12 device referenced by hDevice handle was not found.
I2C slave device did not acknowledge the transmitted byte.