Asynchronous Serial Communications Programmer's Reference Manual (32022-90052)

Chapter 8 207
Intrinsics Reference
FDEVICECONTROL
See previous chapters for examples of using the FDEVICECONTROL
intrinsic to perform device control operations.
Parameters
filenum 16-bit signed integer by value (required)
Contains the file number of the target devicefile as
returned by FOPEN (or HPFOPEN).
buffer user-defined structure (required)
Specifies and returns the device control value of the
control directive specified in parm1. Examples of
information specified or returned by the buffer
parameter include character sets, forms or other
printer control information, and device control actions
such as line speed and parity settings.
The value of parm2 indicates whether buffer specifies
the Read/Write access, where you can specify a device
control status, receive a device control status, or both.
buffer is usually a 16-bit integer by reference;
however, for some values of parm1, (1 and 66) buffer
is a character array.
length 16-bit signed integer by value (required)
Specifies the length of buffer in halfwords or bytes.
Positive values of length indicates the length in
halfwords (2 bytes), and negative values indicates the
length in bytes. With controlcode 192, length will
usually be set to 1.
66 R/W Define Multiple Type 2 EOR characters (AEOR).
67 R/W Treat Delete Character (DEL) like Backspace (BS).
68 R/W Escape Sequence Read Termination.
69 R/W Suppress echo of Read Termination Characters.
72 R Return PAD line speed.
73 R/W Set FCLOSE timeout value.
74 R/W Suppress last form feed.
76 R/W Host and Device XON/XOFF enable.
77 R/W Set the number of stop bits.
parm1
Value
Access
Allowed
Device Control Operation