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

Syntax:     COM_RTS(<port>[,<expL>])

Arguments:  <port> denotes on which serial interface the RTS signal will
            be tested, COM1: (1) or COM2: (2).
            [<expL>] is used as a switch, activating the RTS signal at
            (.T.) and deactivating it at (.F.).

Returns:    A logical value.
            Corresponds to the condition of the RTS signal before the
            new setting.
            (.T.) corresponds to RTS active.     (MSR Bit 1=1)
            (.F.) corresponds to RTS inactive.   (MSR Bit 1=0)

Usage:      This function can be used to determine and interrogate the
            condition of the Request To Send signal (RTS).  If no
            second argument is passed the condition of the RTS will not be
            changed.

Note:       The COM_CLOSE() function will reset RTS (inactive) but
            RTS does not automatically become active when
            COM_OPEN() is called.

Library:    CT1.LIB


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

Examples:   COM_RTS(2,.T.)                      && Request to send on port 2

            DO WHILE .NOT. COM_CTS(2)

            ENDDO

            COM_SEND(2, "The quick brown fox" + ;
                        "jumps over the lazy dog")



See Also: COM_CLOSE() COM_MCR() COM_OPEN()

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