User guide

172 DC 900-1338I
Protocol Software Toolkit Programmer Guide
9.2.6 Deactivating an ICP Link (Unbind)
Stopping (disabling) the link is accomplished by sending an unbind message to the ICP.
This is accomplished by issuing a call to
dlWrite with the optional argument structure
set as shown in Figure 910.
From the ICPs perspective, when the application sends an
unbind command, the ICP
immediately terminates all receiving and transmitting on the link. Deactivation means
that data structures are initialized and the links serial transmitter and receiver are dis-
abled.
For the
unbind command, the fields of the ICP and protocol headers that the ICP
receives contain the following values:
DLI_OPT_ARGS.usFWPacketType FW_DATA
DLI_OPT_ARGS.usFWCommand FW_ICP_WRITE
DLI_OPT_ARGS.usFWStatus n/a
DLI_OPT_ARGS.usICPClientID n/a
DLI_OPT_ARGS.usICPServerID n/a
DLI_OPT_ARGS.usICPCommand DLI_ICP_CMD_UNBIND
DLI_OPT_ARGS.iICPStatus n/a
DLI_OPT_ARGS.usICPParms [0] n/a
DLI_OPT_ARGS.usICPParms [1] n/a
DLI_OPT_ARGS.usICPParms [2] n/a
DLI_OPT_ARGS.usProtCommand DLI_ICP_CMD_UNBIND
DLI_OPT_ARGS.iProtModifier n/a
DLI_OPT_ARGS.usProtLinkID Link to stop
DLI_OPT_ARGS.usProtCircuitID n/a
DLI_OPT_ARGS.usProtSessionID Protocol Session ID
DLI_OPT_ARGS.usProtSequence n/a
DLI_OPT_ARGS.usProtXParms [0] n/a
DLI_OPT_ARGS.usProtXParms [1] n/a
Figure 910: Unbind Command Format