ControLink86 Realtime Networking Software
3
TABLE OF CONTENTS
1. OVERVIEW .............................................................................5
1.1 AUDIENCE....... ..........................................................................................................................5
1.2 DOCUMENT CONVENTIONS.....................................................................................................5
2. INTRODUCTION AND BASIC ARCHITECTURE ................................7
2.1 HOW TO USE CONTROLINK.....................................................................................................8
2.1.1 SOURCE CODE.................................................................................................................9
2.1.2 DEMONSTRATION PROGRAMS. ...................................................................................10
2.2 CONTROLINK SERVICES........................................................................................................11
2.3 ADDRESSING MODES.............................................................................................................11
2.4 SETTING UP CONTROLINK.....................................................................................................13
2.4.1 SAP......... ........................................................................................................................13
2.4.2 INITIALIZING CONTROLINK ...........................................................................................14
2.4.3 CLASS 1 DRIVER STATE MACHINE INITIALIZATION....................................................15
2.4.4 SAP ACTIVATION ...........................................................................................................15
2.5 EXECUTING CONTROLINK .....................................................................................................16
2.5.1 CHECKING SAPS FOR INCOMING MESSAGES............................................................16
2.5.2 TRANSMITTING MESSAGES..........................................................................................17
2.5.3 AN EXAMPLE OF A COMPLETE PROGRAM:.................................................................17
3. LLC1 - CLASS 1 DRIVER DETAILED DESCRIPTION ...................... 19
3.1 INTRODUCTION.......................................................................................................................19
3.2 OPERATE LOGICAL LINK CONTROL (IEEE 802.2) CLASS 1 SERVICES...............................19
3.3 LOGICAL LINK LAYER SOFTWARE STRUCTURE..................................................................19
3.4 LLC DATA STRUCTURES........................................................................................................20
3.4.1 LLC_MSG DATA STRUCTURE (SAP).............................................................................20
3.4.2 ADDITIONAL DATA STRUCTURES ................................................................................21
3.5 LLC1 FUNCTIONS....................................................................................................................21
3.5.1 llc1_request() ...................................................................................................................21
3.5.2 llc_1service()....................................................................................................................23
3.5.3 llc1_indication()................................................................................................................23
3.5.4 llc1_group_indication() .....................................................................................................25
3.6 DESCRIPTION OF LLC1 SERVICES........................................................................................26
3.6.1 STATION SERVICES.......................................................................................................26
3.6.1.1 STATION INITIALIZATION................................................................................................26
3.6.1.2 STATION COMMAND/RESPONSE PROCESSING........................................................27
3.6.1.3 DISABLE STATION/NODE................................................................................................27
3.6.1.4 STATION/NODE STATUS ................................................................................................27
3.6.2 SERVICE ACCESS POINT (SAP) SERVICES.................................................................28
3.6.2.1 SAP ACTIVATION/DEACTIVATION................................................................................. 28
3.6.2.2 EXCHANGE ID (XID) REQUEST...................................................................................... 28