libftdi Archives

Subject: RE: read buffer question

From: Phillip Vallejo <pvallejo@xxxxxxxxxxxxxxxxxxxxxx>
To: "libftdi@xxxxxxxxxxxxxxxxxxxxxxx" <libftdi@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 19 May 2016 20:45:31 +0000
Ok, thanks.

-----Original Message-----
From: Thomas Jarosch [mailto:thomas.jarosch@xxxxxxxxxxxxx] 
Sent: Thursday, May 19, 2016 1:44 PM
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Subject: Re: read buffer question

Am 19.05.2016 um 01:34 schrieb Phillip Vallejo:
> Is there a way to read how many bytes are sitting in the FTDI read 
> buffer without actually reading the bytes out? A read buffer count?
> 
> I see the protected member FTDI_Context.readbuffer_remaining but that 
> value is only valid after the first byte has been read, ie, ‘remaining’.

as far as I know there's no USB command the read out how many bytes are still 
in the internal buffer of the chip.

The D2XX library uses a background thread to constantly read all available data 
into a memory buffer on the host. That's the reason it can tell you how many 
bytes are in the buffer ;) At least that's my current knowledge about it.

Thomas


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



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