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_dsr()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
COM_DSR()

Syntax:     COM_DSR(<port>)

Arguments:  <port> Will determine the interface for which the DSR will be
            tested, COM1: (1) or COM2: (2).

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

Usage:      COM_DCD() provides a simple method to check the Data
            Set Ready (DSR) signal within a program.

Note:       Please use COM_MSR() if Delta-DSR is required.

Library:    CT1.LIB


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

Examples:   * Most modems will 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