ProviderSpiMode 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 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
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for