SpiMode
SpiMode
SpiMode
SpiMode
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 SpiModepublic enum SpiModePublic Enum SpiMode// You can use this enum in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows IoT Extension SDK (introduced v10.0.10240.0)
|
| API contract |
Windows.Devices.DevicesLowLevelContract (introduced v1)
|
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. |