home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 3 Comm
/
03-Comm.zip
/
IOCTLP.ZIP
/
README.TXT
< prev
Wrap
Text File
|
1993-01-03
|
3KB
|
64 lines
The purpose of this application is to provide a tool that allows the user to
dynamically change COM1 through COM4 hardware configurations. It implements
Category 1 ASYNC (RS232-C) Control IOCtl commands. These commands are
further explained in section 18 of the Physical Device Drive Reference
manual.
If you have ever read this section and tried to implement or understand the
relationships between these functions, you know some things are not obvious.
Thus, the creation of "IOCTLPM". This is a PM application that implements
all the IOCtl commands via pull down menus and button selections. The
following is a list of all the functions implemented:
Function 41h Set Bit Rate
Function 42h Set Line Characteristics
Function 43h Extended Set Bit Rate
Function 44h Transmit Byte Immediate
Function 45h Sete Break ON
Function 46h Set Modem Control Signals
Function 47h Behave as if XOFF Received
Function 48h Behave as if XON Received
Function 4Bh Set Break ON
Function 53h Set DCB Parameters
Function 54h Set Enhanced Mode Parameters
Function 61h Query Bit Rate
Function 62h Query Line Characteristics
Function 63h Extended Query Bit Rate
Function 64h Query COM Status
Function 65h Query Transmit Data Status
Function 66h Query Modem Output Signals
Function 67h Query Modem Input Signals
Function 68h Query Number of Characters in Receive Queue
Function 69h Query Number of Characters in Transmit Queue
Function 6Dh Query COM Error
Function 72h Query COM Event Information
Function 73h Query DCB Parameters
Function 74h Query Enhanced Mode Parameters
When Making selectings from the menus, each dialog box has the function
number displayed in the upper right corner. Not every function command
is displayed seperately. Most are combined, for example set DCB
parameters and query DCB parameters.
USER NOTES:
-----------
1. Values are entered in decimal. There is no range checking at this
time.
2. Since this application allows you to set any configuration using
the above functions, you will get a debug message with "RC=31"
return code for any invalid settings. You will also get this message
if what you are trying to do conflicts with a previous setting.
3. The RC return codes can be found in Appendix B of the Control
Program Programming Reference manual.
I am interested in any feedback or problems encountered. Feel free to contact
me at:
Dale Herrig
Compuserv 72740,467