SPI Plugin for Xojo

SPI.Modes Enum

Enum for SPI modes.

enum SPI.Modes

Constants

SPI_MODE_0 = 0Clock polarity (CPOL): 0 Clock phase (CPHA): 0 . Data is shifted out on falling SCLK, and when CS activates. Data is sampled on rising SCLK.
SPI_MODE_1 = 1Clock polarity (CPOL): 0 Clock phase (CPHA): 1 . Data is shifted out on rising SCLK. Data is sampled on falling SCLK.
SPI_MODE_2 = 2Clock polarity (CPOL): 1 Clock phase (CPHA): 0 . Data is shifted out on rising SCLK, and when CS activates Data is sampled on falling SCLK.
SPI_MODE_4 = 3Clock polarity (CPOL): 1 Clock phase (CPHA): 1 . Data is shifted out on falling SCLK. Data is sampled on rising SCLK.