Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Library for Clipper - <b>l_comstat()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                 L_COMSTAT()


Syntax:        L_COMSTAT(<expN>)


Purpose:       To initialise the specified local serial communications
               port and to return its status.


Arguments:     <expN> is the serial printer of interest.
               0 = COM1
               1 = COM2
               2 = COM3 etc


Returns:       An integer representing the status of the specified
               printer.

               1 = Data ready.
               2 = Overrun error.
               4 = Parity error.
               8 = Framing error
               16 = Break detected.
               32 = Transmission hold register empty.
               64 = Transmission shift register empty.
               128 = Timed out.


Usage:         Always perform this function to determine if the
               equipment is ready.


Examples:      * Initialise serial port 2
               port = 1
               status = L_COMSTAT(port)


Language:      Assembler

See Also: L_COMREAD() L_COMWRITE() L_COM2LPT() L_LPTINIT()

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