Macros | |
#define | SPI_1LINE_TX(__HANDLE__) CLEAR_BIT((__HANDLE__)->Instance->TRIWIRE_CTRL, SPI_TRIWIRE_CTRL_TXD_OEN) |
Set the SPI transmit-only mode. More... | |
#define | SPI_1LINE_RX(__HANDLE__) SET_BIT((__HANDLE__)->Instance->TRIWIRE_CTRL, SPI_TRIWIRE_CTRL_TXD_OEN) |
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_FRAME_FORMAT(MODE) |
#define | IS_SPI_SFRMPOL(SFRMPOL) |
#define | IS_SPI_CRC_CALCULATION(CALCULATION) |
#define | IS_SPI_CRC_LENGTH(LENGTH) |
#define | IS_SPI_CRC_POLYNOMIAL(POLYNOMIAL) (((POLYNOMIAL) >= 0x1U) && ((POLYNOMIAL) <= 0xFFFFU) && (((POLYNOMIAL)&0x1U) != 0U)) |
#define | IS_SPI_DMA_HANDLE(HANDLE) ((HANDLE) != NULL) |
#define | IS_SPI_16BIT_ALIGNED_ADDRESS(DATA) (((uint32_t)(DATA) % 2U) == 0U) |
#define | IS_SPI_ALL_INSTANCE(__INSTANCE__) |
#define | IS_SPI_BAUDRATE_PRESCALER(PRESCALER) (((PRESCALER) > 0x0U) && ((PRESCALER) <= SPI_BAUDRATE_PRESCALER_MAX)) |
SPI_Exported_Macros
#define IS_SPI_ALL_INSTANCE | ( | __INSTANCE__ | ) |
#define IS_SPI_CPHA | ( | CPHA | ) |
#define IS_SPI_CPOL | ( | CPOL | ) |
#define IS_SPI_CRC_CALCULATION | ( | CALCULATION | ) |
#define IS_SPI_CRC_LENGTH | ( | LENGTH | ) |
#define IS_SPI_DATASIZE | ( | DATASIZE | ) |
#define IS_SPI_DIRECTION | ( | MODE | ) |
#define IS_SPI_DIRECTION_2LINES_OR_1LINE | ( | MODE | ) |
#define IS_SPI_FRAME_FORMAT | ( | MODE | ) |
#define IS_SPI_MODE | ( | MODE | ) |
#define IS_SPI_SFRMPOL | ( | SFRMPOL | ) |
#define SPI_1LINE_RX | ( | __HANDLE__ | ) | SET_BIT((__HANDLE__)->Instance->TRIWIRE_CTRL, SPI_TRIWIRE_CTRL_TXD_OEN) |
Set the SPI receive-only mode.
__HANDLE__ | 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__ | ) | CLEAR_BIT((__HANDLE__)->Instance->TRIWIRE_CTRL, SPI_TRIWIRE_CTRL_TXD_OEN) |
Set the SPI transmit-only mode.
__HANDLE__ | 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.
__HANDLE__ | specifies the SPI Handle. This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. |
None |