Using the QuickUSB Library
QuickUsbWriteCommand
Purpose
Write a block of command values to the high-speed parallel port using the
QuickUSB module.
Parameters
hDevice: A HANDLE that was returned from a call to QuickUsbOpen.
address: A WORD containing the address. This address is the starting
value of the HSPP address bus. If address bit 14 is set (1), then
the address bus will not be driven. If address bit 15 is set (1),
then the address will not be incremented after each write.
data:
A pointer to a buffer containing the data to write to the high-
speed parallel port.
See notes.
length:
A WORD containing the number of bytes to write to the high-
speed parallel port.
See notes.
Returns
A LONG that is non-zero on success, zero (0) on failure.
Notes
•
The maximum length is 64 bytes.
•
The data buffer can receive data values of any type.
•
Commands are transferred over the high-speed parallel port with the
CMD_DATA line set to ‘1’.
•
The address bus behavior for data transfers is defined by the
56
High-Speed Parallel Port