Does anything here help?

http://melabs.com/samples/PBP-mixed/spimast.htm

I've never used SPI.