Using the QuickUSB Library
QuickUsbWriteRS232
Purpose
Write a block of characters to the specified QuickUSB serial port.
Parameters
hDevice: A HANDLE that was returned from a call to QuickUsbOpen.
portNum: The serial port number. Serial port 0 (P1) = 0, serial port 1 (P2)
= 1.
data:
A pointer to a buffer containing the data.
length:
The number of characters to write.
Returns
A non-zero value if successful, 0 otherwise.
Notes
•
None
66
RS-232