libftdi Archives

Subject: Re: How to retrieve rx/tx queue status?

From: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Cc: emiliano paterlini <epaterlini84@xxxxxxxxxxx>
Date: Thu, 15 Mar 2012 15:37:34 +0100
Hello Emiliano,

On Friday, 9. March 2012 11:36:58 emiliano paterlini wrote:
> Hello,I'm trying to wrap almost all functionalities of the D2XX FTDI's
> closed source library to libftdi.How can I retrieve the status (number
> of bytes in the queue) of the rx/tx queue using libftdi?I cannot find
> specific functions to do this in the API....please help!!! Thank you
> very much!Emiliano Paterlini

The D2XX library uses threads and collects the data into an internal buffer. 
So if you request the number of bytes in the queue, it hands back the number 
of bytes already read.

You can of course emulate this behavior using threads, too.

Thomas

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread