User`s guide

Host applications that only communicate to the SLTA-10 Adapter via an already-
established telephone connection do not need to concern themselves with these
functions.
If you wish to establish or take down telephone connections during the
execution of your host application, use the source code of HCU as a guide.
When function code 2 is used, argdx points to the direct-calls structure defined
for all LONWORKS standard network drivers for DOS. If argcx is 13, the size of the
standard direct calls structure, then three direct entry point addresses are returned
as usual. If argcx is 4 (the size of the structure ioc tl-get-dcd-s), then the state
of the modem’s DCD line is returned as a TRUE or FALSE value. Note that the status
field is 16 bits in this structure, but 8 bits in the direct calls structure.
struct ioctl-get-dcd-s {
unsigned ioctl-stat;
// 16 bit status
unsigned dcd-state;
// Data Carrier Detect (TRUE or FALSE)
Function code 3 is used when the application wishes to write information to the
driver. For the SLTA-10 Adapter driver, argdx points to the following structure, and
argcx is its size:
struct ioctl-o-info-s {
unsigned
ioctl-stat;
// 16 bit status
unsigned
sub-command;
// use enum sub-command
unsigned mode;
unsigned mode-aux;
1
enum sub-command {
SUBC-set-opt = 1, // set driver options
SUBC-set_DTR = 2, // set DTR line
SUBC-set-baud = 3, // set serial bit rate
I;
There are three sub-commands, used to set the various modes of the driver, the state
of the DTR (Data Terminal Ready) line to the modem, and serial bit rate of the serial
interface.
When sub-command 1 is used, the mode field in the structure is a bit mask defining
which of the driver modes is to be changed, and the mode-aux field specifies bits
defining the new states of those modes. It is possible to set more than one of the
modes by OR’ing the following bit-masks together:
0x0001
Enables modem support.
0x0002
Allows modem responses to host - same as the /Q option.
0x0004
Forces direct modem mode. In this mode, the network driver is
communicating directly with the modem.
0x00 10 Enables the buffered link protocol and disables the ALERT/ACK
link protocol - same as the /N option.
0x0020
Enables the reliable transport protocol.
The /M option corresponds to 0x0021.
SLTA-10 Adapter User’s Guide 8-9