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 Functions52This example shows how to call FT_GetDevice<strong>Info</strong>Detail.FT_STATUS ftStatus;FT_HANDLE ftHandleTemp;DWORD numDevs;DWORD Flags;DWORD ID;DWORD Type;DWORD LocId;char SerialNumber[16];char Description[64];//// create the device information list//ftStatus = FT_CreateDevice<strong>Info</strong>List(&numDevs);if (ftStatus == FT_OK) {printf("Number of devices is %d\n",numDevs);}//// get information for device 0//ftStatus = FT_GetDevice<strong>Info</strong>Detail(0, &Flags, &Type, &ID, &LocId, SerialNumber,Description, &ftHandleTemp);if (ftStatus == FT_OK) {printf("Dev 0:\n");printf(" Flags=0x%x\n",Flags);printf(" Type=0x%x\n",Type);printf(" ID=0x%x\n",ID);printf(" LocId=0x%x\n",LocId);printf(" SerialNumber=%s\n",SerialNumber);printf(" Description=%s\n",Description);printf(" ftHandle=0x%x\n",ftHandleTemp);}© Future Technology Devices International Ltd. 2005

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

Saved successfully!

Ooh no, something went wrong!