Using the QuickUSB Library
I2C-Compatible Port
The QuickUSB I
2
C-compatible port is a master-only bus controller. The bus runs
at approximately 100Khz. Address 1 is reserved. The bus speed may be
changed with the
QuickUsbReadI2c
Purpose
None
Parameters
hDevice: A HANDLE that was returned from a call to QuickUsbOpen.
address: The device address.
data:
A pointer to a buffer in which to place the data.
length:
The length of the data buffer in bytes. The maximum length is
64 bytes.
Returns
A non-zero value if successful, 0 otherwise. In addition, length is set the
actual number of bytes read.
Notes
None
QuickUsbWriteI2c
Purpose
None
Parameters
hDevice: A HANDLE that was returned from a call to QuickUsbOpen.
address: The device address.
data:
A pointer to the data to send.
length:
The length of the data buffer in bytes. The maximum length is
64 bytes.
Returns
A non-zero value if successful, 0 otherwise.
Notes
None
I2C-Compatible
Port
67