Udostępnij za pośrednictwem


SpiMode Enum

Definition

Defines the SPI communication mode. The communication mode defines the clock edge on which the host out line toggles, the host 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).

For the definition of host, see Windows.Devices.Spi namespace.

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

Windows requirements

Device family
Windows IoT Extension SDK (introduced in 10.0.10240.0)
API contract
Windows.Devices.DevicesLowLevelContract (introduced in v1.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