SPI Programming Manual (H06.24+, J06.13+)

Contents
SPI Programming Manual427506-007
ix
D. NonStop Kernel Subsystem Numbers and
Abbreviations
Specialized Part of Header C-3
Context Part of Header C-4
Token Structure C-5
Token Code C-5
Single-Occurrence Tokens C-6
Multiple-Occurrence Tokens C-6
Token-Map Structure C-7
Token-Map Example C-8
List Structure C-10
D. NonStop Kernel Subsystem Numbers and Abbreviations
E. SPI Programming Examples
Compiling the Example Programs E-3
Compiling the TAL Programs E-3
Compiling the C Programs E-3
Running the Example Programs E-3
Running the TAL Programs E-3
Running the C Programs E-4
A Note on Program Output E-4
Source File Examples E-4
Example E-1: Basic Buffer Manipulations in TAL E-4
Example E-2: Basic Buffer Manipulations in C E-7
Example E-3: Working With Lists in TAL E-9
Example E-4: Working With Lists in C E-12
Example E-5: Displaying SPI Buffer Contents With TAL E-15
Example E-6: Displaying SPI Buffer Contents With C
E-18
Example E-7: Special SSGET Operation in TAL
E-21
Example E-8: Special SSGET Operation in C E-24
Example E-9: A Simple SPI Requester in TAL
E-27
Example E-10: A Simple SPI Requester in C E-36
Example E-11: A Simple SPI Server in TAL
E-44
Example E-12: A Simple SPI Server in C
E-55
Example E-13: Common Declarations for TAL Examples E-67
Example E-14: Common Declarations for C Examples
E-68
Example E-15: Common Routines for TAL Examples
E-69
Example E-16: Common Routines for C Examples
E-73
Example E-17: Declarations for TAL Requesters and Servers
E-79
Example E-18: Declarations for C Requesters and Servers E-81
Example E-19: Routines for TAL Requesters and Servers
E-82