Sample programs, Device driver files – Comtrol RocketPort OS/2 Device Driver User Manual

Page 3

Advertising
background image

Sample Programs

The following sample programs are included on the
RocketPort OS/2 Device Driver diskette and in the
downloadable ZIP file.
Note: C source code is included for all of the following.

These examples were compiled using the Microsoft
6.0 C Compiler and may require modification
before they can be compiled with a different
compiler. In particular, the number and order of
DosDelvOCtl call parameters will be different with
a newer version of the compiler.

Device Driver Files

The following files are included on the RocketPort OS/2
Device Driver diskette and in the downloadable ZIP file:

SETBAUD.EXE

A simple program to change the
baud rate on a port. USAGE:
SETBAUD portname baudrate
<CR>

GETBAUD.EXE

A simple program to check the
current baud rate on a port.
USAGE: GETBAUD portname
baudrate <CR>

SETLINE.EXE

A simple program to set the line
parameters on a port. USAGE:
SETLINE portname <CR>

OS2TERM.EXE

A simple terminal emulation
program. This program sets
baud=9600, line=8N1, flow
control=disabled. USAGE:
OS2TERM portname <CR>

TERM.EXE

Another terminal emulation
program. This one uses the ports
current settings and does not
change any parameters. USAGE:
TERM portname <CR>

OS2MODE.EXE

A program that behaves like the
system "mode" command. See the
help for "mode" for more
information. USAGE: OS2MODE
portname <CR>

SETDFLT.EXE

This routine resets the port to the
default values. USAGE: SETDFLT
portname <CR>

SETHFLO.EXE

This routine sets the DCB to use
RTS/CTS handshaking. USAGE:
SETHFLO portname <CR>

SETSWFLO.EXE

This routine sets the DCB to use
XON/XOFF handshaking. USAGE:
SETSWFLO portname <CR>

RCKT.SYS

The actual driver file itself.

FINDRCKT.EXE

The utility you use to find the I/O
addresses and IRQs assigned to
PCI-bus RocketPort boards.

INSTALL.EXE

A “configurator” program that you
can use to help determine the load
line parameters for ISA-only
installations. This generates a
recommended load line which is
stored in the install.log file, and
which you must manually add to
the config.sys file.

INSTALL.EXE does not edit the
config.sys file directly, and it does
not work if you have PCI-bus
RocketPort boards installed.

Advertising