Does termios support TOGGLE RTS mode? (i.e RTS line will be high if bytes are available for transmission. After all buffered bytes have been sent, the RTS line will be low). There are CRTSCTS flag but I'm not sure if this is the right mode.
Printable View
Does termios support TOGGLE RTS mode? (i.e RTS line will be high if bytes are available for transmission. After all buffered bytes have been sent, the RTS line will be low). There are CRTSCTS flag but I'm not sure if this is the right mode.
I'd say that the CRTSCTS is the right flag to manipulate for this. Although I expect that you MAY find that RTS is being manipulated more than once for a packet of data - that would depend both on the hardware and the software being used. RTS would be held active if there is data to be sent by the UART - if you have software that doesn't load up the UART until the previous data has been fully sent, the UART may briefly make RTS inactive before it goes active again.
--
Mats