SpiMode Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
type SpiMode =
Public Enum SpiMode
- Inheritance
-
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. |