Enum SoftSpiFlags
Defines the Software-based SPI flags.
Namespace: Unosquare.PiGpio.NativeEnums
Syntax
[Flags]
public enum SoftSpiFlags
Fields
Name | Description |
---|---|
ClockPhaseLeadingEdge | For CPHA=1, the out side changes the data on the leading edge of the current clock cycle, while the in side captures the data on (or shortly after) the trailing edge of the clock cycle. The out side holds the data valid until the leading edge of the following clock cycle. For the last cycle, the slave holds the MISO line valid until slave select is deasserted. |
ClockPolarityIdleHigh | CPOL=1 is a clock which idles at 1, and each cycle consists of a pulse of 0. That is, the leading edge is a falling edge, and the trailing edge is a rising edge. |
Default | The default flags (all 0) |
MisoInvert | R is 1 if the least significant bit is received on MISO first, the default (0) receives the most significant bit first. |
MosiInvert | T is 1 if the least significant bit is transmitted on MOSI first, the default (0) shifts the most significant bit out first. |