libftdi Archives

Subject: GetRxBytesAvailable equivalent in libftdi

From: cortical <farhanbaluch@xxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Fri, 7 Sep 2012 17:17:46 -0700 (PDT)
Hi, 

I am trying to port some C# code based on the ftdid2xx library to C++ under
linux using libftdi. The windows code uses a function "GetRxBytesAvailable",
to poll the device and wait till a specific number of bytes are in the
buffer then goes ahead and reads them with the Read function. 

I am wondering if there is an equivalent function or set of functions in
libftdi to accomplish this checking of the bytes available before actually
reading them. If not can anyone enlighten me on how something like this
could be accomplished?

thanks
cortical



--
View this message in context: 
http://libftdi.141977.n3.nabble.com/GetRxBytesAvailable-equivalent-in-libftdi-tp4025075.html
Sent from the libFTDI mailing list archive at Nabble.com.

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

Current Thread