Skip to content
Ken Sharp edited this page Dec 8, 2023 · 1 revision

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

Related Links

Clone this wiki locally