68013 software problems

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable
        I tried to iterate through the UsbDeviceList but have no success because the List is empty (I cannot understand why) .   
The    usbDevices.Count always be 0 whatever the dev-Board is pluged in or not .   
   
pls help ~~   
   
public Form1()   
{   
InitializeComponent();   
   
// Setup the callback routine for updating the UI   
updateUI = new UpdateUICallback(StatusUpdate);   
   
// Setup PnP event handling   
evHandler = new App_PnP_Callback(PnP_Event_Handler);   
   
// Create a list of CYUSB devices   
    usbDevices = new USBDeviceList(CyConst.DEVICES_CYUSB, evHandler);   
   
setDevice();   
}   
   
public void setDevice()   
{   
if (usbDevices.Count > 0)   
loopDevice = usbDevices[0x0547, 0x0080] as CyUSBDevice;   
   
StartBtn.Enabled = (loopDevice != null);   
   
if (loopDevice != null)   
Text = loopDevice.FriendlyName;   
else   
Text = "Bulkloop - no device";   
   
// Set the in and out endpoints per the selected radio buttons.   
EptPair1Btn_Click(this, null);   
}   
0 Likes
1 Reply