Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Books 1-3 - <b>com_dsr()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 COM_DSR()
 Queries the Data Set Ready (DSR) status
------------------------------------------------------------------------------
 Syntax

     COM_DSR(<nComPort>) --> lDSRActive

 Argument

     <nComPort>  Designates the port (1 to 4) on which DSR is tested.

 Returns

     A return of .T. indicates that DSR is active (MSR Bit 6 = 1).  A return
     of .F. indicates that DSR is inactive (MSR Bit 6 = 0).

 Description

     COM_DSR() lets you check the Data Set Ready signal within a program.

 Note

     .  If Delta-DSR is required, you must use COM_MSR().

 Example

     Many modems give an active DSR as soon as a connection is established:

     DO WHILE .NOT. COM_DSR(1)            // Wait for DSR (Call)
        * ...
     ENDDO

     ? "Call recognized."


See Also: COM_MSR()

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