Using the QuickUSB Library
QuickUsbGetFirmwareVersion
Purpose
Determine the version of the QuickUSB Firmware is currently in the
QuickUSB Module.
Parameters
major:
A PWORD pointing to variable in which to place the major
version number.
minor:
A PWORD pointing to variable in which to place the minor
version number.
build:
A PWORD pointing to variable in which to place the build
number.
Returns
A LONG that is non-zero on success, zero (0) on failure.
Notes
•
None
QuickUsbGetLastError
Purpose
Return extended error information for the last API call that returned a
value of FALSE (0).
Parameters
error:
A PLONG pointing to a variable in which to place the error code.
Returns
A LONG containing 1.
Notes
Error
Code
Error Description
0 No
error
1
Out of memory. Please free some memory and try again.
2
Cannot open module.
3
Cannot find specified QuickUSB module. Please check the specified module name.
4
IOCTL failed. Caused when an error is returned by the QuickUSB driver to the
QuickUSB Library.
5
Cannot read or write data length of zero or greater than 16 megabytes.
Cannot read or write I2C or SPI data length of zero or greater than 64 bytes. Try
breaking the transfer up into smaller blocks.
6
Timeout occurred while attempting to read or write data.
7
This function is not supported by the version of the QuickUSB driver you are using.
Please update your driver to the latest version.
8
I2C bus error.
9
No ACK received from I2C device.
10
An I2C slave device is holding SCL low.
11
Timeout on the I2C bus.
Table 9 - QuickUsbGetLastError Error Codes
44
QuickUSB Base API