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_ring()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 COM_RING()
 Queries the ring line
------------------------------------------------------------------------------
 Syntax

     COM_RING(<nComPort>) --> lActiveRing

 Argument

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

 Returns

     A return of .T. indicates that the ring line is active (MSR bit-7 = 1).
     A return of .F. indicates that the ring line is inactive (MSR bit-7 =
     0).

 Description

     COM_RING() lets you check the ring line of a port from within a program.

 Note

     .  When TERI (Trailing edge ring) is required, use the COM_MSR()
        function.

 Example

     Modems generally show the ring signal of an incoming call.  This does
     not mean that a trouble free connection has been established.

     DO WHILE .NOT. COM_RING(1)            // Wait for call (RING)
        * ...
     ENDDO

     ?  "Call detected..."


See Also: COM_MSR()

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