This is an old revision of the document!


SpiSetMode()

Set the mode (clock phase and polarity) of the specified SPI master channel.

Syntax


SpiSetMode(unsigned char channel, unsigned char mode);

channel
The SPI master channel to configure.

mode
The SPI mode:

  • 0 - Mode 0
  • 1 - Mode 1
  • 2 - Mode 2
  • 3 - Mode 3

Returns


int status