|
STM32F4xx HAL Driver master
STM32CubeF4 HAL / LL Drivers API Reference
|
Macros | |
| #define | SPI_1LINE_TX(__HANDLE__) |
| Set the SPI transmit-only mode. | |
| #define | SPI_1LINE_RX(__HANDLE__) |
| Set the SPI receive-only mode. | |
| #define | SPI_RESET_CRC(__HANDLE__) |
| Reset the CRC calculation of the SPI. | |
| #define | SPI_CHECK_FLAG(__SR__, __FLAG__) |
| Check whether the specified SPI flag is set or not. | |
| #define | SPI_CHECK_IT_SOURCE(__CR2__, __INTERRUPT__) |
| Check whether the specified SPI Interrupt is set or not. | |
| #define | IS_SPI_MODE(__MODE__) |
| Checks if SPI Mode parameter is in allowed range. | |
| #define | IS_SPI_DIRECTION(__MODE__) |
| Checks if SPI Direction Mode parameter is in allowed range. | |
| #define | IS_SPI_DIRECTION_2LINES(__MODE__) |
| Checks if SPI Direction Mode parameter is 2 lines. | |
| #define | IS_SPI_DIRECTION_2LINES_OR_1LINE(__MODE__) |
| Checks if SPI Direction Mode parameter is 1 or 2 lines. | |
| #define | IS_SPI_DATASIZE(__DATASIZE__) |
| Checks if SPI Data Size parameter is in allowed range. | |
| #define | IS_SPI_CPOL(__CPOL__) |
| Checks if SPI Serial clock steady state parameter is in allowed range. | |
| #define | IS_SPI_CPHA(__CPHA__) |
| Checks if SPI Clock Phase parameter is in allowed range. | |
| #define | IS_SPI_NSS(__NSS__) |
| Checks if SPI Slave Select parameter is in allowed range. | |
| #define | IS_SPI_BAUDRATE_PRESCALER(__PRESCALER__) |
| Checks if SPI Baudrate prescaler parameter is in allowed range. | |
| #define | IS_SPI_FIRST_BIT(__BIT__) |
| Checks if SPI MSB LSB transmission parameter is in allowed range. | |
| #define | IS_SPI_TIMODE(__MODE__) |
| Checks if SPI TI mode parameter is in allowed range. | |
| #define | IS_SPI_CRC_CALCULATION(__CALCULATION__) |
| Checks if SPI CRC calculation enabled state is in allowed range. | |
| #define | IS_SPI_CRC_POLYNOMIAL(__POLYNOMIAL__) |
| Checks if SPI polynomial value to be used for the CRC calculation, is in allowed range. | |
| #define | IS_SPI_DMA_HANDLE(__HANDLE__) |
| Checks if DMA handle is valid. | |
| #define IS_SPI_BAUDRATE_PRESCALER | ( | __PRESCALER__ | ) |
Checks if SPI Baudrate prescaler parameter is in allowed range.
| __PRESCALER__ | specifies the SPI Baudrate prescaler. This parameter can be a value of SPI BaudRate Prescaler |
| None |
Definition at line 594 of file stm32f4xx_hal_spi.h.
| #define IS_SPI_CPHA | ( | __CPHA__ | ) |
Checks if SPI Clock Phase parameter is in allowed range.
| __CPHA__ | specifies the SPI Clock Phase. This parameter can be a value of SPI Clock Phase |
| None |
Definition at line 577 of file stm32f4xx_hal_spi.h.
| #define IS_SPI_CPOL | ( | __CPOL__ | ) |
Checks if SPI Serial clock steady state parameter is in allowed range.
| __CPOL__ | specifies the SPI serial clock steady state. This parameter can be a value of SPI Clock Polarity |
| None |
Definition at line 569 of file stm32f4xx_hal_spi.h.
| #define IS_SPI_CRC_CALCULATION | ( | __CALCULATION__ | ) |
Checks if SPI CRC calculation enabled state is in allowed range.
| __CALCULATION__ | specifies the SPI CRC calculation enable state. This parameter can be a value of SPI CRC Calculation |
| None |
Definition at line 624 of file stm32f4xx_hal_spi.h.
| #define IS_SPI_CRC_POLYNOMIAL | ( | __POLYNOMIAL__ | ) |
Checks if SPI polynomial value to be used for the CRC calculation, is in allowed range.
| __POLYNOMIAL__ | specifies the SPI polynomial value to be used for the CRC calculation. This parameter must be a number between Min_Data = 0 and Max_Data = 65535 |
| None |
Definition at line 632 of file stm32f4xx_hal_spi.h.
| #define IS_SPI_DATASIZE | ( | __DATASIZE__ | ) |
Checks if SPI Data Size parameter is in allowed range.
| __DATASIZE__ | specifies the SPI Data Size. This parameter can be a value of SPI Data Size |
| None |
Definition at line 561 of file stm32f4xx_hal_spi.h.
| #define IS_SPI_DIRECTION | ( | __MODE__ | ) |
Checks if SPI Direction Mode parameter is in allowed range.
| __MODE__ | specifies the SPI Direction Mode. This parameter can be a value of SPI Direction Mode |
| None |
Definition at line 539 of file stm32f4xx_hal_spi.h.
| #define IS_SPI_DIRECTION_2LINES | ( | __MODE__ | ) |
Checks if SPI Direction Mode parameter is 2 lines.
| __MODE__ | specifies the SPI Direction Mode. |
| None |
Definition at line 547 of file stm32f4xx_hal_spi.h.
| #define IS_SPI_DIRECTION_2LINES_OR_1LINE | ( | __MODE__ | ) |
Checks if SPI Direction Mode parameter is 1 or 2 lines.
| __MODE__ | specifies the SPI Direction Mode. |
| None |
Definition at line 553 of file stm32f4xx_hal_spi.h.
| #define IS_SPI_DMA_HANDLE | ( | __HANDLE__ | ) |
Checks if DMA handle is valid.
| __HANDLE__ | specifies a DMA Handle. |
| None |
Definition at line 640 of file stm32f4xx_hal_spi.h.
| #define IS_SPI_FIRST_BIT | ( | __BIT__ | ) |
Checks if SPI MSB LSB transmission parameter is in allowed range.
| __BIT__ | specifies the SPI MSB LSB transmission (whether data transfer starts from MSB or LSB bit). This parameter can be a value of SPI MSB LSB Transmission |
| None |
Definition at line 608 of file stm32f4xx_hal_spi.h.
| #define IS_SPI_MODE | ( | __MODE__ | ) |
Checks if SPI Mode parameter is in allowed range.
| __MODE__ | specifies the SPI Mode. This parameter can be a value of SPI Mode |
| None |
Definition at line 531 of file stm32f4xx_hal_spi.h.
| #define IS_SPI_NSS | ( | __NSS__ | ) |
Checks if SPI Slave Select parameter is in allowed range.
| __NSS__ | specifies the SPI Slave Select management parameter. This parameter can be a value of SPI Slave Select Management |
| None |
Definition at line 585 of file stm32f4xx_hal_spi.h.
| #define IS_SPI_TIMODE | ( | __MODE__ | ) |
Checks if SPI TI mode parameter is in allowed range.
| __MODE__ | specifies the SPI TI mode. This parameter can be a value of SPI TI Mode |
| None |
Definition at line 616 of file stm32f4xx_hal_spi.h.
| #define SPI_1LINE_RX | ( | __HANDLE__ | ) |
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 |
Definition at line 485 of file stm32f4xx_hal_spi.h.
| #define SPI_1LINE_TX | ( | __HANDLE__ | ) |
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 |
Definition at line 478 of file stm32f4xx_hal_spi.h.
| #define SPI_CHECK_FLAG | ( | __SR__, | |
| __FLAG__ ) |
Check whether the specified SPI flag is set or not.
| __SR__ | copy of SPI SR register. |
| __FLAG__ | specifies the flag to check. This parameter can be one of the following values:
|
| SET | or RESET. |
Definition at line 511 of file stm32f4xx_hal_spi.h.
| #define SPI_CHECK_IT_SOURCE | ( | __CR2__, | |
| __INTERRUPT__ ) |
Check whether the specified SPI Interrupt is set or not.
| __CR2__ | copy of SPI CR2 register. |
| __INTERRUPT__ | specifies the SPI interrupt source to check. This parameter can be one of the following values:
|
| SET | or RESET. |
Definition at line 523 of file stm32f4xx_hal_spi.h.
| #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 |
Definition at line 492 of file stm32f4xx_hal_spi.h.