Hi Kiran,
Unfortunately slave is not supported by the MQX driver. It is master mode only.
For master mode you have two options:
1. ProcessorExpert bases spi driver.
2. Write your own driver for spi slave using direct accesses to DSPI module registers and call it from an MQX task.
Regards
Sol