This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Serial I/O read
On Mon, Sep 24, 2001 at 01:23:46PM -0400, Greg Marsden wrote:
> Is there a way that I can request a read of a block of
> characters from a serial port and have the read function
> return when it has between 1 and blockLen characters.
I recently implimented this in my custom serial driver and
submitted a description of how to do it in the standard serial
driver (it's only a few lines of code):
http://sources.redhat.com/ml/ecos-discuss/2001-08/msg00521.html
I don't know if anybody has implimented it yet or not.
> Most Unix and Win32 api's support this mode, Ecos seems to wait
> until a full buffer is available or it returns immediately with
> no characters in non blocking mode.
--
Grant Edwards
grante@visi.com