Using the QuickUSB Library
Addr Name
Description
Values
‘1111’ = EP7FF
17 SETTING_VERSIONSPEED Returns the CY7C68013
hardware revision and USB
bus speed.
MSB= Hardware revision
Bits 15-8:
00000000=CY7C68013 Rev A/B
00000001=CY7C68013A Rev A
00000010=CY7C68013 Rev C/D
00000100=CY7C68013 Rev E
LSB= USB bus speed
Bit 7:
0=Full Speed (12Mbps)
1=High Speed (480Mbps)
Bit 6-0: Reserved for future use
Table 10 - QuickUSB Settings
QuickUsbReadSetting
Purpose
To read QuickUSB module settings.
Parameters
hDevice: A HANDLE that was returned from a call to QuickUsbOpen.
address: A WORD containing the setting address (number)
setting: A PWORD pointing to a variable in which to place the value of
the setting if successful.
Returns
A LONG that is non-zero and the setting value in ‘setting’ if successful, zero
(0) otherwise.
Notes
None.
QuickUsbWriteSetting
Purpose
To write QuickUSB module settings.
Parameters
hDevice: A HANDLE that was returned from a call to QuickUsbOpen.
address: A WORD containing the setting address.
setting:
A WORD containing the new setting value.
Returns
A LONG that is non-zero on success, zero (0) on failure.
Notes
None
QuickUSB
Settings
51