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.

Extended API Functions664.1 FT_GetLatencyTimerGet the current value of the latency timer.FT_STATUS FT_GetLatencyTimer (FT_HANDLE ftHandle, PUCHAR pucTimer)ParametersftHandlepucTimerHandle of the device.Pointer to unsigned char to store latency timer value.Return ValueFT_OK if successful, otherwise the return value is an FT error code.RemarksIn the FT8U232AM and FT8U245AM devices, the receive buffer timeout that is used to flushremaining data from the receive buffer was fixed at 16 ms. In all other FTDI devices, this timeoutis programmable and can be set at 1 ms intervals between 2ms and 255 ms. This allows thedevice to be better optimized for protocols requiring faster response times from short data packets.ExampleHANDLE ftHandle;FT_STATUS ftStatus;UCHAR LatencyTimer;ftStatus = FT_Open(0, &ftHandle);if(ftStatus != FT_OK) {// FT_Open failedreturn;}ftStatus = FT_GetLatencyTimer(ftHandle, &LatencyTimer);if (ftStatus == FT_OK) {// LatencyTimer contains current value}else {// FT_GetLatencyTimer FAILED!}FT_Close(ftHandle);© Future Technology Devices International Ltd. 2005

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

Saved successfully!

Ooh no, something went wrong!