21.07.2015 Views

Programming Info D2XXPG31.pdf

Programming Info D2XXPG31.pdf

Programming Info D2XXPG31.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Classic Interface Functions462.34 FT_ResetPortSend a reset command to the port.FT_STATUS FT_ResetPort (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 attempt to recover the port after a failure. It is not equivalent to an unplugreplugevent.Not available in Windows CE and Linux.ExampleThis example shows how to reset the port.FT_HANDLE ftHandle;FT_STATUS ftStatus;// valid handle returned from FT_OpenExftStatus = FT_ResetPort(ftHandle);if (ftStatus == FT_OK) {// Port has been reset}else {// FT_ResetPort FAILED!}© Future Technology Devices International Ltd. 2005

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!