Thread: Termios question

  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    5

    Question Termios question

    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.

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    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
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Alice....
    By Lurker in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 06-20-2005, 02:51 PM
  2. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 05:51 PM
  3. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 12:52 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 01:47 AM