Table of Contents

Enum SpiMode

Namespace
System.Device.Spi
Assembly
System.Device.Spi.dll

Defines how data is synchronized between devices on a SPI bus. Clock Polarity (CPOL) determines if clock signal is low or high when in idle state. Clock Phase (CPHA) determines when data is sampled relative to the clock signal.

public enum SpiMode

Fields

Mode0 = 0

CPOL 0, CPHA 0. Polarity is idled low and data is sampled on rising edge of the clock signal.

Mode1 = 1

CPOL 0, CPHA 1. Polarity is idled low and data is sampled on falling edge of the clock signal.

Mode2 = 2

CPOL 1, CPHA 0. Polarity is idled high and data is sampled on falling edge of the clock signal.

Mode3 = 3

CPOL 1, CPHA 1. Polarity is idled high and data is sampled on rising edge of the clock signal.