Description

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.

Use of the code

Declaration

public static int TE_USB_FX2_ScanCards(ref USBDeviceList USBdevList)

Function Call

Your application program shall call this function like this:

TE_USB_FX2.TE_USB_FX2.TE_USB_FX2_ScanCards(ref USBdevList);

Parameters

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).

Return Value

int : integer type.

This function returns the number of USB devices attached to the host computer USB bus.

  • No labels