WAN Manager SPI Programming Guide

Communicating With the WAN Manager Process
WAN Manager SPI Programming Guide540013-001
2-6
Processing a Response Message
4. Reset the buffer using ZSPI_TKN_RESET_BUFFER, which performs resetting
operations on the SPI response buffer received to prepare it for scanning. This
operation clears the last-error information, resets the maximum buffer length, and
resets the current position to the beginning of the buffer. For more information, see
the SPI Programming Manual.
short buflen = max_bufsize;
if (SSPUTTKN(spi_buffer, ZSPI_TKN_RESET_BUFFER, (char *)
&buflen))
{
return FAILURE;
}