User's Manual

Table Of Contents
SDK SCR-API ______________________________________________ Boomer II User Manual & Integrator’s Guide
Wavenet Technology 150 BM210012WT27
When you are using a TCP/IP connection to the network switch or
RNG, communication will be via some form of TCP/IP link. This may
be via an Ethernet card or through a modem connection running SLIP
or PPP. The appropriate drivers will need to be configured for the
Ethernet card, and TCP/IP will need to be configured as a network
protocol. Contact your hardware supplier for more details on
configuring the TCPm connection. To communicate through the
TCP/IP connection, the sample application uses the standard Winsock
interface provided with the Microsoft Windows operating system. Most
Windows compilers come with a standard developer's kit to interface to
the Winsock routines.
Implementation
The SCR API is implemented as a library of routines written in ANSI
C and compiled for Windows NT using the Microsoft Visual C++
compiler. All default project settings were used to compile the .lib file.
SCR Structures
The SCR API makes use of several important structures to store the
SCR messages. The main structure is the SCRMsg structure. This
structure is a union of structures, each of which represents a single
message type in the SCR protocol.
The SCRMsg structure is shown here. The msg_type field indicates
which element of the union is valid. The appropriate value for the
msg_type field is shown in the comments.
/* The SCR Message data structure. */
typedef struct SCRMsg {
int msg_type;
union{
SCRhrr r; /*msg_type: SCR_HR*/
SCRar ar; /*msg_type: SCR_AR*/
SCRlr lr; /*msg_type: SCR_LR*/
SCRhc hc; /*msg_type: SCR_HC*/
SCRac ac; /*msg_type: SCR_AC*/
SCRlc lc; /*msg_type: SCR_LC*/
SCRmi mi; /*msg_type: SCR_MI*/
SCRci ci; /*msg_type: SCR_CI*/
SCRdi di; /*msg_type: SCR_DI*/
SCRrs rs; /*msg_type: SCR_RS*/
SCRrr rr; /*msg_type: SCR_RR*/
SCRib ib; /*msg_type: SCR_IB*/
SCRob ob; /*msg_type: SCR_OB*/
SCRab ab; /*msg_type: SCR_AB*/
SCRreqstat reqstat; /*msg_type:
SCR_REQ_STAT*/
SCRstatrsp statrsp; /*msg_type:
SCR_STAT_RSP*/
SCRtonet tonet; /*msg_type:
SCR_TO_NET*/
SCRfromnet fromnet; /*msg_type:
SCR_FROM_NET*/
SCRack ack; /*msg_type: SCR_ACK*/
} u;
} SCRMsg;