I want to get data from serial port, but my program can¡¯t wait all the time
for data to come. It must use a event-driven way . How can I know when there
is one character ready in the input buffer. Do I need to get the message
from the resource manager devc-8250?
I want to get data from serial port, but my program can’t wait all the time
for data to come. It must use a event-driven way . How can I know when there
is one character ready in the input buffer. Do I need to get the message
from the resource manager devc-8250?
A couple choices:
select()
io_notify()
You may also find readcond() to be of possible interest.
-David
QNX Training Services
I do not answer technical questions by email.