Hi,
Pls download SDK2.0 based on K82 from the website:
after you install the SDK2.0, pls refer to the directory:
C:\Freescale\SDK2.0_K82\boards\frdmk82f\driver_examples\dspi
the example code includes the master and slave mode.
Hope it can help you.
BR
XiangJun Rong