Hello,
The examples referenced are rather simplistic, and cover one-way data transfer from master to slave only. They will not be particularly useful if you require that data be returned from slave back to master.
I suggest that you outline what you require to achieve with the SPI link. How is the SPI master implemented? The operation of the slave end will need to be compatible with the setup of the master (or vice versa).
Regards,
Mac