Your browser does not allow scripts
Please click here to view a static table of contents without scripts
FT_SetDeadmanTimeout
Return to Introduction  Previous page  Next page
This function allows the maximum time in milliseconds that a USB request can remain outstanding to be set.

FT_STATUS
FT_SetDeadmanTimeout
(FT_HANDLE ftHandle, DWORD dwDeadmanTimeout)




Parameters
ftHandle
Handle of the device.
dwDeadmanTimeout
Deadman timeout value in milliseconds. Default value is 5000.



Return Value
FT_OK if successful, otherwise the return value is an FT error code.   



Remarks
The Deadman timeout is referred to in AN232B-10 Advanced Driver Options as the USB timeout. It is unlikely that this function will be required by most users.


Example

This example shows how to call FT_SetDeadmanTimeout.

FT_HANDLE ftHandle;
FT_STATUS status;
DWORD dwDeadmanTimeout = 6000;


ftStatus = FT_Open(0, &ftHandle);
if(ftStatus != FT_OK) {
   // FT_Open failed
   return;
}

ftStatus = FT_SetDeadmanTimeout(ftHandle,dwDeadmanTimeout);
if (ftStatus == FT_OK) {
   // Set Deadman Timer to 6 seconds
}
else {
   // FT_SetDeadmanTimeout FAILED!
}

FT_Close(ftHandle);