Using the QuickUSB Library
High-Speed Parallel Port
QuickUsbReadCommand
Purpose
Read a block of command values from 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 read.
data:
A pointer to a buffer in which to place data read from the high-
speed parallel port.
See notes.
length:
A PWORD pointing to a WORD containing the number of bytes to
read from the high-speed parallel port on input and the number
of bytes read on return.
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 contain 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
High-Speed Parallel Port
55