Check out the "latency timer" functionality.

I am not sure if your device has it.

The datasheet of the FT4232H, says the below:

"Latency Timer. This is really a feature of the driver and is used to as a 
timeout to flush short packets of data back to the PC. The default is 16ms, but 
it can be altered between 0ms and 256ms. At 0ms latency you get a packet 
transfer on every high speed microframe."


> Date: Wed, 20 Jan 2010 14:03:46 +0100
> Subject: Question about ftdi_read_data().
> From: [email protected]
> To: [email protected]
> 
> I started to implement libftdi on Linux. Everything seems to work
> sofar except for one thing.
> 
> It seems that the function ftdi_read_data() blocks till it has
> received the requested amount of bytes.
> I don't like this behaviour, I would like it to return immediately. Is
> it possible to change this behaviour?
> 
> Is it possible to get the number of bytes in the receivebuffer so that
> I can use this number in the call
> to ftdi_read_data()?
> 
> In my program, ftdi_read_data() is called from a timer so a
> non-blocking read-function is what I need.
> Using threads is not an option.
> 
> Regards,
> 
> Teunis
> 
> --
> libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
> To unsubscribe send a mail to [email protected]   
> 
                                          
_________________________________________________________________
Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
http://clk.atdmt.com/GBL/go/196390706/direct/01/

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [email protected]   

Reply via email to