Your browser does not allow scripts
Please click here to view a static table of contents without scripts
FT_RestartInTask
Return to Introduction  Previous page  Next page
Restart the driver's IN task.

FT_STATUS
FT_RestartInTask
(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 restart the driver's IN task (read) after it has been stopped by a call to FT_StopInTask.



Example

This example shows how to use FT_RestartInTask.

FT_HANDLE ftHandle;
FT_STATUS ftStatus;

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

do {
   ftStatus = FT_StopInTask(ftHandle);
} while (ftStatus != FT_OK);

//
// Do something - for example purge device
//

do {
   ftStatus = FT_RestartInTask(ftHandle);
} while (ftStatus != FT_OK);

FT_Close(ftHandle);