ProviderSpiMode ProviderSpiMode ProviderSpiMode 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 ProviderSpiModepublic enum ProviderSpiModePublic Enum ProviderSpiMode// You can use this enum in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows IoT Extension SDK (introduced v10.0.10586.0) Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Devices.DevicesLowLevelContract (introduced v2)

Fields

Mode0 Mode0 Mode0 Mode0

CPOL = 0, CPHA = 0.

Mode1 Mode1 Mode1 Mode1

CPOL = 0, CPHA = 1.

Mode2 Mode2 Mode2 Mode2

CPOL = 1, CPHA = 0.

Mode3 Mode3 Mode3 Mode3

CPOL = 1, CPHA = 1.