Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Faxual II for CA-Clipper - sersetup http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SerSetup
 Configure serial port
------------------------------------------------------------------------------
 Syntax

    SerSetup(<nPort>, <xBase>, <nIrq>)

 Parameters

    <nPort> is a serial port number.

    <xBase> is the port's I/O base address.  The address can be either a
    number or a string.  A string is interpreted as a hexadecimal number.

    <nIrq> is the port's IRQ number.  Legal values are 2-7 and 9-15.

 Description

    SerSetup() configures a serial port for a nonstandard I/O address or IRQ
    number.  Initially, ports 1 to 4 are configured to match the standard
    COM1 to COM4.

    Default Port Setup
    ----------------------------------------------------------------------
    Port    Address (hex)       IRQ
    ----------------------------------------------------------------------
     1       1016   (3F8)        4
     2        760   (2F8)        3
     3       1000   (3E8)        4
     4        744   (2E8)        3
    ----------------------------------------------------------------------

 Example

    // Set COM3 to address 3E8h and IRQ5.
    SerSetup(3, 1000, 5)

    // The same thing, in hex.
    SerSetup(3, "3E8", 5)

See Also:

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