Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21611 Discussions

problem open DeviceDescriptor on pc coding

Altera_Forum
Honored Contributor II
1,088 Views

Hello everyone,  

 

this is code snippets for my pc coding using libusb-win32.  

 

for (bus = usb_get_busses(); bus; bus = bus->next)  

{  

for (dev = bus->devices; dev; dev = dev->next)  

{  

if (dev->descriptor.idVendor == 0x0471)  

{  

udev = usb_open(dev);  

printf ("Success opening!\n");}  

else  

printf("can't open descriptor.idVendor == 0x0471\n");  

}  

}  

 

the 0x0471 is define in my firmware coding where deviceDescriptor[4]=0x0471;  

For my pc coding, it can't open dev->descriptor.idVendor == 0x0471;  

what shall i do to make it success open descriptor.idVendor 0x0471? As my pc coding is stuck here. 

 

Any help will be very much appreciated!!  

 

Thanks and regards,  

Summer
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
384 Views

Please do not multipost your message

0 Kudos
Reply