Your browser does not allow scripts
Please click here to view a static table of contents without scripts
FTID_GetDeviceChipID
Return to Introduction  Previous page  Next page
Returns the FTDIChip-ID of an available FT232R or FT245R device.

FTID_STATUS
FTID_GetDeviceChipID
(DWORD dwDeviceIndex, LPDWORD lpdwChipIDBuffer)




Parameters
dwDeviceIndex
Index of the FT232R or FT245R device.
lpdwChipIDBuffer
Pointer to buffer that receives the FTDIChip-ID for the FT232R or FT245R device.




Return Value
FTID_SUCCESS if successful, otherwise the return value is one of the following FTID error codes:

   FTID_DEVICE_NOT_FOUND
   FTID_INVALID_DEVICE_NAME_INDEX
   FTID_IO_ERROR



Remarks
The FTID_GetNumDevices function can be used to obtain the number of available FT232R and FT245R devices connected to a system. The device index is 0 based.



Example

FTID_STATUS Status = FTID_SUCCESS;
DWORD ChipID = 0;

Status = FTID_GetDeviceChipID(0, &ChipID);