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

         Installs a Serial Comunications System

    Syntax:

         ComInst( nPort ) -> nError

         nPort : COM port. 1=COM1, 2=COM2, 3=COM3 and 4=COM4

    Description:

         ComInst() installs a Serial Comunications System and initializes
         comunication buffers.

         DANGER
         The interrupts manager must be uninstalled by the ComUnInst()
         function before to leave the operating system. In other case
         it will have a general break down of the system.

    Return:

         A number with the next meaning

           0    Ok
           1    It was specified a port out of the range 1-4
           2    There's no UART for the specified port
           3    The manager was already installed

    Example:

         ComInst( 2 )           // installs the manager on COM2

See Also: ComUnInst()

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