Programming Info D2XXPG31.pdf
Programming Info D2XXPG31.pdf
Programming Info D2XXPG31.pdf
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Classic Interface Functions442.32 FT_StopInTaskStops the driver's IN task.FT_STATUS FT_StopInTask (FT_HANDLE ftHandle)ParametersftHandleHandle of the device.Return ValueFT_OK if successful, otherwise the return value is an FT error code.RemarksThis function is used to put the driver's IN task (read) into a wait state. It can be used in situationswhere data is being received continuously, so that the device can be purged without more databeing received. It is used together with FT_RestartInTask 45 which sets the IN task running again.ExampleThis example shows how to use FT_StopInTask.FT_HANDLE ftHandle;FT_STATUS ftStatus;ftStatus = FT_Open(0, &ftHandle);if(ftStatus != FT_OK) {// FT_Open failedreturn;}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);© Future Technology Devices International Ltd. 2005