If the user is interested in finding out the status of Control Lines:DTR/DSR/RTS/CTS. He can use 'TIOCMGET' control code in the ioctl call.
'TIOCMSET' control code in ioctl allows you to set/clear DTR and RTS lines as they are output.
Example Code:
Output:
Comments
Post a Comment