Lines Matching defs:PID
144 static uint16_t VID, PID;
463 char vid[9], pid[9], rev[5];
492 pid[i] = buffer[16+i];
496 pid[8] = 0;
498 PID:REV \"%8s\":\"%8s\":\"%4s\"\n", vid, pid, rev);
796 static int test_device(uint16_t vid, uint16_t pid)
813 printf("Opening device %04X:%04X...\n", vid, pid);
814 handle = libusb_open_device_with_vid_pid(NULL, vid, pid);
844 printf(" VID:PID: %04X:%04X\n", dev_desc.idVendor, dev_desc.idProduct);
983 // Default to generic, expecting VID:PID
985 PID = 0;
1026 if (!VID && !PID) {
1028 PID = 0x0004;
1033 if (!VID && !PID) {
1035 PID = 0x6025;
1038 // The following tests will force VID:PID if already provided
1042 PID = 0x0268;
1048 PID = 0x0008;
1054 PID = 0x0289;
1068 printf(" Please specify VID & PID as \"vid:pid\" in hexadecimal format\n");
1072 PID = (uint16_t)tmp_pid;
1081 printf("usage: %s [-h] [-d] [-i] [-k] [-b file] [-l lang] [-j] [-x] [-s] [-p] [-w] [vid:pid]\n", argv[0]);
1093 printf("If only the vid:pid is provided, xusb attempts to run the most appropriate test\n");
1120 test_device(VID, PID);