STM32L443xx HAL User Manual
|
Defines | |
#define | IRDA_DIV_SAMPLING16(__PCLK__, __BAUD__) (((__PCLK__) + ((__BAUD__)/2U)) / (__BAUD__)) |
BRR division operation to set BRR register in 16-bit oversampling mode. | |
#define | IS_IRDA_BAUDRATE(__BAUDRATE__) ((__BAUDRATE__) < 115201U) |
Ensure that IRDA Baud rate is less or equal to maximum value. | |
#define | IS_IRDA_PRESCALER(__PRESCALER__) ((__PRESCALER__) > 0U) |
Ensure that IRDA prescaler value is strictly larger than 0. | |
#define | IS_IRDA_PARITY(__PARITY__) |
Ensure that IRDA frame parity is valid. | |
#define | IS_IRDA_TX_RX_MODE(__MODE__) |
Ensure that IRDA communication mode is valid. | |
#define | IS_IRDA_POWERMODE(__MODE__) |
Ensure that IRDA power mode is valid. | |
#define | IS_IRDA_STATE(__STATE__) |
Ensure that IRDA state is valid. | |
#define | IS_IRDA_MODE(__MODE__) |
Ensure that IRDA associated UART/USART mode is valid. | |
#define | IS_IRDA_ONE_BIT_SAMPLE(__ONEBIT__) |
Ensure that IRDA sampling rate is valid. | |
#define | IS_IRDA_DMA_TX(__DMATX__) |
Ensure that IRDA DMA TX mode is valid. | |
#define | IS_IRDA_DMA_RX(__DMARX__) |
Ensure that IRDA DMA RX mode is valid. | |
#define | IS_IRDA_REQUEST_PARAMETER(__PARAM__) |
Ensure that IRDA request is valid. |
#define IRDA_DIV_SAMPLING16 | ( | __PCLK__, | |
__BAUD__ | |||
) | (((__PCLK__) + ((__BAUD__)/2U)) / (__BAUD__)) |
BRR division operation to set BRR register in 16-bit oversampling mode.
__PCLK__ | IRDA clock source. |
__BAUD__ | Baud rate set by the user. |
Division | result |
Definition at line 238 of file stm32l4xx_hal_irda.c.
Referenced by IRDA_SetConfig().
#define IS_IRDA_BAUDRATE | ( | __BAUDRATE__ | ) | ((__BAUDRATE__) < 115201U) |
Ensure that IRDA Baud rate is less or equal to maximum value.
__BAUDRATE__ | specifies the IRDA Baudrate set by the user. |
True | or False |
Definition at line 715 of file stm32l4xx_hal_irda.h.
Referenced by IRDA_SetConfig().
#define IS_IRDA_DMA_RX | ( | __DMARX__ | ) |
(((__DMARX__) == IRDA_DMA_RX_DISABLE) || \ ((__DMARX__) == IRDA_DMA_RX_ENABLE))
Ensure that IRDA DMA RX mode is valid.
__DMARX__ | IRDA DMA RX mode. |
SET | (__DMARX__ is valid) or RESET (__DMARX__ is invalid) |
Definition at line 796 of file stm32l4xx_hal_irda.h.
#define IS_IRDA_DMA_TX | ( | __DMATX__ | ) |
(((__DMATX__) == IRDA_DMA_TX_DISABLE) || \ ((__DMATX__) == IRDA_DMA_TX_ENABLE))
Ensure that IRDA DMA TX mode is valid.
__DMATX__ | IRDA DMA TX mode. |
SET | (__DMATX__ is valid) or RESET (__DMATX__ is invalid) |
Definition at line 789 of file stm32l4xx_hal_irda.h.
#define IS_IRDA_MODE | ( | __MODE__ | ) |
(((__MODE__) == IRDA_MODE_DISABLE) || \ ((__MODE__) == IRDA_MODE_ENABLE))
Ensure that IRDA associated UART/USART mode is valid.
__MODE__ | IRDA associated UART/USART mode. |
SET | (__MODE__ is valid) or RESET (__MODE__ is invalid) |
Definition at line 775 of file stm32l4xx_hal_irda.h.
#define IS_IRDA_ONE_BIT_SAMPLE | ( | __ONEBIT__ | ) |
(((__ONEBIT__) == IRDA_ONE_BIT_SAMPLE_DISABLE) || \ ((__ONEBIT__) == IRDA_ONE_BIT_SAMPLE_ENABLE))
Ensure that IRDA sampling rate is valid.
__ONEBIT__ | IRDA sampling rate. |
SET | (__ONEBIT__ is valid) or RESET (__ONEBIT__ is invalid) |
Definition at line 782 of file stm32l4xx_hal_irda.h.
#define IS_IRDA_PARITY | ( | __PARITY__ | ) |
(((__PARITY__) == IRDA_PARITY_NONE) || \ ((__PARITY__) == IRDA_PARITY_EVEN) || \ ((__PARITY__) == IRDA_PARITY_ODD))
Ensure that IRDA frame parity is valid.
__PARITY__ | IRDA frame parity. |
SET | (__PARITY__ is valid) or RESET (__PARITY__ is invalid) |
Definition at line 727 of file stm32l4xx_hal_irda.h.
Referenced by IRDA_SetConfig().
#define IS_IRDA_POWERMODE | ( | __MODE__ | ) |
(((__MODE__) == IRDA_POWERMODE_LOWPOWER) || \ ((__MODE__) == IRDA_POWERMODE_NORMAL))
Ensure that IRDA power mode is valid.
__MODE__ | IRDA power mode. |
SET | (__MODE__ is valid) or RESET (__MODE__ is invalid) |
Definition at line 742 of file stm32l4xx_hal_irda.h.
Referenced by IRDA_SetConfig().
#define IS_IRDA_PRESCALER | ( | __PRESCALER__ | ) | ((__PRESCALER__) > 0U) |
Ensure that IRDA prescaler value is strictly larger than 0.
__PRESCALER__ | specifies the IRDA prescaler value set by the user. |
True | or False |
Definition at line 721 of file stm32l4xx_hal_irda.h.
Referenced by IRDA_SetConfig().
#define IS_IRDA_REQUEST_PARAMETER | ( | __PARAM__ | ) |
(((__PARAM__) == IRDA_AUTOBAUD_REQUEST) || \ ((__PARAM__) == IRDA_RXDATA_FLUSH_REQUEST) || \ ((__PARAM__) == IRDA_TXDATA_FLUSH_REQUEST))
Ensure that IRDA request is valid.
__PARAM__ | IRDA request. |
SET | (__PARAM__ is valid) or RESET (__PARAM__ is invalid) |
Definition at line 803 of file stm32l4xx_hal_irda.h.
#define IS_IRDA_STATE | ( | __STATE__ | ) |
(((__STATE__) == IRDA_STATE_DISABLE) || \ ((__STATE__) == IRDA_STATE_ENABLE))
Ensure that IRDA state is valid.
__STATE__ | IRDA state mode. |
SET | (__STATE__ is valid) or RESET (__STATE__ is invalid) |
Definition at line 768 of file stm32l4xx_hal_irda.h.
#define IS_IRDA_TX_RX_MODE | ( | __MODE__ | ) |
((((__MODE__)\ & (~((uint32_t)(IRDA_MODE_TX_RX)))) == 0x00U) && ((__MODE__) != 0x00U))
Ensure that IRDA communication mode is valid.
__MODE__ | IRDA communication mode. |
SET | (__MODE__ is valid) or RESET (__MODE__ is invalid) |
Definition at line 735 of file stm32l4xx_hal_irda.h.
Referenced by IRDA_SetConfig().