Macros | |
#define | IRDA_BRR(_PCLK_, _BAUD_) |
#define | IRDA_DIV(_PCLK_, _BAUD_) ((uint32_t)((((uint64_t)(_PCLK_))*25U)/(4U*(((uint64_t)(_BAUD_)))))) |
#define | IRDA_DIVFRAQ(_PCLK_, _BAUD_) ((((IRDA_DIV((_PCLK_), (_BAUD_)) - (IRDA_DIVMANT((_PCLK_), (_BAUD_)) * 100U)) * 16U) + 50U) / 100U) |
#define | IRDA_DIVMANT(_PCLK_, _BAUD_) (IRDA_DIV((_PCLK_), (_BAUD_))/100U) |
#define | IS_IRDA_BAUDRATE(__BAUDRATE__) ((__BAUDRATE__) < 115201U) |
Ensure that IRDA Baud rate is less or equal to maximum value. More... | |
#define | IS_IRDA_BAUDRATE(BAUDRATE) ((BAUDRATE) < 115201U) |
#define | IS_IRDA_DMA_RX(__DMARX__) |
Ensure that IRDA DMA RX mode is valid. More... | |
#define | IS_IRDA_DMA_TX(__DMATX__) |
Ensure that IRDA DMA TX mode is valid. More... | |
#define | IS_IRDA_MODE(__MODE__) |
Ensure that IRDA associated UART/USART mode is valid. More... | |
#define | IS_IRDA_MODE(MODE) ((((MODE) & 0x0000FFF3U) == 0x00U) && ((MODE) != 0x00000000U)) |
#define | IS_IRDA_ONE_BIT_SAMPLE(__ONEBIT__) |
Ensure that IRDA sampling rate is valid. More... | |
#define | IS_IRDA_PARITY(__PARITY__) |
Ensure that IRDA frame parity is valid. More... | |
#define | IS_IRDA_PARITY(PARITY) |
#define | IS_IRDA_POWERMODE(__MODE__) |
Ensure that IRDA power mode is valid. More... | |
#define | IS_IRDA_POWERMODE(MODE) |
#define | IS_IRDA_PRESCALER(__PRESCALER__) ((__PRESCALER__) > 0U) |
Ensure that IRDA prescaler value is strictly larger than 0. More... | |
#define | IS_IRDA_REQUEST_PARAMETER(__PARAM__) |
Ensure that IRDA request is valid. More... | |
#define | IS_IRDA_STATE(__STATE__) |
Ensure that IRDA state is valid. More... | |
#define | IS_IRDA_TX_RX_MODE(__MODE__) |
Ensure that IRDA communication mode is valid. More... | |
#define | IS_IRDA_WORD_LENGTH(LENGTH) |
#define IRDA_BRR | ( | _PCLK_, | |
_BAUD_ | |||
) |
Definition at line 653 of file stm32f4xx_hal_irda.h.
#define IRDA_DIV | ( | _PCLK_, | |
_BAUD_ | |||
) | ((uint32_t)((((uint64_t)(_PCLK_))*25U)/(4U*(((uint64_t)(_BAUD_)))))) |
Definition at line 645 of file stm32f4xx_hal_irda.h.
#define IRDA_DIVFRAQ | ( | _PCLK_, | |
_BAUD_ | |||
) | ((((IRDA_DIV((_PCLK_), (_BAUD_)) - (IRDA_DIVMANT((_PCLK_), (_BAUD_)) * 100U)) * 16U) + 50U) / 100U) |
Definition at line 649 of file stm32f4xx_hal_irda.h.
#define IRDA_DIVMANT | ( | _PCLK_, | |
_BAUD_ | |||
) | (IRDA_DIV((_PCLK_), (_BAUD_))/100U) |
Definition at line 647 of file stm32f4xx_hal_irda.h.
#define IS_IRDA_BAUDRATE | ( | __BAUDRATE__ | ) | ((__BAUDRATE__) < 115201U) |
Ensure that IRDA Baud rate is less or equal to maximum value.
<strong>BAUDRATE</strong> | specifies the IRDA Baudrate set by the user. |
True | or False |
Definition at line 668 of file stm32f7xx_hal_irda.h.
#define IS_IRDA_BAUDRATE | ( | BAUDRATE | ) | ((BAUDRATE) < 115201U) |
Definition at line 643 of file stm32f4xx_hal_irda.h.
#define IS_IRDA_DMA_RX | ( | __DMARX__ | ) |
Ensure that IRDA DMA RX mode is valid.
<strong>DMARX</strong> | IRDA DMA RX mode. |
SET | (DMARX is valid) or RESET (DMARX is invalid) |
Definition at line 730 of file stm32f7xx_hal_irda.h.
#define IS_IRDA_DMA_TX | ( | __DMATX__ | ) |
Ensure that IRDA DMA TX mode is valid.
<strong>DMATX</strong> | IRDA DMA TX mode. |
SET | (DMATX is valid) or RESET (DMATX is invalid) |
Definition at line 723 of file stm32f7xx_hal_irda.h.
#define IS_IRDA_MODE | ( | __MODE__ | ) |
Ensure that IRDA associated UART/USART mode is valid.
<strong>MODE</strong> | IRDA associated UART/USART mode. |
SET | (MODE is valid) or RESET (MODE is invalid) |
Definition at line 709 of file stm32f7xx_hal_irda.h.
#define IS_IRDA_MODE | ( | MODE | ) | ((((MODE) & 0x0000FFF3U) == 0x00U) && ((MODE) != 0x00000000U)) |
Definition at line 638 of file stm32f4xx_hal_irda.h.
#define IS_IRDA_ONE_BIT_SAMPLE | ( | __ONEBIT__ | ) |
Ensure that IRDA sampling rate is valid.
<strong>ONEBIT</strong> | IRDA sampling rate. |
SET | (ONEBIT is valid) or RESET (ONEBIT is invalid) |
Definition at line 716 of file stm32f7xx_hal_irda.h.
#define IS_IRDA_PARITY | ( | __PARITY__ | ) |
Ensure that IRDA frame parity is valid.
<strong>PARITY</strong> | IRDA frame parity. |
SET | (PARITY is valid) or RESET (PARITY is invalid) |
Definition at line 680 of file stm32f7xx_hal_irda.h.
#define IS_IRDA_PARITY | ( | PARITY | ) |
Definition at line 634 of file stm32f4xx_hal_irda.h.
#define IS_IRDA_POWERMODE | ( | __MODE__ | ) |
Ensure that IRDA power mode is valid.
<strong>MODE</strong> | IRDA power mode. |
SET | (MODE is valid) or RESET (MODE is invalid) |
Definition at line 695 of file stm32f7xx_hal_irda.h.
#define IS_IRDA_POWERMODE | ( | MODE | ) |
Definition at line 640 of file stm32f4xx_hal_irda.h.
#define IS_IRDA_PRESCALER | ( | __PRESCALER__ | ) | ((__PRESCALER__) > 0U) |
Ensure that IRDA prescaler value is strictly larger than 0.
<strong>PRESCALER</strong> | specifies the IRDA prescaler value set by the user. |
True | or False |
Definition at line 674 of file stm32f7xx_hal_irda.h.
#define IS_IRDA_REQUEST_PARAMETER | ( | __PARAM__ | ) |
Ensure that IRDA request is valid.
<strong>PARAM</strong> | IRDA request. |
SET | (PARAM is valid) or RESET (PARAM is invalid) |
Definition at line 737 of file stm32f7xx_hal_irda.h.
#define IS_IRDA_STATE | ( | __STATE__ | ) |
Ensure that IRDA state is valid.
<strong>STATE</strong> | IRDA state mode. |
SET | (STATE is valid) or RESET (STATE is invalid) |
Definition at line 702 of file stm32f7xx_hal_irda.h.
#define IS_IRDA_TX_RX_MODE | ( | __MODE__ | ) |
Ensure that IRDA communication mode is valid.
<strong>MODE</strong> | IRDA communication mode. |
SET | (MODE is valid) or RESET (MODE is invalid) |
Definition at line 688 of file stm32f7xx_hal_irda.h.
#define IS_IRDA_WORD_LENGTH | ( | LENGTH | ) |
Definition at line 631 of file stm32f4xx_hal_irda.h.