User`s guide

114 DC 900-1340I
BSC Programmers Guide
5.3.1 DLI Optional Arguments
Section 5.4 and Section 5.5 describe the dlWrite and dlRead functions for a
BSC 2780/3780 application. Both functions can use the optional arguments parameter
to provide the protocol-specific information required for Raw operation
(Section 5.1.2). The “C” definition of the optional arguments structure is shown in
Figure 5–1.
typedef struct _DLI_OPT_ARGS
{
unsigned short usFWPacketType; /* FW_CONTROL or FW_DATA */
unsigned short usFWCommand; /* FW_ICP_WRITE, FW_ICP_WRITE_EXP */
/* or
FW_ICP_READ */
unsigned short usFWStatus;
unsigned short usICPClientID;
unsigned short usICPServerID;
unsigned short usICPCommand; /* Required for start/stop cmds */
short iICPStatus; /* ICP return error code (dlRead) */
unsigned short usICPParms[3];
unsigned short usProtCommand; /* Required field (dlWrite) */
short iProtModifier;
unsigned short usProtLinkID;
unsigned short usProtCircuitID; /* Used for translation tables */
unsigned short usProtSessionID;
unsigned short usProtSequence;
unsigned short usProtXParms[2];
} DLI_OPT_ARGS;
Figure 5–1: “C” Definition of DLI Optional Arguments Structure