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

   nOldCtrl := tp_ctrldsr(nPort, [nNewCtrl])

   nPort       Serial port number.
   nNewCtrl    New DSR control setting.

   Returns     Original DSR control setting.

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

       0   Ignore DSR.
       1   Require DSR to output characters.

   If nNewCtrl is omitted, tp_ctrldsr() 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_ctrldsr(1, 1)    // Enable DSR handshake on port 1.

See Also: tp_hshk()

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