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

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

Arguments:  <port> port determines which serial interface will be changed
            or queried, COM1: (1) or COM2: (2).
            <expL> is used where (.T.) will activate the DTR signal, and
            (.F.) will deactivate it.

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

Usage:      This function can be used to determine the status of the
            DTR signal.  If no second argument is supplied, then the
            status of the DTR will not be changed.

Note:       The function COM_CLOSE() will set the DTR inactive.  DTR
            is automatically set to active with COM_OPEN().

Library:    CT1.LIB


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

Examples:   buff_size = 4000                    && 4000 byte buffer
            com_ok = COM_OPEN(1,buff_size)      && COM1: open

            IF com_ok
               COM_DTR(1,.T.)                   && Active DTR
                                                && for port 1
               ...

            ENDIF



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

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