FTID_STATUS
|
FTID_GetChipIDfromHandle
|
(FT_HANDLE Handle, LPDWORD lpdwChipIDBuffer)
|
Parameters
Handle
|
Valid handle 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_INVALID_HANDLE
FTID_DEVICE_NOT_FOUND
FTID_PASSED_NULL_POINTER
FTID_INVALID_RHANDLE
FTID_IO_ERROR
Remarks
The ftHandle parameter is a valid FT232R or FT245R handle returned from the D2XX functions FT_Open or FT_OpenEx. If the handle is for a different device type or is not a valid handle, the function will return FTID_INVALID_RHANDLE. The device handle must be closed using the D2XX FT_Close function when communication with the device is complete.
Example
FT_HANDLE Handle;
FT_STATUS ftStatus;
FTID_STATUS Status = FTID_SUCCESS;
DWORD ChipID = 0;
ftStatus = FT_Open(0, &Handle);
if(ftStatus != FT_OK) {
// FT_Open failed
return;
}
Status = FTID_GetDeviceChipID(Handle, &ChipID);
if(ftStatus != FT_OK) {
// Failed to get ChipID
return;
}
FT_Close(Handle);