Are you using cypress library for Host application development? You can select devices based on VID/PID value.
Can you tell us more about your application so that we can help you out.
Hi, i'm sorry for hand slip to click the "report abuse". YES, I used CYUSB.LIB to create a application in vc++ 6.0 platform, this .lib has a function bool CCyUSBDevice::Open(UCHAR dev) to open different CY7C68013A devices, but i don't know how to sent data to the one device that i want. If the XferData() can know whiche device it shout send to? or someone else function can do it? thanks!
the structure of my design is:
useing application to download firmwire into CY7C68013A's RAM everytime when i open it.
useing Xferdata() to transfer data to CY7C68013A
when firmwire get the data, useing "switch" to decide which function should be called base on the data.
Using below code identify your device number and then thransfer data.
// Look for a device having VID = 0547, PID = 1002
CCyUSBDevice *USBDevice = new CCyUSBDevice(NULL); // Create an instance of CCyUSBDevice
int devices = USBDevice->DeviceCount();
int vID, pID;
int d = 0;
USBDevice->Open(d); // Open automatically calls Close() if necessary
vID = USBDevice->VendorID;
pID = USBDevice->ProductID;
} while ((d < devices ) && (vID != 0x0547) && (pID != 0x1002));