This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
修改相位/极性的就是改这个
typedef enum {
SPI_POL0_PHA0 = 0, /*!< SPI mode Polarity 0 Phase 0 */
SPI_POL0_PHA1 = 1, /*!< SPI mode Polarity 0 Phase 1 */
SPI_POL1_PHA0 = 2, /*!< SPI mode Polarity 1 Phase 0 */
SPI_POL1_PHA1 = 3, /*!< SPI mode Polarity 1 Phase 1 */
SPI_TI = 4, /*!< TI mode (not supported on all
implementations) */
SPI_MW = 5 /*!< Micro-wire mode (not supported on all
implementations) */
} SPI_FrameFormat;