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

Syntax:     COM_HARD(<port>,<expL>)

Arguments:  <port> denotes the interface required to switch on the
            hardware handshake, COM1: (1) or COM2: (2).
            <expL> will be used as a switch where (.T.) switches on,
            and (.F.) switches off the handshake.

Returns:    A logical value.
            This function returns the previous set value (.T.) or (.F.).

Usage:      The size of the buffer is limited.  Software or hardware
            handshakes are normally used in order to avoid a full buffer,
            and hence a loss of characters.  The RTS signal of the
            interface will be used in the operation when using the
            hardware handshake.  If the handshake is switched on (.T.),
            the signal is activated as soon as the buffer is 75 percent
            full.  The RTS signal is released again when the contents of
            the buffer have been reduced to 50 percent or less.

Note:       This function is active with both input and output of data.  If
            hardware handshake is used, RTS should not be affected by
            either COM_RTS() or COM_MCR().

Library:    CT1.LIB


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

Examples:   COM_OPEN(2,1000)                    && COM2: open
            COM_HARD(2,.T.)                     && Hardware handshake
                                                && for port 2



See Also: COM_READ() COM_SEND() COM_SOFT()

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