SPI Programming Manual (G06.24+, H06.03+, J06.03+)

SPI Programming Examples
SPI Programming Manual427506-006
E-36
Example E-10: A Simple SPI Requester in C
Example E-10: A Simple SPI Requester in C
Example E-10 on page E-37 is a simple SPI requester that sends commands to the
server shown in Example E-11
on page E-45. The requester starts and stops the
server automatically. The requester's commands have the server perform simple string
manipulations on a text string that you enter. This TAL program gives you the option of
displaying the contents of the SPI messages that are exchanged by the requester and
the server. The second option, which shifts a string to upper case, uses response
continuation to return the results one character per message. Run the program and
enter one of the displayed options:
1 - Reverse string,
2 - Shift string to upper case,
3 - Shift string to lower case,
4 - Display SPI messages,
5 - Don't display SPI messages,
6 - Exit
Enter command:
Source File
SECREQRC
Object File
SECREQRO