Line 160... |
Line 160... |
160 |
{ |
160 |
{ |
161 |
ftStatus = FT_GetDeviceInfoDetail(i, &Flags, &Type, &ID, &LocId, SerialNumber, Description, &ftHandleTemp); |
161 |
ftStatus = FT_GetDeviceInfoDetail(i, &Flags, &Type, &ID, &LocId, SerialNumber, Description, &ftHandleTemp); |
162 |
if (ftStatus == FT_OK) |
162 |
if (ftStatus == FT_OK) |
163 |
{ |
163 |
{ |
164 |
printf("Device %d\n", i); |
164 |
printf("Device %d\n", i); |
- |
|
165 |
if (Flags && FT_FLAGS_OPENED) |
- |
|
166 |
{ |
- |
|
167 |
printf(" Description Device is used by another process\n"); |
- |
|
168 |
} |
- |
|
169 |
else |
- |
|
170 |
{ |
165 |
printf(" Description \"%s\"\n", Description); |
171 |
printf(" Description \"%s\"\n", Description); |
166 |
printf(" SerialNumber \"%s\"\n", SerialNumber); |
172 |
printf(" SerialNumber \"%s\"\n", SerialNumber); |
167 |
//printf(" Flags 0x%x\n", Flags); |
173 |
//printf(" Flags 0x%x\n", Flags); |
168 |
//printf(" Type 0x%x\n", Type); |
174 |
//printf(" Type 0x%x\n", Type); |
169 |
//printf(" ID 0x%x\n", ID); |
175 |
//printf(" ID 0x%x\n", ID); |
170 |
printf(" Location 0x%x\n\n", LocId); |
176 |
printf(" Location 0x%x\n", LocId); |
- |
|
177 |
} |
- |
|
178 |
printf("\n"); |
171 |
} |
179 |
} |
172 |
} |
180 |
} |
173 |
|
181 |
|
174 |
// Select one Device and Open It |
182 |
// Select one Device and Open It |
175 |
unsigned int selectedDeviceIndex = 0; |
183 |
unsigned int selectedDeviceIndex = 0; |