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]

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


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