SpiMode 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 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
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