Go to the source code of this file.
This file defines constants used in spi0_master.h and spi1_master.h.
Definition in file spi.h.
#define SPI_BIT_ORDER_LSB_FIRST 1 |
The least-significant bit is transmitted first.
Definition at line 22 of file spi.h.
#define SPI_BIT_ORDER_MSB_FIRST 0 |
The most-significant bit is transmitted first.
Definition at line 19 of file spi.h.
#define SPI_PHASE_EDGE_LEADING 0 |
Data is sampled/transmitted on the leading edge, when the clock line transitions from idle to active.
Definition at line 14 of file spi.h.
#define SPI_PHASE_EDGE_TRAILING 1 |
Data is sampled/transmitted on the trailing edge, when the clock like transitions from active to idle.
Definition at line 16 of file spi.h.
#define SPI_POLARITY_IDLE_HIGH 1 |
The SCK line will be high when no data is being transferred.
Definition at line 11 of file spi.h.
#define SPI_POLARITY_IDLE_LOW 0 |
The SCK line will be low when no data is being transferred.
Definition at line 9 of file spi.h.