This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Serial Port , Raw Mode using cyg_io_read


Ok. Thanks andrew...

      Is there any function or call to know, howmany bytes available to read in my serial buffer ?. 

Thanks
Prakash


----- Original Message -----
From: Andrew Lunn <andrew@lunn.ch>
Date: Wednesday, July 6, 2005 3:00 pm
Subject: Re: [ECOS] Serial Port , Raw Mode using cyg_io_read

> On Wed, Jul 06, 2005 at 02:35:27PM +0530, Annamalai Prakash wrote:
> > On Wednesday 06 July 2005 02:32 pm, you wrote:
> > > Hi,
> > >
> > > Did you tried to open the /dev/ser0 , /dev/ser1 ? Something like:
> > >
> > > err = cyg_io_lookup( "/dev/ser1", &fd );
> > 
> >  yes, i tried to open ... it was opened...... but i want to make 
> sure, whether 
> > it is RAW Mode or TTY Mode.
> 
> The device does not have modes like in unix. There are different
> devices for each mode. /dev/ser0 is the lowest level and gives you
> direct access to the serial driver. /dev/tty0 is the next level up and
> gives you a basic tty level similar to cooked mode. Then there is
> /dev/termios0 which is layed on top of /dev/tty0.
> 
>        Andrew
> 


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]