SPI.setDataMode(mode)
SPI.setDataMode(slaveSelectPin, mode)
Sets the SPI data mode: that is, clock polarity and phase. See the Wikipedia article on SPI for details.
SPI.setDataMode(mode)
SPI.setDataMode(slaveSelectPin, mode)
mode
the SPI mode of the device connected which is one of the following:
SPI_MODE0
SPI_MODE1
SPI_MODE2
SPI_MODE3
slaveSelectPin
(optional) slave device SS pin