CONTROLINK86 SMSC, CONTROLINK86 Datasheet - Page 12

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.4SETTING UP CONTROLINK
An ARCNET based application that wants to use ControLink must set up the necessary interface to
ControLink. This interface consists of SAP control structures (called LLC - MSG) and the buffers to hold
the data for each SAP. This interface is configured during the initialization phase of the application.
2.4.1 SAP
Each SAP in ControLink has an associated structure of the form:
This structure is used to pass information to the Class 1 driver. Each service request to the Class 1 driver
must have the following elements of the structure assigned prior to the service request:
The remainder of the parameters are filled in by the Class 1 driver.
Every SAP used, with the exception of the local SAP (SAP 0) and the global SAP (SAP 0xff) requires a
global declaration assigning the SAP name to the type LLC_MSG. For example, the declaration for three
local SAPs and three group SAPs is as follows:
Parameter
event
dstation
ssap
dsap
group
control
msbcount
lsbcount
msgptr
struct LLC_MSG
/* declare each ind. SAP as a structure of type LLC_MSG */
struct LLC_MSG SAP1, SAP2, SAP3;
/* declare group SAPs as a structure of type LLC_MSG */
struct LLC_MSG GSAP1, GSAP2, GSAP3;
/* reserve a storage area of 256 or 512 bytes for each declared SAP */
USIGN8 SAP1BUF[256];
USIGN8 SAP2BUF[256];
USIGN8 SAP3BUF[256];
USIGN8 GSAP1BUF[256];
USIGN8 GSAP2BUF[256];
USIGN8 GSAP3BUF[256];
void main(void)
};
{
USIGN8 event;
USIGN8 dstation;
USIGN8 ssap;
USIGN8 dsap;
USIGN8 group;
USIGN8 control;
USIGN8 msbcount;
USIGN8 lsbcount;
USIGN8 *msgptr;
{
Description
specifies what kind of operation is to be performed on the SAP by the
ControLink
physical ARCNET address
source SAP number
destination SAP number
designation of individual or group SAP
0 - indicates an individual request
1 - indicates a group request
specifies the type request to the SAP
the number of data bytes to be transmitted. Maximum is 504 bytes.
array assigned to the SAP being referenced.
12

Related parts for CONTROLINK86