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

SPI Programming in TACL
SPI Programming Manual427506-006
8-14
#SSPUT
The actions performed when these tokens are passed in the token-code parameter
to #SSPUT or the
token-id parameter to #SSPUTV are:
ZSPI^TKN^BUFLEN: Modify Buffer Length
Use this token code to modify the SPI buffer length. If the buffer length value used with
SSPUT is less than the number of bytes indicated by ZSPI-TKN-USEDLEN, the buffer
length is modified and SSPUT returns ZSPI-ERR-NOSPACE.
ZSPI^TKN^CHECKSUM: Set Checksum Flag
With this token code, a nonzero token-value enables checksum protection of the
buffer; a zero
token-value disables it.
ZSPI^TKN^CLEARERR: Clear Last SPI Error
Use this token code to clear the last-error information to zero. You must omit token-
value
and COUNT count.
You might use this operation before issuing a series of #SSPUT[V] and #SSGET[V]
calls that are followed by a check of the last error. You need this operation only if you
use #SSPUT or #SSPUTV to check the header token ZSPI^TKN^LASTERR.
ZSPI^TKN^DATA^FLUSH: Clear Buffer From Current
Position
Use this token code to flush all information in the message buffer located at or after the
current position. You must omit
token-value and COUNT count.
ZSPI^TKN^DATA^FLUSH Flush tokens starting at current
position
ZSPI^TKN^DELETE INT2 Delete a token from the buffer
ZSPI^TKN^INITIAL^POSITION INT Reset position to start of buffer or
list
ZSPI^TKN^MAX^FIELD^VERSION UINT Maximum field version
ZSPI^TKN^MAXRESP INT Set maximum-responses header
token
ZSPI^TKN^POSITION BYTE:8 Restore a previously saved position
ZSPI^TKN^RESET^BUFFER UINT Reset buffer
ZSPI^TKN^SERVER^VERSION UINT Set server-version header token
Table 8-2. #SSPUT(V) Special Operations (page 2 of 2)
Token Specified in #SSPUT(V) call Type Effect