SPI_MODE_0 = 0 | Clock 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 = 1 | Clock polarity (CPOL): 0
Clock phase (CPHA): 1 .
Data is shifted out on rising SCLK.
Data is sampled on falling SCLK. |
SPI_MODE_2 = 2 | Clock 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 = 3 | Clock polarity (CPOL): 1
Clock phase (CPHA): 1 .
Data is shifted out on falling SCLK.
Data is sampled on rising SCLK. |