libftdi Archives

Subject: Re: D2XX

From: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Tue, 7 Apr 2009 16:50:29 +0200
Hi Florian,

On Monday, 6. April 2009 17:33:32 Florian Beier wrote:
> Actually I do not  understand, what the set_latency_timer does. I
> thougth the ftdi_read_data would "wait" the given latency time, till
> something is in the buffer. But even if I do set the latency to 255,
> and nothing is in the buffer, the READ returns in 1-2ms. What is the
> unit of the param latency?

Good question, I guess it's "ms"?
Does the D2XX documentation say anything about it?

> My second question is: Does anyone know why an FT_Read with FT's D2XX
> lib does return so fast? (I measured approx. 0.01ms compared to my 1ms
> with the ftdi_read_data.)

D2XX uses threads to constantly poll and read the device.
The read function just fetches the data from the internal buffer AFAIK.

Regards,
Thomas


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

Current Thread