Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Telepathy Communications Library - <b>tp_ctrlrts()</b> - get or set rts handshake setting http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   tp_ctrlrts() - get or set RTS handshake setting

   nOldCtrl := tp_ctrlrts(nPort, [nNewCtrl])

   nPort       Serial port number.
   nNewCtrl    New RTS control setting.

   Returns     Original RTS control setting.

   Gets or sets the RTS handshake setting.  This setting may be one of:

       0   Turn RTS off.
       1   Turn RTS on.
       2   Turn RTS on normally, off when the input buffer fills up to
           the high-water mark.

   If nNewCtrl is omitted, tp_ctrlrts() just returns the current
   setting.  If nNewCtrl is specified, it changes the setting and
   returns the original value.

   The default setting when a port is opened is 1.

   Example:

       tp_ctrlrts(1, 2)    // Enable RTS handshaking on port 1.

See Also: tp_hshk() tp_lomark() tp_himark()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson