STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
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 SPI_1LINE_TX | ( | __HANDLE__ | ) |
#include <stm32f4xx_hal_spi.h>
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 477 of file stm32f4xx_hal_spi.h.
Referenced by HAL_SPI_Transmit(), HAL_SPI_Transmit_DMA(), and HAL_SPI_Transmit_IT().
#define SPI_1LINE_RX | ( | __HANDLE__ | ) |
#include <stm32f4xx_hal_spi.h>
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 484 of file stm32f4xx_hal_spi.h.
Referenced by HAL_SPI_Receive(), HAL_SPI_Receive_DMA(), and HAL_SPI_Receive_IT().
#define SPI_RESET_CRC | ( | __HANDLE__ | ) |
#include <stm32f4xx_hal_spi.h>
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 491 of file stm32f4xx_hal_spi.h.
Referenced by HAL_SPI_Receive(), HAL_SPI_Receive_DMA(), HAL_SPI_Receive_IT(), HAL_SPI_Transmit(), HAL_SPI_Transmit_DMA(), HAL_SPI_Transmit_IT(), HAL_SPI_TransmitReceive(), HAL_SPI_TransmitReceive_DMA(), HAL_SPI_TransmitReceive_IT(), and SPI_WaitFlagStateUntilTimeout().
#define SPI_CHECK_FLAG | ( | __SR__, | |
__FLAG__ ) |
#include <stm32f4xx_hal_spi.h>
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 507 of file stm32f4xx_hal_spi.h.
Referenced by HAL_SPI_IRQHandler().
#define SPI_CHECK_IT_SOURCE | ( | __CR2__, | |
__INTERRUPT__ ) |
#include <stm32f4xx_hal_spi.h>
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 519 of file stm32f4xx_hal_spi.h.
Referenced by HAL_SPI_IRQHandler().
#define IS_SPI_MODE | ( | __MODE__ | ) |
#include <stm32f4xx_hal_spi.h>
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 527 of file stm32f4xx_hal_spi.h.
Referenced by HAL_SPI_Init().
#define IS_SPI_DIRECTION | ( | __MODE__ | ) |
#include <stm32f4xx_hal_spi.h>
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 535 of file stm32f4xx_hal_spi.h.
Referenced by HAL_SPI_Init().
#define IS_SPI_DIRECTION_2LINES | ( | __MODE__ | ) |
#include <stm32f4xx_hal_spi.h>
Checks if SPI Direction Mode parameter is 2 lines.
__MODE__ | specifies the SPI Direction Mode. |
None |
Definition at line 543 of file stm32f4xx_hal_spi.h.
Referenced by HAL_SPI_TransmitReceive(), HAL_SPI_TransmitReceive_DMA(), and HAL_SPI_TransmitReceive_IT().
#define IS_SPI_DIRECTION_2LINES_OR_1LINE | ( | __MODE__ | ) |
#include <stm32f4xx_hal_spi.h>
Checks if SPI Direction Mode parameter is 1 or 2 lines.
__MODE__ | specifies the SPI Direction Mode. |
None |
Definition at line 549 of file stm32f4xx_hal_spi.h.
Referenced by HAL_SPI_Transmit(), HAL_SPI_Transmit_DMA(), and HAL_SPI_Transmit_IT().
#define IS_SPI_DATASIZE | ( | __DATASIZE__ | ) |
#include <stm32f4xx_hal_spi.h>
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 557 of file stm32f4xx_hal_spi.h.
Referenced by HAL_SPI_Init().
#define IS_SPI_CPOL | ( | __CPOL__ | ) |
#include <stm32f4xx_hal_spi.h>
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 565 of file stm32f4xx_hal_spi.h.
Referenced by HAL_SPI_Init().
#define IS_SPI_CPHA | ( | __CPHA__ | ) |
#include <stm32f4xx_hal_spi.h>
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 573 of file stm32f4xx_hal_spi.h.
Referenced by HAL_SPI_Init().
#define IS_SPI_NSS | ( | __NSS__ | ) |
#include <stm32f4xx_hal_spi.h>
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 581 of file stm32f4xx_hal_spi.h.
Referenced by HAL_SPI_Init().
#define IS_SPI_BAUDRATE_PRESCALER | ( | __PRESCALER__ | ) |
#include <stm32f4xx_hal_spi.h>
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 590 of file stm32f4xx_hal_spi.h.
Referenced by HAL_SPI_Init().
#define IS_SPI_FIRST_BIT | ( | __BIT__ | ) |
#include <stm32f4xx_hal_spi.h>
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 604 of file stm32f4xx_hal_spi.h.
Referenced by HAL_SPI_Init().
#define IS_SPI_TIMODE | ( | __MODE__ | ) |
#include <stm32f4xx_hal_spi.h>
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 612 of file stm32f4xx_hal_spi.h.
Referenced by HAL_SPI_Init().
#define IS_SPI_CRC_CALCULATION | ( | __CALCULATION__ | ) |
#include <stm32f4xx_hal_spi.h>
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 620 of file stm32f4xx_hal_spi.h.
Referenced by HAL_SPI_Init().
#define IS_SPI_CRC_POLYNOMIAL | ( | __POLYNOMIAL__ | ) |
#include <stm32f4xx_hal_spi.h>
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 628 of file stm32f4xx_hal_spi.h.
Referenced by HAL_SPI_Init().
#define IS_SPI_DMA_HANDLE | ( | __HANDLE__ | ) |
#include <stm32f4xx_hal_spi.h>
Checks if DMA handle is valid.
__HANDLE__ | specifies a DMA Handle. |
None |
Definition at line 636 of file stm32f4xx_hal_spi.h.
Referenced by HAL_SPI_Receive_DMA(), HAL_SPI_Transmit_DMA(), and HAL_SPI_TransmitReceive_DMA().