21.07.2015 Views

Programming Info D2XXPG31.pdf

Programming Info D2XXPG31.pdf

Programming Info D2XXPG31.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Classic Interface Functions50// allocate storage for list based on numDevs//dev<strong>Info</strong> = (FT_DEVICE_LIST_INFO_NODE*)malloc(sizeof(FT_DEVICE_LIST_INFO_NODE)*numDevs);//// get the device information list//ftStatus = FT_GetDevice<strong>Info</strong>List(dev<strong>Info</strong>,&numDevs);if (ftStatus == FT_OK) {for (int i = 0; i < numDevs; i++) {printf("Dev %d:\n",i);printf(" Flags=0x%x\n",dev<strong>Info</strong>[i].Flags);printf(" Type=0x%x\n",dev<strong>Info</strong>[i].Type);printf(" ID=0x%x\n",dev<strong>Info</strong>[i].ID);printf(" LocId=0x%x\n",dev<strong>Info</strong>[i].LocId);printf(" SerialNumber=%s\n",dev<strong>Info</strong>[i].SerialNumber);printf(" Description=%s\n",dev<strong>Info</strong>[i].Description);printf(" ftHandle=0x%x\n",dev<strong>Info</strong>[i].ftHandle);}}© Future Technology Devices International Ltd. 2005

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!