Using the QuickUSB Library
QuickUsbWriteFpgaData
Purpose
Sends FPGA configuration data to the FPGA using the QuickUSB FPGA
configuration port.
Parameters
hDevice: A HANDLE that was returned from a call to QuickUsbOpen.
data:
A PBYTE pointing to a BYTE buffer containing the FPGA
configuration data.
See notes.
length:
A ULONG containing the length of the data in bytes.
See notes.
Returns
A LONG that is non-zero on success, zero (0) on failure.
Notes
•
The maximum data length is 64.
•
A call to QuickUsbStartFpgaConfiguration must precede FPGA
configuration.
QuickUsbIsFpgaConfigured
Purpose
Check to see if the FPGA is configured.
Parameters
hDevice: A HANDLE that was returned from a call to QuickUsbOpen.
isConfigured: A PWORD pointing to a WORD in which to write the
configuration status of the FPGA connected to the QuickUSB
FPGA configuration port. 1 = the FPGA is configured
(CONF_DONE = ‘1’), 0 = the FPGA is not configured
(CONF_DONE = ‘0’).
Returns
A LONG that is non-zero on success, zero (0) on failure.
Notes
•
The value of the the CONF_DONE line is returned as bit 0 of
'isConfigured'.
54
FPGA Configuration