libftdi Archives

Subject: Re: Re: Clear the ft2232h output fifo

From: Rogier Wolff <R.E.Wolff@xxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Fri, 28 Sep 2012 10:18:18 +0200
On Fri, Sep 28, 2012 at 10:13:27AM +0200, Thomas Jarosch wrote:
> On Friday, 28. September 2012 10:09:29 Rogier Wolff wrote:
> > On Fri, Sep 28, 2012 at 09:33:55AM +0200, Thomas Jarosch wrote:
> > > Hi Thomas
> > > 
> > > On Friday, 28. September 2012 09:07:06 Thomas Heller wrote:
> > > > So, the question is:  Is it possible to clear the ft2232h output fifo?
> > > 
> > > ftdi_usb_purge_tx_buffer() will do the job.
> > 
> > Will this purge the buffer on the chip, or just the buffers in the PC?
> 
> For the TX queue, we don't do buffering in libftdi.
> So it just sends the purge request to the chip.

Ah! Good. :-)

Last I looked at the code there was a 4k buffer in the library. Might
have been a different library. Might have been older version. I don't
know.

        Roger. 

-- 
** R.E.Wolff@xxxxxxxxxxxx ** http://www.BitWizard.nl/ ** +31-15-2600998 **
**    Delftechpark 26 2628 XH  Delft, The Netherlands. KVK: 27239233    **
*-- BitWizard writes Linux device drivers for any device you may have! --*
The plan was simple, like my brother-in-law Phil. But unlike
Phil, this plan just might work.

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

Current Thread