User guide
6 DC 900-1338I
Protocol Software Toolkit Programmer Guide
7.2.4.3 Completion Status........................... 134
7.3 Reserved System Resources: XIO Interface.................... 135
7.4 Executive Input/Output.............................. 135
7.4.1 Initialize Executive Input/Output (s_initxio)................ 136
7.4.2 Node Declaration (s_nodec)......................... 136
7.4.3 XIO Read/Write (s_xio)........................... 137
7.5 Diagnostics..................................... 137
8 Client Applications — DLI Overview 141
8.1 Summary of DLI Concepts............................. 142
8.1.1 Configuration in the Freeway Server or Embedded ICP Environment . . 142
8.1.1.1 DLI Configuration for Raw Operation................. 143
8.1.1.2 DLI and TSI Configuration Process.................. 147
8.1.2 Blocking versus Non-blocking I/O...................... 151
8.1.3 Buffer Management.............................. 152
8.2 Example Call Sequences.............................. 153
8.3 Overview of DLI Functions............................ 155
9 Client Applications — Commands and Responses 157
9.1 Client and ICP Interface Data Structures..................... 157
9.2 Client and ICP Communication.......................... 161
9.2.1 Sequence of Client Events to Communicate to the ICP........... 162
9.2.2 Initiating a Session with the ICP (dlOpen)................. 163
9.2.3 Initiating a Session with an ICP Link (Attach)............... 164
9.2.4 Terminating a Session with an ICP Link (Detach)............. 167
9.2.5 Activating an ICP Link (Bind)........................ 169
9.2.5.1 X21bis Line Status Reports (Optional) ................ 171
9.2.6 Deactivating an ICP Link (Unbind)..................... 172
9.2.7 Writing to an ICP Link............................ 174
9.2.7.1 Configuring the ICP Link........................ 175
9.2.7.2 Requesting Link Statistics From the ICP................ 179
9.2.7.3 Writing Data to an ICP Link...................... 182
9.2.8 Reading from the ICP Link.......................... 185
9.2.8.1 Reading Normal Data.......................... 185
9.3 Additional Command Types Supported by the SPS............... 187
9.3.1 Internal Termination Message........................ 187