Skip to content

Latest commit

 

History

History
40 lines (23 loc) · 794 Bytes

spimode.md

File metadata and controls

40 lines (23 loc) · 794 Bytes
-api-id -api-type
T:Windows.Devices.Spi.SpiMode
winrt enum

SpiMode

-description

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.

-enum-fields

-field Mode0:0

CPOL = 0, CPHA = 0.

-field Mode1:1

CPOL = 0, CPHA = 1.

-field Mode2:2

CPOL = 1, CPHA = 0.

-field Mode3:3

CPOL = 1, CPHA = 1.

-remarks

-examples

-see-also