|
STM CMSIS
|
Macros | |
| #define | SPI_1LINE_TX(__HANDLE__) ((__HANDLE__)->Instance->CR1 |= SPI_CR1_BIDIOE) |
| Set the SPI transmit-only mode. More... | |
| #define | SPI_1LINE_RX(__HANDLE__) ((__HANDLE__)->Instance->CR1 &= (~SPI_CR1_BIDIOE)) |
| Set the SPI receive-only mode. More... | |
| #define | SPI_RESET_CRC(__HANDLE__) |
| Reset the CRC calculation of the SPI. More... | |
| #define | IS_SPI_MODE(MODE) |
| #define | IS_SPI_DIRECTION(MODE) |
| #define | IS_SPI_DIRECTION_2LINES(MODE) ((MODE) == SPI_DIRECTION_2LINES) |
| #define | IS_SPI_DIRECTION_2LINES_OR_1LINE(MODE) |
| #define | IS_SPI_DATASIZE(DATASIZE) |
| #define | IS_SPI_CPOL(CPOL) |
| #define | IS_SPI_CPHA(CPHA) |
| #define | IS_SPI_NSS(NSS) |
| #define | IS_SPI_BAUDRATE_PRESCALER(PRESCALER) |
| #define | IS_SPI_FIRST_BIT(BIT) |
| #define | IS_SPI_TIMODE(MODE) |
| #define | IS_SPI_CRC_CALCULATION(CALCULATION) |
| #define | IS_SPI_CRC_POLYNOMIAL(POLYNOMIAL) (((POLYNOMIAL) >= 0x01U) && ((POLYNOMIAL) <= 0xFFFFU)) |
| #define IS_SPI_BAUDRATE_PRESCALER | ( | PRESCALER | ) |
| #define IS_SPI_CPHA | ( | CPHA | ) |
| #define IS_SPI_CPOL | ( | CPOL | ) |
| #define IS_SPI_CRC_CALCULATION | ( | CALCULATION | ) |
| #define IS_SPI_DATASIZE | ( | DATASIZE | ) |
| #define IS_SPI_DIRECTION | ( | MODE | ) |
| #define IS_SPI_DIRECTION_2LINES_OR_1LINE | ( | MODE | ) |
| #define IS_SPI_FIRST_BIT | ( | BIT | ) |
| #define IS_SPI_MODE | ( | MODE | ) |
| #define IS_SPI_NSS | ( | NSS | ) |
| #define IS_SPI_TIMODE | ( | MODE | ) |
| #define SPI_1LINE_RX | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR1 &= (~SPI_CR1_BIDIOE)) |
Set the SPI receive-only mode.
| <strong>HANDLE</strong> | specifies the SPI Handle. This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. |
| None |
| #define SPI_1LINE_TX | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR1 |= SPI_CR1_BIDIOE) |
Set the SPI transmit-only mode.
| <strong>HANDLE</strong> | specifies the SPI Handle. This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. |
| None |
| #define SPI_RESET_CRC | ( | __HANDLE__ | ) |
Reset the CRC calculation of the SPI.
| <strong>HANDLE</strong> | specifies the SPI Handle. This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. |
| None |