Share via


ProviderSpiMode Enum

Definition

Defines the SPI communication mode. The communication mode defines the clock edge on which the master out line toggles, the master in line samples, and the signal clock's signal steady level (named SCLK). Each mode is defined with a pair of parameters called clock polarity (CPOL) and clock phase (CPHA).

public enum class ProviderSpiMode
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.DevicesLowLevelContract, 131072)]
enum class ProviderSpiMode
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.DevicesLowLevelContract), 131072)]
public enum ProviderSpiMode
var value = Windows.Devices.Spi.Provider.ProviderSpiMode.mode0
Public Enum ProviderSpiMode
Inheritance
ProviderSpiMode
Attributes

Windows requirements

Device family
Windows IoT Extension SDK (introduced in 10.0.10586.0)
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Devices.DevicesLowLevelContract (introduced in v2.0)

Fields

Name Value Description
Mode0 0

CPOL = 0, CPHA = 0.

Mode1 1

CPOL = 0, CPHA = 1.

Mode2 2

CPOL = 1, CPHA = 0.

Mode3 3

CPOL = 1, CPHA = 1.

Applies to