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

SPI Programming in TACL
SPI Programming Manual427506-006
8-11
#SSPUT
token-map
is a token map to be used in initializing the fields of the structure.
struct
is the structure to be initialized with null values.
Expansion
#SSNULL expands to a numeric status code indicating the outcome of the operation.
The status code has one of these values:
0 No error
-3 Missing parameter
-4 Illegal parameter address
-7 Internal error
-9 Illegal token code or map
For more information about nonzero status codes, see Appendix A, Errors.
#SSPUT
Use #SSPUT to convert token values from external representation to binary form and
insert them into an SPI buffer previously initialized by #SSINIT. #SSPUT cannot insert
values of extensible structured tokens using a token map or using a token code of type
ZSPI^TDT^STRUCT. For this purpose, use #SSPUTV.
option
is either of:
COUNT count
gives the token count. If count is greater than 1, token-value is assumed to
be a space-separated list of
count elements, each of which is described by
the
token-code. count must be an integer in the range 1 to 65535, inclusive,
and you must provide that many token values. (You must represent a variable-
length token value in two partsthe byte length followed by the actual value
separated by a space.) The default count is 1.
If
token-code is a special operation that does not allow a token value, you
must omit COUNT
count. For the special token code ZSPI^TKN^DELETE,
you must supply COUNT
count, and #SSPUT interprets count as the index
value of the token code to be deleted.
#SSPUT [ / option [ , option ] / ] buffer-var
token-code [ token-value [ token-value ]... ]