Application Note
27 of 42
001-65209 Rev.*I
2021-03-19
Getting Started with FX2LP™
The Windows Side
6
The Windows Side
USB Control Center
and
BULKLOOP_VCS
Windows
applications to test the bulkloop hex file created by the Keil tools. This section gives an overview of tools from
Cypress and others that can be used to create Windows applications that communicate with FX2LP-based
devices.
Driver: cyusb.sys, cyusbfx1_fx2lp.inf
Cypress Application Library: CyUSB.dll
PC
Figure 28
Windows .NET Apps Communicate with FX2LP using a Cypress Driver and Library
6.1
Cypress USB Driver
The Cypress USB driver (
CyUSB.sys
) is a robust high-performance Windows driver used for host
communication with a USB-connected target. This driver is installed on the host PC as part of the EZ-USB FX2LP
DVK installation, and in the accompanying zip file in the
Windows Driver
folder. The driver comes in binary
form and can be distributed with your FX2LP-based devices.
•
CyUSB.sys
is a kernel mode USB function driver, which is capable of communicating with any USB 2.0
compliant devices. The driver is general-purpose, compatible with primitive USB commands, but does not
implement higher-level commands specific to USB device classes.
•
The driver is ideal for communicating with a vendor-specific device from a custom USB application or for
sending low-level USB requests to any USB device for experimental or diagnostic applications.
•
Operating systems/platforms supported by the driver are Windows XP, Windows Vista, and Windows 7, on
both 32- and 64-bit versions.
If you modify the
.inf
file, for example, to include your company’s VID and/or
PID, or to include custom-
descriptive text strings, Cypress recommends that you obtain “WHQL” certification from Microsoft
(WHQL
stands for “Windows Hardware Quality Labs”.) With this Windows Logo certification, you do not get a warning
message when the driver installs.
Appendix E: Adding Custom VID and PID to the .inf File
custom VID/PID to the
inf
file.
Further Reading
For more information on
CyUSB.sys
, refer to
CyUSB.pdf
present in the
Cypress Suite USB\Driver
folder (after
Cypress Suite USB installation).
6.1.1
Driver/Library Alternatives
Other Windows drivers and libraries are available. WinUSB from Microsoft (details at the
site) comprises a
kernel-mode driver (
Winusb.sys
) and a user-mode dynamic link library (
Winusb.dll
) that exposes WinUSB
functions. By using these high-level functions, you can manage USB devices with user-mode software.
Winusb.sys
is supported on Windows XP, Windows Vista, Windows 7, and Windows 8. Like the Cypress driver, it
requires an accompanying
.inf
file for installation.