I have been using the Arduino SPI library with an Arduino Mega 2560 recently, it took me a little while to work out the SPI modes, which are straightforward, but I though I would post some traces to backup the reference links which I will include. For me looking at the scope trace, a picture, was a thousand words.
The SPI wiki page gives an excellent definition of the format.