This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
receive data from a interrupt serial device via callbacks
- From: "Stefan Rosinger" <a_jedi_night4u at gmx dot at>
- To: <ecos-discuss at ecos dot sourceware dot org>
- Date: Sat, 19 Feb 2005 13:45:20 +0100
- Subject: [ECOS] receive data from a interrupt serial device via callbacks
Hi!
I have a question about receiving characters over an interrupt serial port:
Whats the easiest approach for receiving 5 to 10 bytes over this serial
port.
How can i read the char from the port. i tried it with cyg_io_read() but i
am not sure whats happening with my received char
because of the (chan->callback->rcv_char) thing.
Can I buffer my characters in my application. If yes can somebody give me an
example how i can do some buffering in my application?
Do I have to change the serial driver to support block mode reads?
I know, lot of questions, but any help would be nice!
Thanks for help
Have a nice weekend!
Stefan
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss