Your browser does not allow scripts
Please click here to view a static table of contents without scripts
FT_SetResetPipeRetryCount
Return to Introduction  Previous page  Next page
Set the ResetPipeRetryCount.

FT_STATUS
FT_SetResetPipeRetryCount
(FT_HANDLE ftHandle, DWORD dwCount)




Parameters
ftHandle
Handle of the device.
dwCount
Unsigned long containing required ResetPipeRetryCount.




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



Remarks

This function is used to set the ResetPipeRetryCount. ResetPipeRetryCount controls the maximum number of times that the driver tries to reset a pipe on which an error has occurred. ResetPipeRequestRetryCount defaults to 50. It may be necessary to increase this value in noisy environments where a lot of USB errors occur.

Not available in Linux.



Example

This example shows how to set the ResetPipeRetryCount to 100.

FT_HANDLE ftHandle;   // valid handle returned from FT_OpenEx
FT_STATUS ftStatus;
DWORD dwRetryCount;

dwRetryCount = 100;
ftStatus = FT_SetResetPipeRetryCount(ftHandle,dwRetryCount);
if (ftStatus == FT_OK) {
   // ResetPipeRetryCount set to 100
}
else {
   // FT_SetResetPipeRetryCount FAILED!
}