CT_OUTBYTE

 OUTBYTE()
 Sends a byte to a port
------------------------------------------------------------------------------
 Syntax

     OUTBYTE(<nPort|cHexPort>,<nOutByte|cHexOutByte>)
         --> lSuccessful

 Arguments

     <nPort|cHexPort>  Designates a port address to which you can pass a
     byte.  This value can be a decimal integer or hexadecimal string.

     <nOutByte|cHexOutByte>  Designates the byte passed to the specified
     port.  This value can be a decimal integer or hexadecimal string.

 Returns

     OUTBYTE() returns .T. when the operation is successfully completed.  A
     return value of .F. indicates a parameter error.

 Description

     Clipper Tools always attempts to offer finished solutions at the
     highest-possible level for such standard hardware as a serial interface
     port..  However, if highly specialized systems and their ports are to
     receive data from Clipper, use OUTBYTE() or OUTWORD().

 Note

     .  The function does not determine if a port is available, or if
        you cannot write to it.

 Examples

     Transfer a byte to the fifth port address of the first serial interface
     port.  This is only an example, since Clipper Tools has special
     serial interface port functions.

     .  With a decimal parameter:

        ? OUTBYTE(1020, 1)          // 5th port COM1, DTR On

     .  With a hexadecimal parameter:

        ? OUTBYTE("3FC", 0)         // 5th port COM1, DTR Off

See Also: INBYTE() OUTWORD()

 

Tools – PEEK/POKE Functions

Introduction PEEK/POKE Functions
INBYTE()   Reads an 8 byte from a port
INWORD()   Reads in a 16-bit word from a port
OUTBYTE()  Sends a byte to a port
OUTWORD()  Sends a 16-bit word to a port
PEEKBYTE() Reads a byte from memory
PEEKSTR()  Reads a byte sequence from memory
PEEKWORD() Reads a 16-bit word from memory
POKEBYTE() Writes a byte to memory
POKEWORD() Writes a 16-bit word to memory