CONTROLINK86 SMSC, CONTROLINK86 Datasheet - Page 16

no-image

CONTROLINK86

Manufacturer Part Number
CONTROLINK86
Description
Development Software Embedded Networking Software
Manufacturer
SMSC
Datasheet

Specifications of CONTROLINK86

Tool Function
Compiler
Tool Type
Compiler
Processor Series
80x86
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
ControLink86 Realtime Networking Software
2.5.2 TRANSMITTING MESSAGES
Messages are sent using the llc1_request() routine as mentioned previously. For each message the
dstation member of the associated source SAP data structure must be filled.
The Basic Data Transfer and Test Link service require data input from the user. In these cases, the data
length field (msbcount and lsbcount) must be filled and the SAP buffer from which the message is
originating must be filled with the actual message.
Example: (SAP 1 has an associated buffer SAPBUF_1 for the data)
2.5.3AN EXAMPLE OF A COMPLETE PROGRAM:
The following is a skeleton application that illustrates the usage of the ControLink86 functions.
/* provide the indication routine with the sap # */
status = llc1_indication(4);
/* process returned status */
switch (status)
/* transmit a basic data message of 1,2,3 */
/* transmit from SAP 1 of station 0xff to SAP 2 of station 0xfe */
sap1.dstation = 0xfe;/* fill in ARCNET destination ID */
sap1.msbcount = 0;/* only 3 bytes of data */
sap1.lsbcount = 3;
sap1.group = 0; /* fill with a 1 for group messages */
SAPBUF_1[i]=i+1;/*0 for individual recipient */
for(i = 0; I < 3; i++)
status = llc1_request(1,2,UNITDATA_REQUEST, &SAP1);
/* status return indicates successful reception or not */
/* include files */
/* application specific definitions */
/* global declarations: SAP structures, SAPBUF buffers, flags, etc */
struct LLC_MSG SAP[MAX_SAPS];
USIGN8 SAPBUF[MAX_SAPS][MAX_SAPBUF];
/* application function prototypes */
{
/* nothing was received */
case NO_INDICATION:
/* basic message was received */
case UNITDATA_INDICATION:
/* Node Identification response was received */
case XID_INDICATION:
/* TEST Response frame received */
case TEST_INDICATION:
default:
}
{
}
break;
/* insert processing direction here */
break;
/* insert processing here */
break;
/* insert processing here */
break;
break;
16

Related parts for CONTROLINK86