Hi Byungju,
You can install SPI_Slave callback function and check the events you are interested in.
For example:
void MySlaveCallback(void *driverState, spi_event_t event, void *userData)
{
/* Handle your SPI Slave envent here */
}
SlaveConfig0.callback=&MySlaveCallback;
SPI_SlaveInit(&spi2Instance, &SlaveConfig0);
.
.
Hope it helps.
Jiri