libftdi Archives

Subject: Getting characters in the buffer

From: Akos Vandra <axos88@xxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Sun, 13 Nov 2011 12:42:40 +0100
Hi!

I am tryingo to use an FT2232 chip in UART mode. I would like to write
a function that reads the queued buffer from the chip, if there are
bytes available, and return with no data if there are no bytes to be
read. (Non-blocking).
To do this I guess I would need some mechanism to test how many bytes
are available. Is there such a funciton in libftdi?

Regards,
  Ákos Vandra

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

Current Thread