![Dini Group DN9002K10PCI User Manual Download Page 82](http://html1.mh-extra.com/html/dini-group/dn9002k10pci/dn9002k10pci_user-manual_2505740082.webp)
H A R D W A R E
This section will describe the software interface required to communicate to the
DN9002K10PCI. In addition to reading this section, you may chose to modify the provided
software (USB Controller and AETest_usb). The source code for these programs is on the user
CD. These programs collectively implement all of the available controls on the
DN9002K10PCI.
6.1
Connecting to the DN9002K10PCI
Depending on the operating system, there are different methods of obtaining a software handle
to the DN9002K10PCI in order to access it from software.
6.1.1
Windows XP
What driver is this? It’s the EzUSB driver.
HANDLE handle = CreateFile(“\\\\.\\Ezusb-0”, GENERIC_WRITE,
FILE_SHARE_WRITE,
NULL,
OPEN_EXISTING,
0, NULL);
The “EzUsb-0” device name is registered with Windows when installing the EzUSB device
driver. The .ini file provided with the driver causes the driver to be assigned to any USB device
with VendorID=0x1234 and ProductID=0x1234.
The HANDLE object returned by CreateFile is suitable for use with DeviceIoControl().
6.1.2
Windows Vista
Testing was not complete at print time. [email protected]
6.1.3
Linux
To use USB in Linux, use the provided usbdrvlinux.c file provided on the user CD in
AETest_usb/driver
Connecting to the device occurs using the driver’s usb_open function.
int handle = usb_open(0x1234, 0x1234, 0);
6.1.4
Communication
The USB interfaces that the DN9002K10PCI presents are separated into two types: The
Vendor requests, and the Bulk Transfers. All other types of USB transactions are not supported.
The vendor requests are low-bandwidth control signals used for controlling the board settings.
The Bulk Transfers are used for configuring and reading back FPGAs and reading and writing
to the main Bus interface.
6.2
Vendor Requests
Most of the “control” functions available over USB are accomplished using a “vendor request”.
Programming a USB vendor request is out of the scope of this document, but you can copy the
code provided in the USB Controller program.
DN9002K10PCI User Guide
www.dinigroup.com
72
Summary of Contents for DN9002K10PCI
Page 1: ...LOGIC Emulation Source UserGuide DN9002K10PCI ...
Page 3: ......
Page 34: ......
Page 46: ...C O N T R O L L E R S O F T W A R E DN9002K10PCI User Guide www dinigroup com 36 ...
Page 150: ......