RTEMS 6.1-rc4
|
Macros | |
#define | SPI_1LINE_TX(__HANDLE__) SET_BIT((__HANDLE__)->Instance->CR1, SPI_CR1_HDDIR) |
Set the SPI transmit-only mode in 1Line configuration. | |
#define | SPI_1LINE_RX(__HANDLE__) CLEAR_BIT((__HANDLE__)->Instance->CR1, SPI_CR1_HDDIR) |
Set the SPI receive-only mode in 1Line configuration. | |
#define | SPI_2LINES_TX(__HANDLE__) MODIFY_REG((__HANDLE__)->Instance->CFG2, SPI_CFG2_COMM, SPI_CFG2_COMM_0) |
Set the SPI transmit-only mode in 2Lines configuration. | |
#define | SPI_2LINES_RX(__HANDLE__) MODIFY_REG((__HANDLE__)->Instance->CFG2, SPI_CFG2_COMM, SPI_CFG2_COMM_1) |
Set the SPI receive-only mode in 2Lines configuration. | |
#define | SPI_2LINES(__HANDLE__) MODIFY_REG((__HANDLE__)->Instance->CFG2, SPI_CFG2_COMM, 0x00000000UL) |
Set the SPI Transmit-Receive mode in 2Lines configuration. | |
#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_2LINES_TXONLY(MODE) |
#define | IS_SPI_DIRECTION_2LINES_OR_1LINE_2LINES_RXONLY(MODE) |
#define | IS_SPI_DATASIZE(DATASIZE) |
#define | IS_SPI_FIFOTHRESHOLD(THRESHOLD) |
#define | IS_SPI_CPOL(CPOL) |
#define | IS_SPI_CPHA(CPHA) |
#define | IS_SPI_NSS(NSS) |
#define | IS_SPI_NSSP(NSSP) |
#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_INITIALIZATION_PATTERN(PATTERN) |
#define | IS_SPI_CRC_LENGTH(LENGTH) |
#define | IS_SPI_CRC_POLYNOMIAL(POLYNOMIAL) ((POLYNOMIAL) > 0x0UL) |
#define | IS_SPI_CRC_POLYNOMIAL_SIZE(POLYNOM, LENGTH) (((POLYNOM) >> (((LENGTH) >> SPI_CFG1_CRCSIZE_Pos) + 1UL)) == 0UL) |
#define | IS_SPI_UNDERRUN_DETECTION(MODE) |
#define | IS_SPI_UNDERRUN_BEHAVIOUR(MODE) |
#define | IS_SPI_MASTER_RX_AUTOSUSP(MODE) |
#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_CRC_INITIALIZATION_PATTERN | ( | PATTERN | ) |
#define IS_SPI_CRC_LENGTH | ( | LENGTH | ) |
#define IS_SPI_DATASIZE | ( | DATASIZE | ) |
#define IS_SPI_DIRECTION | ( | MODE | ) |
#define IS_SPI_DIRECTION_2LINES_OR_1LINE_2LINES_RXONLY | ( | MODE | ) |
#define IS_SPI_DIRECTION_2LINES_OR_1LINE_2LINES_TXONLY | ( | MODE | ) |
#define IS_SPI_FIFOTHRESHOLD | ( | THRESHOLD | ) |
#define IS_SPI_FIRST_BIT | ( | BIT | ) |
#define IS_SPI_MASTER_RX_AUTOSUSP | ( | MODE | ) |
#define IS_SPI_MODE | ( | MODE | ) |
#define IS_SPI_NSS | ( | NSS | ) |
#define IS_SPI_NSSP | ( | NSSP | ) |
#define IS_SPI_TIMODE | ( | MODE | ) |
#define IS_SPI_UNDERRUN_BEHAVIOUR | ( | MODE | ) |
#define IS_SPI_UNDERRUN_DETECTION | ( | MODE | ) |
#define SPI_1LINE_RX | ( | __HANDLE__ | ) | CLEAR_BIT((__HANDLE__)->Instance->CR1, SPI_CR1_HDDIR) |
Set the SPI receive-only mode in 1Line configuration.
__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__ | ) | SET_BIT((__HANDLE__)->Instance->CR1, SPI_CR1_HDDIR) |
Set the SPI transmit-only mode in 1Line configuration.
__HANDLE__ | specifies the SPI Handle. This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. |
None |
#define SPI_2LINES | ( | __HANDLE__ | ) | MODIFY_REG((__HANDLE__)->Instance->CFG2, SPI_CFG2_COMM, 0x00000000UL) |
Set the SPI Transmit-Receive mode in 2Lines configuration.
__HANDLE__ | specifies the SPI Handle. This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. |
None |
#define SPI_2LINES_RX | ( | __HANDLE__ | ) | MODIFY_REG((__HANDLE__)->Instance->CFG2, SPI_CFG2_COMM, SPI_CFG2_COMM_1) |
Set the SPI receive-only mode in 2Lines configuration.
__HANDLE__ | specifies the SPI Handle. This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. |
None |
#define SPI_2LINES_TX | ( | __HANDLE__ | ) | MODIFY_REG((__HANDLE__)->Instance->CFG2, SPI_CFG2_COMM, SPI_CFG2_COMM_0) |
Set the SPI transmit-only mode in 2Lines configuration.
__HANDLE__ | specifies the SPI Handle. This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. |
None |