Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Clipper Tools One Guide - <b>com_ring()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
COM_RING()

Syntax:     COM_RING(<port>)

Arguments:  <port> denotes on which serial interface RING signal is to
            be tested, COM1: (1) or COM2: (2).

Returns:    A logical value.
            (.T.) corresponds to RING active.     (MSR Bit 6=1)
            (.F.) corresponds to RING inactive.   (MSR Bit 6=0)

Usage:      COM_RING() provides a simple facility to check the RING
            signal of the serial interface within a program.

Note:       Please refer to the COM_MSR(), if the TERI (change
            of edge at the RING signal) information is required.

Library:    CT1.LIB


--------------------------------- Example ------------------------------

Examples:   * Normally modems having the RING signal will
            * indicate an incoming call.  This does not
            * yet 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