Your browser does not allow scripts
Please click here to view a static table of contents without scripts
FT_ResetPort
Return to Introduction  Previous page  Next page
Send a reset command to the port.

FT_STATUS
FT_ResetPort
(FT_HANDLE ftHandle)
 



Parameters
ftHandle
Handle of the device.




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



Remarks

This function is used to attempt to recover the port after a failure. It is not equivalent to an unplug-replug event.

Not available in Windows CE and Linux.



Example

This example shows how to reset the port.

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

ftStatus = FT_ResetPort(ftHandle);
if (ftStatus == FT_OK) {
   // Port has been reset
}
else {
   // FT_ResetPort FAILED!
}