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

   nOldCtrl := tp_ctrldcd(nPort, [nNewCtrl])

   nPort       Serial port number.
   nNewCtrl    New DCD control setting.

   Returns     Original DCD control setting.

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

       0   Ignore DCD.
       1   Require DCD to input or output characters or write to the
           output buffer.

   If nNewCtrl is omitted, tp_ctrldcd() 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_ctrldcd(1, 1)    // Enable DCD handshake on port 1.

See Also: tp_hshk()

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