libftdi Archives

Subject: Re: Any exported way to set read timeout or query receive buffer?

From: bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Thu, 20 Dec 2018 15:08:42 +0100
Berni Joss writes:
> >> is there is something pending in the read buffer
> I check the readbuffer_remaining field of the ftdi_context struct [1] returned
> by ftdi_new() [2].
> 
> >> a way to set the read timeout via libftdi.
> The same ftdi_context struct also has a field usb_read_timeout [3] .. but I
> have not used that one so far.
> There is also a timeout inside the ftdi IC, which is called latency timer,
> which you set with ftdi_set_latency_timer() [4]
> 
Thanks for the hint.

Seasons greeting!
-- 
Uwe Bonnes                bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 1623569 ------- Fax. 06151 1623305 ---------

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

Current Thread