Serial Port Programming Part 10 - Reading/Writing Status of Control Lines: DTR/RTS/CTS/DSR

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

Popular posts from this blog

bb.utils.contains yocto

Difference between RDEPENDS and DEPENDS in Yocto

make config vs oldconfig vs defconfig vs menuconfig vs savedefconfig