Asynchronous Serial Communications Programmer's Reference Manual (32022-90052)
Chapter 8 163
Intrinsics Reference
FCONTROL
A number of FCONTROL functions return information to your
program. Some only return information, while others set a new value
and return the old value. You can then use the value returned as input
to a call which resets the device to its previous setting when your
program ends.
Parameters
filenum 16-bit signed integer by value (required)
Contains the file number of the target devicefile as
returned by FOPEN (or HPFOPEN).
controlcode 16-bit signed integer by value (required)
A code that specifies the control operation to be
performed. The codes used for asynchronous device
control are listed below. With the exception of
controlcode = 1, which sends a carriage control
directive to a device, these controls apply only to
terminals.
1 Sends a carriage control directive to the device.
4 Sets a read timeout value for the next read.
10 Changes the line speed of a device. Both input and
output speed are affected.
11 Changes the line speed of a device. Both input and
output speed are affected.
12 Enables character echoing.
13 Disables character echoing.
14 Disables the system break function.
15 Enables the system break function.
16 Disables the subsystem break function.
17 Enables the subsystem break function.
22 Obtains the time required for the last read to complete.
23 Disables parity checking.
24 Enables parity checking.
25 Defines additional end-of-record (AEOR) character for
terminal input.
26 Disables Binary Mode.
27 Enables Binary Mode.
28 Disables User Block Mode.