Macros | |
#define | IS_SPI_BAUDRATE_PRESCALER(__PRESCALER__) |
Checks if SPI Baudrate prescaler parameter is in allowed range. More... | |
#define | IS_SPI_BAUDRATE_PRESCALER(__PRESCALER__) |
Checks if SPI Baudrate prescaler parameter is in allowed range. More... | |
#define | IS_SPI_BAUDRATE_PRESCALER(__PRESCALER__) |
Checks if SPI Baudrate prescaler parameter is in allowed range. More... | |
#define | IS_SPI_BAUDRATE_PRESCALER(PRESCALER) |
#define | IS_SPI_CPHA(__CPHA__) |
Checks if SPI Clock Phase parameter is in allowed range. More... | |
#define | IS_SPI_CPHA(__CPHA__) |
Checks if SPI Clock Phase parameter is in allowed range. More... | |
#define | IS_SPI_CPHA(__CPHA__) |
Checks if SPI Clock Phase parameter is in allowed range. More... | |
#define | IS_SPI_CPHA(CPHA) |
#define | IS_SPI_CPOL(__CPOL__) |
Checks if SPI Serial clock steady state parameter is in allowed range. More... | |
#define | IS_SPI_CPOL(__CPOL__) |
Checks if SPI Serial clock steady state parameter is in allowed range. More... | |
#define | IS_SPI_CPOL(__CPOL__) |
Checks if SPI Serial clock steady state parameter is in allowed range. More... | |
#define | IS_SPI_CPOL(CPOL) |
#define | IS_SPI_CRC_CALCULATION(__CALCULATION__) |
Checks if SPI CRC calculation enabled state is in allowed range. More... | |
#define | IS_SPI_CRC_CALCULATION(__CALCULATION__) |
Checks if SPI CRC calculation enabled state is in allowed range. More... | |
#define | IS_SPI_CRC_CALCULATION(__CALCULATION__) |
Checks if SPI CRC calculation enabled state is in allowed range. More... | |
#define | IS_SPI_CRC_CALCULATION(CALCULATION) |
#define | IS_SPI_CRC_INITIALIZATION_PATTERN(PATTERN) |
#define | IS_SPI_CRC_LENGTH(__LENGTH__) |
Checks if SPI CRC length is in allowed range. More... | |
#define | IS_SPI_CRC_LENGTH(LENGTH) |
#define | IS_SPI_CRC_POLYNOMIAL(__POLYNOMIAL__) (((__POLYNOMIAL__) >= 0x1U) && ((__POLYNOMIAL__) <= 0xFFFFU) && (((__POLYNOMIAL__)&0x1U) != 0U)) |
Checks if SPI polynomial value to be used for the CRC calculation, is in allowed range. More... | |
#define | IS_SPI_CRC_POLYNOMIAL(__POLYNOMIAL__) (((__POLYNOMIAL__) >= 0x1U) && ((__POLYNOMIAL__) <= 0xFFFFU) && (((__POLYNOMIAL__)&0x1U) != 0U)) |
Checks if SPI polynomial value to be used for the CRC calculation, is in allowed range. More... | |
#define | IS_SPI_CRC_POLYNOMIAL(__POLYNOMIAL__) (((__POLYNOMIAL__) >= 0x1U) && ((__POLYNOMIAL__) <= 0xFFFFU) && (((__POLYNOMIAL__)&0x1U) != 0U)) |
Checks if SPI polynomial value to be used for the CRC calculation, is in allowed range. More... | |
#define | IS_SPI_CRC_POLYNOMIAL(POLYNOMIAL) ((POLYNOMIAL) >= 0x1UL) |
#define | IS_SPI_DATASIZE(__DATASIZE__) |
Checks if SPI Data Size parameter is in allowed range. More... | |
#define | IS_SPI_DATASIZE(__DATASIZE__) |
Checks if SPI Data Size parameter is in allowed range. More... | |
#define | IS_SPI_DATASIZE(__DATASIZE__) |
Checks if SPI Data Size parameter is in allowed range. More... | |
#define | IS_SPI_DATASIZE(DATASIZE) |
#define | IS_SPI_DIRECTION(__MODE__) |
Checks if SPI Direction Mode parameter is in allowed range. More... | |
#define | IS_SPI_DIRECTION(__MODE__) |
Checks if SPI Direction Mode parameter is in allowed range. More... | |
#define | IS_SPI_DIRECTION(__MODE__) |
Checks if SPI Direction Mode parameter is in allowed range. More... | |
#define | IS_SPI_DIRECTION(MODE) |
#define | IS_SPI_DIRECTION_2LINES(__MODE__) ((__MODE__) == SPI_DIRECTION_2LINES) |
Checks if SPI Direction Mode parameter is 2 lines. More... | |
#define | IS_SPI_DIRECTION_2LINES(__MODE__) ((__MODE__) == SPI_DIRECTION_2LINES) |
Checks if SPI Direction Mode parameter is 2 lines. More... | |
#define | IS_SPI_DIRECTION_2LINES(__MODE__) ((__MODE__) == SPI_DIRECTION_2LINES) |
Checks if SPI Direction Mode parameter is 2 lines. More... | |
#define | IS_SPI_DIRECTION_2LINES(MODE) ((MODE) == SPI_DIRECTION_2LINES) |
#define | IS_SPI_DIRECTION_2LINES_OR_1LINE(__MODE__) |
Checks if SPI Direction Mode parameter is 1 or 2 lines. More... | |
#define | IS_SPI_DIRECTION_2LINES_OR_1LINE(__MODE__) |
Checks if SPI Direction Mode parameter is 1 or 2 lines. More... | |
#define | IS_SPI_DIRECTION_2LINES_OR_1LINE(__MODE__) |
Checks if SPI Direction Mode parameter is 1 or 2 lines. More... | |
#define | IS_SPI_DIRECTION_2LINES_OR_1LINE_2LINES_RXONLY(MODE) |
#define | IS_SPI_DIRECTION_2LINES_OR_1LINE_2LINES_TXONLY(MODE) |
#define | IS_SPI_DMA_HANDLE(__HANDLE__) ((__HANDLE__) != NULL) |
Checks if DMA handle is valid. More... | |
#define | IS_SPI_DMA_HANDLE(__HANDLE__) ((__HANDLE__) != NULL) |
Checks if DMA handle is valid. More... | |
#define | IS_SPI_DMA_HANDLE(__HANDLE__) ((__HANDLE__) != NULL) |
Checks if DMA handle is valid. More... | |
#define | IS_SPI_FIFOTHRESHOLD(THRESHOLD) |
#define | IS_SPI_FIRST_BIT(__BIT__) |
Checks if SPI MSB LSB transmission parameter is in allowed range. More... | |
#define | IS_SPI_FIRST_BIT(__BIT__) |
Checks if SPI MSB LSB transmission parameter is in allowed range. More... | |
#define | IS_SPI_FIRST_BIT(__BIT__) |
Checks if SPI MSB LSB transmission parameter is in allowed range. More... | |
#define | IS_SPI_FIRST_BIT(BIT) |
#define | IS_SPI_MODE(__MODE__) |
Checks if SPI Mode parameter is in allowed range. More... | |
#define | IS_SPI_MODE(__MODE__) |
Checks if SPI Mode parameter is in allowed range. More... | |
#define | IS_SPI_MODE(__MODE__) |
Checks if SPI Mode parameter is in allowed range. More... | |
#define | IS_SPI_MODE(MODE) |
#define | IS_SPI_NSS(__NSS__) |
Checks if SPI Slave Select parameter is in allowed range. More... | |
#define | IS_SPI_NSS(__NSS__) |
Checks if SPI Slave Select parameter is in allowed range. More... | |
#define | IS_SPI_NSS(__NSS__) |
Checks if SPI Slave Select parameter is in allowed range. More... | |
#define | IS_SPI_NSS(NSS) |
#define | IS_SPI_NSSP(__NSSP__) |
Checks if SPI NSS Pulse parameter is in allowed range. More... | |
#define | IS_SPI_NSSP(NSSP) |
#define | IS_SPI_TIMODE(__MODE__) |
Checks if SPI TI mode parameter is in allowed range. More... | |
#define | IS_SPI_TIMODE(__MODE__) |
Checks if SPI TI mode parameter is in allowed range. More... | |
#define | IS_SPI_TIMODE(__MODE__) |
Checks if SPI TI mode parameter is in allowed range. More... | |
#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_BIDIOE) |
Set the SPI receive-only mode. More... | |
#define | SPI_1LINE_RX(__HANDLE__) CLEAR_BIT((__HANDLE__)->Instance->CR1, SPI_CR1_BIDIOE) |
Set the SPI receive-only mode. More... | |
#define | SPI_1LINE_RX(__HANDLE__) CLEAR_BIT((__HANDLE__)->Instance->CR1, SPI_CR1_BIDIOE) |
Set the SPI receive-only mode. More... | |
#define | SPI_1LINE_RX(__HANDLE__) CLEAR_BIT((__HANDLE__)->Instance->CR1 ,SPI_CR1_HDDIR) |
Set the SPI receive-only mode. More... | |
#define | SPI_1LINE_TX(__HANDLE__) SET_BIT((__HANDLE__)->Instance->CR1, SPI_CR1_BIDIOE) |
Set the SPI transmit-only mode. More... | |
#define | SPI_1LINE_TX(__HANDLE__) SET_BIT((__HANDLE__)->Instance->CR1, SPI_CR1_BIDIOE) |
Set the SPI transmit-only mode. More... | |
#define | SPI_1LINE_TX(__HANDLE__) SET_BIT((__HANDLE__)->Instance->CR1, SPI_CR1_BIDIOE) |
Set the SPI transmit-only mode. More... | |
#define | SPI_1LINE_TX(__HANDLE__) SET_BIT((__HANDLE__)->Instance->CR1 , SPI_CR1_HDDIR) |
Set the SPI transmit-only mode. More... | |
#define | SPI_CHECK_FLAG(__SR__, __FLAG__) ((((__SR__) & ((__FLAG__) & SPI_FLAG_MASK)) == ((__FLAG__) & SPI_FLAG_MASK)) ? SET : RESET) |
Check whether the specified SPI flag is set or not. More... | |
#define | SPI_CHECK_FLAG(__SR__, __FLAG__) ((((__SR__) & ((__FLAG__) & SPI_FLAG_MASK)) == ((__FLAG__) & SPI_FLAG_MASK)) ? SET : RESET) |
Check whether the specified SPI flag is set or not. More... | |
#define | SPI_CHECK_FLAG(__SR__, __FLAG__) ((((__SR__) & ((__FLAG__) & SPI_FLAG_MASK)) == ((__FLAG__) & SPI_FLAG_MASK)) ? SET : RESET) |
Check whether the specified SPI flag is set or not. More... | |
#define | SPI_CHECK_IT_SOURCE(__CR2__, __INTERRUPT__) ((((__CR2__) & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET) |
Check whether the specified SPI Interrupt is set or not. More... | |
#define | SPI_CHECK_IT_SOURCE(__CR2__, __INTERRUPT__) ((((__CR2__) & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET) |
Check whether the specified SPI Interrupt is set or not. More... | |
#define | SPI_CHECK_IT_SOURCE(__CR2__, __INTERRUPT__) ((((__CR2__) & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET) |
Check whether the specified SPI Interrupt is set or not. More... | |
#define | SPI_RESET_CRC(__HANDLE__) |
Reset the CRC calculation of the SPI. More... | |
#define | SPI_RESET_CRC(__HANDLE__) |
Reset the CRC calculation of the SPI. More... | |
#define | SPI_RESET_CRC(__HANDLE__) |
Reset the CRC calculation of the SPI. More... | |
#define IS_SPI_BAUDRATE_PRESCALER | ( | __PRESCALER__ | ) |
Checks if SPI Baudrate prescaler parameter is in allowed range.
<strong>PRESCALER</strong> | specifies the SPI Baudrate prescaler. This parameter can be a value of SPI BaudRate Prescaler |
None |
Definition at line 589 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define IS_SPI_BAUDRATE_PRESCALER | ( | __PRESCALER__ | ) |
Checks if SPI Baudrate prescaler parameter is in allowed range.
<strong>PRESCALER</strong> | specifies the SPI Baudrate prescaler. This parameter can be a value of SPI BaudRate Prescaler |
None |
Definition at line 589 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define IS_SPI_BAUDRATE_PRESCALER | ( | __PRESCALER__ | ) |
Checks if SPI Baudrate prescaler parameter is in allowed range.
<strong>PRESCALER</strong> | specifies the SPI Baudrate prescaler. This parameter can be a value of SPI BaudRate Prescaler |
None |
Definition at line 697 of file stm32f7xx_hal_spi.h.
#define IS_SPI_BAUDRATE_PRESCALER | ( | PRESCALER | ) |
Definition at line 1010 of file stm32h7xx_hal_spi.h.
#define IS_SPI_CPHA | ( | __CPHA__ | ) |
Checks if SPI Clock Phase parameter is in allowed range.
<strong>CPHA</strong> | specifies the SPI Clock Phase. This parameter can be a value of SPI Clock Phase |
None |
Definition at line 572 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define IS_SPI_CPHA | ( | __CPHA__ | ) |
Checks if SPI Clock Phase parameter is in allowed range.
<strong>CPHA</strong> | specifies the SPI Clock Phase. This parameter can be a value of SPI Clock Phase |
None |
Definition at line 572 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define IS_SPI_CPHA | ( | __CPHA__ | ) |
Checks if SPI Clock Phase parameter is in allowed range.
<strong>CPHA</strong> | specifies the SPI Clock Phase. This parameter can be a value of SPI Clock Phase |
None |
Definition at line 672 of file stm32f7xx_hal_spi.h.
#define IS_SPI_CPHA | ( | CPHA | ) |
Definition at line 1000 of file stm32h7xx_hal_spi.h.
#define IS_SPI_CPOL | ( | __CPOL__ | ) |
Checks if SPI Serial clock steady state parameter is in allowed range.
<strong>CPOL</strong> | specifies the SPI serial clock steady state. This parameter can be a value of SPI Clock Polarity |
None |
Definition at line 564 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define IS_SPI_CPOL | ( | __CPOL__ | ) |
Checks if SPI Serial clock steady state parameter is in allowed range.
<strong>CPOL</strong> | specifies the SPI serial clock steady state. This parameter can be a value of SPI Clock Polarity |
None |
Definition at line 564 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define IS_SPI_CPOL | ( | __CPOL__ | ) |
Checks if SPI Serial clock steady state parameter is in allowed range.
<strong>CPOL</strong> | specifies the SPI serial clock steady state. This parameter can be a value of SPI Clock Polarity |
None |
Definition at line 664 of file stm32f7xx_hal_spi.h.
#define IS_SPI_CPOL | ( | CPOL | ) |
Definition at line 997 of file stm32h7xx_hal_spi.h.
#define IS_SPI_CRC_CALCULATION | ( | __CALCULATION__ | ) |
Checks if SPI CRC calculation enabled state is in allowed range.
<strong>CALCULATION</strong> | specifies the SPI CRC calculation enable state. This parameter can be a value of SPI CRC Calculation |
None |
Definition at line 619 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define IS_SPI_CRC_CALCULATION | ( | __CALCULATION__ | ) |
Checks if SPI CRC calculation enabled state is in allowed range.
<strong>CALCULATION</strong> | specifies the SPI CRC calculation enable state. This parameter can be a value of SPI CRC Calculation |
None |
Definition at line 619 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define IS_SPI_CRC_CALCULATION | ( | __CALCULATION__ | ) |
Checks if SPI CRC calculation enabled state is in allowed range.
<strong>CALCULATION</strong> | specifies the SPI CRC calculation enable state. This parameter can be a value of SPI CRC Calculation |
None |
Definition at line 727 of file stm32f7xx_hal_spi.h.
#define IS_SPI_CRC_CALCULATION | ( | CALCULATION | ) |
Definition at line 1025 of file stm32h7xx_hal_spi.h.
#define IS_SPI_CRC_INITIALIZATION_PATTERN | ( | PATTERN | ) |
Definition at line 1028 of file stm32h7xx_hal_spi.h.
#define IS_SPI_CRC_LENGTH | ( | __LENGTH__ | ) |
Checks if SPI CRC length is in allowed range.
<strong>LENGTH</strong> | specifies the SPI CRC length. This parameter can be a value of SPI CRC Length |
None |
Definition at line 735 of file stm32f7xx_hal_spi.h.
#define IS_SPI_CRC_LENGTH | ( | LENGTH | ) |
Definition at line 1031 of file stm32h7xx_hal_spi.h.
#define IS_SPI_CRC_POLYNOMIAL | ( | __POLYNOMIAL__ | ) | (((__POLYNOMIAL__) >= 0x1U) && ((__POLYNOMIAL__) <= 0xFFFFU) && (((__POLYNOMIAL__)&0x1U) != 0U)) |
Checks if SPI polynomial value to be used for the CRC calculation, is in allowed range.
<strong>POLYNOMIAL</strong> | 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 627 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define IS_SPI_CRC_POLYNOMIAL | ( | __POLYNOMIAL__ | ) | (((__POLYNOMIAL__) >= 0x1U) && ((__POLYNOMIAL__) <= 0xFFFFU) && (((__POLYNOMIAL__)&0x1U) != 0U)) |
Checks if SPI polynomial value to be used for the CRC calculation, is in allowed range.
<strong>POLYNOMIAL</strong> | 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 627 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define IS_SPI_CRC_POLYNOMIAL | ( | __POLYNOMIAL__ | ) | (((__POLYNOMIAL__) >= 0x1U) && ((__POLYNOMIAL__) <= 0xFFFFU) && (((__POLYNOMIAL__)&0x1U) != 0U)) |
Checks if SPI polynomial value to be used for the CRC calculation, is in allowed range.
<strong>POLYNOMIAL</strong> | 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 744 of file stm32f7xx_hal_spi.h.
#define IS_SPI_CRC_POLYNOMIAL | ( | POLYNOMIAL | ) | ((POLYNOMIAL) >= 0x1UL) |
Definition at line 1062 of file stm32h7xx_hal_spi.h.
#define IS_SPI_DATASIZE | ( | __DATASIZE__ | ) |
Checks if SPI Data Size parameter is in allowed range.
<strong>DATASIZE</strong> | specifies the SPI Data Size. This parameter can be a value of SPI Data Size |
None |
Definition at line 556 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define IS_SPI_DATASIZE | ( | __DATASIZE__ | ) |
Checks if SPI Data Size parameter is in allowed range.
<strong>DATASIZE</strong> | specifies the SPI Data Size. This parameter can be a value of SPI Data Size |
None |
Definition at line 556 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define IS_SPI_DATASIZE | ( | __DATASIZE__ | ) |
Checks if SPI Data Size parameter is in allowed range.
<strong>DATASIZE</strong> | specifies the SPI Data Size. This parameter can be a value of SPI Data Size |
None |
Definition at line 645 of file stm32f7xx_hal_spi.h.
#define IS_SPI_DATASIZE | ( | DATASIZE | ) |
Definition at line 949 of file stm32h7xx_hal_spi.h.
#define IS_SPI_DIRECTION | ( | __MODE__ | ) |
Checks if SPI Direction Mode parameter is in allowed range.
<strong>MODE</strong> | specifies the SPI Direction Mode. This parameter can be a value of SPI Direction Mode |
None |
Definition at line 534 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define IS_SPI_DIRECTION | ( | __MODE__ | ) |
Checks if SPI Direction Mode parameter is in allowed range.
<strong>MODE</strong> | specifies the SPI Direction Mode. This parameter can be a value of SPI Direction Mode |
None |
Definition at line 534 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define IS_SPI_DIRECTION | ( | __MODE__ | ) |
Checks if SPI Direction Mode parameter is in allowed range.
<strong>MODE</strong> | specifies the SPI Direction Mode. This parameter can be a value of SPI Direction Mode |
None |
Definition at line 623 of file stm32f7xx_hal_spi.h.
#define IS_SPI_DIRECTION | ( | MODE | ) |
Definition at line 932 of file stm32h7xx_hal_spi.h.
#define IS_SPI_DIRECTION_2LINES | ( | __MODE__ | ) | ((__MODE__) == SPI_DIRECTION_2LINES) |
Checks if SPI Direction Mode parameter is 2 lines.
<strong>MODE</strong> | specifies the SPI Direction Mode. |
None |
Definition at line 542 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define IS_SPI_DIRECTION_2LINES | ( | __MODE__ | ) | ((__MODE__) == SPI_DIRECTION_2LINES) |
Checks if SPI Direction Mode parameter is 2 lines.
<strong>MODE</strong> | specifies the SPI Direction Mode. |
None |
Definition at line 542 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define IS_SPI_DIRECTION_2LINES | ( | __MODE__ | ) | ((__MODE__) == SPI_DIRECTION_2LINES) |
Checks if SPI Direction Mode parameter is 2 lines.
<strong>MODE</strong> | specifies the SPI Direction Mode. |
None |
Definition at line 631 of file stm32f7xx_hal_spi.h.
#define IS_SPI_DIRECTION_2LINES | ( | MODE | ) | ((MODE) == SPI_DIRECTION_2LINES) |
Definition at line 937 of file stm32h7xx_hal_spi.h.
#define IS_SPI_DIRECTION_2LINES_OR_1LINE | ( | __MODE__ | ) |
Checks if SPI Direction Mode parameter is 1 or 2 lines.
<strong>MODE</strong> | specifies the SPI Direction Mode. |
None |
Definition at line 548 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define IS_SPI_DIRECTION_2LINES_OR_1LINE | ( | __MODE__ | ) |
Checks if SPI Direction Mode parameter is 1 or 2 lines.
<strong>MODE</strong> | specifies the SPI Direction Mode. |
None |
Definition at line 548 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define IS_SPI_DIRECTION_2LINES_OR_1LINE | ( | __MODE__ | ) |
Checks if SPI Direction Mode parameter is 1 or 2 lines.
<strong>MODE</strong> | specifies the SPI Direction Mode. |
None |
Definition at line 637 of file stm32f7xx_hal_spi.h.
#define IS_SPI_DIRECTION_2LINES_OR_1LINE_2LINES_RXONLY | ( | MODE | ) |
Definition at line 944 of file stm32h7xx_hal_spi.h.
#define IS_SPI_DIRECTION_2LINES_OR_1LINE_2LINES_TXONLY | ( | MODE | ) |
Definition at line 939 of file stm32h7xx_hal_spi.h.
#define IS_SPI_DMA_HANDLE | ( | __HANDLE__ | ) | ((__HANDLE__) != NULL) |
Checks if DMA handle is valid.
<strong>HANDLE</strong> | specifies a DMA Handle. |
None |
Definition at line 633 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define IS_SPI_DMA_HANDLE | ( | __HANDLE__ | ) | ((__HANDLE__) != NULL) |
Checks if DMA handle is valid.
<strong>HANDLE</strong> | specifies a DMA Handle. |
None |
Definition at line 633 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define IS_SPI_DMA_HANDLE | ( | __HANDLE__ | ) | ((__HANDLE__) != NULL) |
Checks if DMA handle is valid.
<strong>HANDLE</strong> | specifies a DMA Handle. |
None |
Definition at line 750 of file stm32f7xx_hal_spi.h.
#define IS_SPI_FIFOTHRESHOLD | ( | THRESHOLD | ) |
Definition at line 980 of file stm32h7xx_hal_spi.h.
#define IS_SPI_FIRST_BIT | ( | __BIT__ | ) |
Checks if SPI MSB LSB transmission parameter is in allowed range.
<strong>BIT</strong> | 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 603 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define IS_SPI_FIRST_BIT | ( | __BIT__ | ) |
Checks if SPI MSB LSB transmission parameter is in allowed range.
<strong>BIT</strong> | 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 603 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define IS_SPI_FIRST_BIT | ( | __BIT__ | ) |
Checks if SPI MSB LSB transmission parameter is in allowed range.
<strong>BIT</strong> | 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 711 of file stm32f7xx_hal_spi.h.
#define IS_SPI_FIRST_BIT | ( | BIT | ) |
Definition at line 1019 of file stm32h7xx_hal_spi.h.
#define IS_SPI_MODE | ( | __MODE__ | ) |
Checks if SPI Mode parameter is in allowed range.
None |
Definition at line 526 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define IS_SPI_MODE | ( | __MODE__ | ) |
Checks if SPI Mode parameter is in allowed range.
None |
Definition at line 526 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define IS_SPI_MODE | ( | __MODE__ | ) |
Checks if SPI Mode parameter is in allowed range.
None |
Definition at line 615 of file stm32f7xx_hal_spi.h.
#define IS_SPI_MODE | ( | MODE | ) |
Definition at line 929 of file stm32h7xx_hal_spi.h.
#define IS_SPI_NSS | ( | __NSS__ | ) |
Checks if SPI Slave Select parameter is in allowed range.
<strong>NSS</strong> | specifies the SPI Slave Select management parameter. This parameter can be a value of SPI Slave Select Management |
None |
Definition at line 580 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define IS_SPI_NSS | ( | __NSS__ | ) |
Checks if SPI Slave Select parameter is in allowed range.
<strong>NSS</strong> | specifies the SPI Slave Select management parameter. This parameter can be a value of SPI Slave Select Management |
None |
Definition at line 580 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define IS_SPI_NSS | ( | __NSS__ | ) |
Checks if SPI Slave Select parameter is in allowed range.
<strong>NSS</strong> | specifies the SPI Slave Select management parameter. This parameter can be a value of SPI Slave Select Management |
None |
Definition at line 680 of file stm32f7xx_hal_spi.h.
#define IS_SPI_NSS | ( | NSS | ) |
Definition at line 1003 of file stm32h7xx_hal_spi.h.
#define IS_SPI_NSSP | ( | __NSSP__ | ) |
Checks if SPI NSS Pulse parameter is in allowed range.
<strong>NSSP</strong> | specifies the SPI NSS Pulse Mode parameter. This parameter can be a value of SPI NSS Pulse Mode |
None |
Definition at line 689 of file stm32f7xx_hal_spi.h.
#define IS_SPI_NSSP | ( | NSSP | ) |
Definition at line 1007 of file stm32h7xx_hal_spi.h.
#define IS_SPI_TIMODE | ( | __MODE__ | ) |
Checks if SPI TI mode parameter is in allowed range.
<strong>MODE</strong> | specifies the SPI TI mode. This parameter can be a value of SPI TI Mode |
None |
Definition at line 611 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define IS_SPI_TIMODE | ( | __MODE__ | ) |
Checks if SPI TI mode parameter is in allowed range.
<strong>MODE</strong> | specifies the SPI TI mode. This parameter can be a value of SPI TI Mode |
None |
Definition at line 611 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define IS_SPI_TIMODE | ( | __MODE__ | ) |
Checks if SPI TI mode parameter is in allowed range.
<strong>MODE</strong> | specifies the SPI TI mode. This parameter can be a value of SPI TI Mode |
None |
Definition at line 719 of file stm32f7xx_hal_spi.h.
#define IS_SPI_TIMODE | ( | MODE | ) |
Definition at line 1022 of file stm32h7xx_hal_spi.h.
#define IS_SPI_UNDERRUN_BEHAVIOUR | ( | MODE | ) |
Definition at line 1068 of file stm32h7xx_hal_spi.h.
#define IS_SPI_UNDERRUN_DETECTION | ( | MODE | ) |
Definition at line 1064 of file stm32h7xx_hal_spi.h.
#define SPI_1LINE_RX | ( | __HANDLE__ | ) | CLEAR_BIT((__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 |
Definition at line 485 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define SPI_1LINE_RX | ( | __HANDLE__ | ) | CLEAR_BIT((__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 |
Definition at line 485 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define SPI_1LINE_RX | ( | __HANDLE__ | ) | CLEAR_BIT((__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 |
Definition at line 572 of file stm32f7xx_hal_spi.h.
#define SPI_1LINE_RX | ( | __HANDLE__ | ) | CLEAR_BIT((__HANDLE__)->Instance->CR1 ,SPI_CR1_HDDIR) |
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 |
Definition at line 927 of file stm32h7xx_hal_spi.h.
#define SPI_1LINE_TX | ( | __HANDLE__ | ) | SET_BIT((__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 |
Definition at line 478 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define SPI_1LINE_TX | ( | __HANDLE__ | ) | SET_BIT((__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 |
Definition at line 478 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define SPI_1LINE_TX | ( | __HANDLE__ | ) | SET_BIT((__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 |
Definition at line 565 of file stm32f7xx_hal_spi.h.
#define SPI_1LINE_TX | ( | __HANDLE__ | ) | SET_BIT((__HANDLE__)->Instance->CR1 , SPI_CR1_HDDIR) |
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 |
Definition at line 920 of file stm32h7xx_hal_spi.h.
#define SPI_CHECK_FLAG | ( | __SR__, | |
__FLAG__ | |||
) | ((((__SR__) & ((__FLAG__) & SPI_FLAG_MASK)) == ((__FLAG__) & SPI_FLAG_MASK)) ? SET : RESET) |
Check whether the specified SPI flag is set or not.
<strong>SR</strong> | copy of SPI SR regsiter. |
<strong>FLAG</strong> | specifies the flag to check. This parameter can be one of the following values:
|
SET | or RESET. |
Definition at line 508 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define SPI_CHECK_FLAG | ( | __SR__, | |
__FLAG__ | |||
) | ((((__SR__) & ((__FLAG__) & SPI_FLAG_MASK)) == ((__FLAG__) & SPI_FLAG_MASK)) ? SET : RESET) |
Check whether the specified SPI flag is set or not.
<strong>SR</strong> | copy of SPI SR regsiter. |
<strong>FLAG</strong> | specifies the flag to check. This parameter can be one of the following values:
|
SET | or RESET. |
Definition at line 508 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define SPI_CHECK_FLAG | ( | __SR__, | |
__FLAG__ | |||
) | ((((__SR__) & ((__FLAG__) & SPI_FLAG_MASK)) == ((__FLAG__) & SPI_FLAG_MASK)) ? SET : RESET) |
Check whether the specified SPI flag is set or not.
<strong>SR</strong> | copy of SPI SR regsiter. |
<strong>FLAG</strong> | specifies the flag to check. This parameter can be one of the following values:
|
SET | or RESET. |
Definition at line 597 of file stm32f7xx_hal_spi.h.
#define SPI_CHECK_IT_SOURCE | ( | __CR2__, | |
__INTERRUPT__ | |||
) | ((((__CR2__) & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET) |
Check whether the specified SPI Interrupt is set or not.
<strong>CR2</strong> | copy of SPI CR2 regsiter. |
<strong>INTERRUPT</strong> | 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 stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define SPI_CHECK_IT_SOURCE | ( | __CR2__, | |
__INTERRUPT__ | |||
) | ((((__CR2__) & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET) |
Check whether the specified SPI Interrupt is set or not.
<strong>CR2</strong> | copy of SPI CR2 regsiter. |
<strong>INTERRUPT</strong> | 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 stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#define SPI_CHECK_IT_SOURCE | ( | __CR2__, | |
__INTERRUPT__ | |||
) | ((((__CR2__) & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET) |
Check whether the specified SPI Interrupt is set or not.
<strong>CR2</strong> | copy of SPI CR2 regsiter. |
<strong>INTERRUPT</strong> | specifies the SPI interrupt source to check. This parameter can be one of the following values:
|
SET | or RESET. |
Definition at line 608 of file stm32f7xx_hal_spi.h.
#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 |
Definition at line 492 of file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#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 |
Definition at line 492 of file stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h.
#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 |
Definition at line 579 of file stm32f7xx_hal_spi.h.