This function takes (a null initialized or an already initialized) USB device list, (re-)creates a USB device list, searches for Trenz Electronic USB FX2 devices (Cypress driver derivative and VID = 0xbd0, PID=0x0300) devices and counts them.
This function returns the number of Trenz Electronic USB FX2 devices attached to the USB bus of the host computer.
Code Block | ||
---|---|---|
| ||
public static int TE_USB_FX2_ScanCards(ref USBDeviceList USBdevList) |
Your application program shall call this function like this:
Code Block | ||
---|---|---|
| ||
TE_USB_FX2.TE_USB_FX2.TE_USB_FX2_ScanCards(ref USBdevList); |
Code Block | ||
---|---|---|
| ||
ref USBDeviceList USBdevList |
USBDeviceList is a type defined in CyUSB.dll.
USBdevList is the list of devices served by the CyUSB.sys driver (or a derivative like TE_USB_FX2.sys). This parameter is passed by reference (ref). See page 139-140 of CyUSB.NET.pdf (Cypress CyUSB .NET DLL Programmer's Reference).
int : integer type.
This function returns the number of USB devices attached to the host computer USB bus.