GDSX Manual
Design and Development
Extended General Device Support (GDSX) Manual–134303
2-100
The DEVICE^HANDLER Procedure
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.
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 Action Description










