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_ctrlcts()</b> - get or set cts handshake setting http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   tp_ctrlcts() - get or set CTS handshake setting

   nOldCtrl := tp_ctrlcts(nPort, [nNewCtrl])

   nPort       Serial port number.
   nNewCtrl    New CTS control setting.

   Returns     Original CTS control setting.

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

       0   Ignore CTS.
       1   Require CTS to output characters.

   If nNewCtrl is omitted, tp_ctrlcts() 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 0.

   Example:

       tp_ctrlcts(1, 1)    // Enable CTS handshake on port 1.

See Also: tp_hshk()

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