GDSX (Extended General Device Support) Manual
Design and Development
Extended General Device Support (GDSX) Manual—529931-001
2-105
The DEVICE^HANDLER Procedure
Device actions defined are as follows:
Using this DEVICE^HANDLER, the data from the device is read before replying to the
external requester’s CONTROL 22 so that when the requester issues a subsequent
READ, the data necessary for an immediate reply is available.
DEVICE^HANDLER implements debugging features by means of the DEBUGFLAGS
configuration parameter. These facilities are intended for debugging only and should
be deleted if the sample code is to form the basis of a production LINE^HANDLER.
12 - d^preread2 READ posted on terminal; READUPDATE posted on $RECEIVE.
13 - d^preread3 READ posted on terminal; READUPDATE posted on $RECEIVE.
14 - d^reset1 A -20 system message has been received. A SETMODENOWAIT is in
process to set the access mode for the terminal to break access.
15 - d^reset2 A zero-length write is in process to position the cursor to column 1 of
the next row on the terminal.
16 - d^reset3 A SETMODENOWAIT is in process to set the terminal mode and
access to normal.
Device Action Description
1 - da^null Do nothing.
2 - da^read^receive Post ^READUPDATE on $RECEIVE.
3 - da^read Initiate READ on terminal.
4 - da^write Initiate WRITE to terminal.
5 - da^setmode Initiate SETMODENOWAIT to terminal.
6 - da^control Initiate CONTROL to terminal.
7 - da^reply Reply to oldest external process request.
8 - da^cancel Cancel current terminal operation.
9 - da^writeread Initiate WRITEREAD to terminal.
10 - da^preread Initiate a READ on the terminal with no buffer specified
(LINE^HANDLER will supply buffer).
11 - da^readdata Initiate READ for data (after completion of CONTROL 22).
12 - da^reset1 Initiate a SETMODENOWAIT to set access to break access.
13 - da^reset2 Initiate a null write to the terminal.
14 - da^reset3 Initiate a SETMODENOWAIT to set terminal mode and access to
normal.
15 - da^error Unexpected event occurred at this state.
Device State Description