QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
How do I access various device controls such as How to change carrier detect? |
Ref. No. |
QNX.000009437 |
Category(ies) |
Development |
Issue |
How do I access the Carrier Detect on a serial line or check if the parallel port is busy?
|
Solution |
In QNX4 use qnx_ioctl( ), and in QNX6 use devctl(). These are the functions that provide access to carrier detect status, as well as other device control info like parallel port busy, keyboard scroll lock, etc.
For an example of serial communications in QNX4, the source for modem is posted in the free software archives ( /usr/free).
|
|