RTEMS 6.1-rc1
Macros

Macros

#define __HAL_IRDA_RESET_HANDLE_STATE(__HANDLE__)
 Reset IRDA handle state. More...
 
#define __HAL_IRDA_FLUSH_DRREGISTER(__HANDLE__)
 Flush the IRDA DR register. More...
 
#define __HAL_IRDA_CLEAR_FLAG(__HANDLE__, __FLAG__)   ((__HANDLE__)->Instance->ICR = (__FLAG__))
 Clear the specified IRDA pending flag. More...
 
#define __HAL_IRDA_CLEAR_PEFLAG(__HANDLE__)   __HAL_IRDA_CLEAR_FLAG((__HANDLE__), IRDA_CLEAR_PEF)
 Clear the IRDA PE pending flag. More...
 
#define __HAL_IRDA_CLEAR_FEFLAG(__HANDLE__)   __HAL_IRDA_CLEAR_FLAG((__HANDLE__), IRDA_CLEAR_FEF)
 Clear the IRDA FE pending flag. More...
 
#define __HAL_IRDA_CLEAR_NEFLAG(__HANDLE__)   __HAL_IRDA_CLEAR_FLAG((__HANDLE__), IRDA_CLEAR_NEF)
 Clear the IRDA NE pending flag. More...
 
#define __HAL_IRDA_CLEAR_OREFLAG(__HANDLE__)   __HAL_IRDA_CLEAR_FLAG((__HANDLE__), IRDA_CLEAR_OREF)
 Clear the IRDA ORE pending flag. More...
 
#define __HAL_IRDA_CLEAR_IDLEFLAG(__HANDLE__)   __HAL_IRDA_CLEAR_FLAG((__HANDLE__), IRDA_CLEAR_IDLEF)
 Clear the IRDA IDLE pending flag. More...
 
#define __HAL_IRDA_GET_FLAG(__HANDLE__, __FLAG__)   (((__HANDLE__)->Instance->ISR & (__FLAG__)) == (__FLAG__))
 Check whether the specified IRDA flag is set or not. More...
 
#define __HAL_IRDA_ENABLE_IT(__HANDLE__, __INTERRUPT__)
 Enable the specified IRDA interrupt. More...
 
#define __HAL_IRDA_DISABLE_IT(__HANDLE__, __INTERRUPT__)
 Disable the specified IRDA interrupt. More...
 
#define __HAL_IRDA_GET_IT(__HANDLE__, __INTERRUPT__)    ((((__HANDLE__)->Instance->ISR& (0x01U << (((__INTERRUPT__) & IRDA_ISR_MASK)>>IRDA_ISR_POS))) != 0U) ? SET : RESET)
 Check whether the specified IRDA interrupt has occurred or not. More...
 
#define __HAL_IRDA_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__)
 Check whether the specified IRDA interrupt source is enabled or not. More...
 
#define __HAL_IRDA_CLEAR_IT(__HANDLE__, __IT_CLEAR__)   ((__HANDLE__)->Instance->ICR = (uint32_t)(__IT_CLEAR__))
 Clear the specified IRDA ISR flag, in setting the proper ICR register flag. More...
 
#define __HAL_IRDA_SEND_REQ(__HANDLE__, __REQ__)   ((__HANDLE__)->Instance->RQR |= (uint16_t)(__REQ__))
 Set a specific IRDA request flag. More...
 
#define __HAL_IRDA_ONE_BIT_SAMPLE_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR3|= USART_CR3_ONEBIT)
 Enable the IRDA one bit sample method. More...
 
#define __HAL_IRDA_ONE_BIT_SAMPLE_DISABLE(__HANDLE__)
 Disable the IRDA one bit sample method. More...
 
#define __HAL_IRDA_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR1 |= USART_CR1_UE)
 Enable UART/USART associated to IRDA Handle. More...
 
#define __HAL_IRDA_DISABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR1 &= ~USART_CR1_UE)
 Disable UART/USART associated to IRDA Handle. More...
 

Detailed Description

Macro Definition Documentation

◆ __HAL_IRDA_CLEAR_FEFLAG

#define __HAL_IRDA_CLEAR_FEFLAG (   __HANDLE__)    __HAL_IRDA_CLEAR_FLAG((__HANDLE__), IRDA_CLEAR_FEF)

Clear the IRDA FE pending flag.

Parameters
__HANDLE__specifies the IRDA Handle.
Return values
None

◆ __HAL_IRDA_CLEAR_FLAG

#define __HAL_IRDA_CLEAR_FLAG (   __HANDLE__,
  __FLAG__ 
)    ((__HANDLE__)->Instance->ICR = (__FLAG__))

Clear the specified IRDA pending flag.

Parameters
__HANDLE__specifies the IRDA Handle.
__FLAG__specifies the flag to check. This parameter can be any combination of the following values:
Return values
None

◆ __HAL_IRDA_CLEAR_IDLEFLAG

#define __HAL_IRDA_CLEAR_IDLEFLAG (   __HANDLE__)    __HAL_IRDA_CLEAR_FLAG((__HANDLE__), IRDA_CLEAR_IDLEF)

Clear the IRDA IDLE pending flag.

Parameters
__HANDLE__specifies the IRDA Handle.
Return values
None

◆ __HAL_IRDA_CLEAR_IT

#define __HAL_IRDA_CLEAR_IT (   __HANDLE__,
  __IT_CLEAR__ 
)    ((__HANDLE__)->Instance->ICR = (uint32_t)(__IT_CLEAR__))

Clear the specified IRDA ISR flag, in setting the proper ICR register flag.

Parameters
__HANDLE__specifies the IRDA Handle.
__IT_CLEAR__specifies the interrupt clear register flag that needs to be set to clear the corresponding interrupt This parameter can be one of the following values:
Return values
None

◆ __HAL_IRDA_CLEAR_NEFLAG

#define __HAL_IRDA_CLEAR_NEFLAG (   __HANDLE__)    __HAL_IRDA_CLEAR_FLAG((__HANDLE__), IRDA_CLEAR_NEF)

Clear the IRDA NE pending flag.

Parameters
__HANDLE__specifies the IRDA Handle.
Return values
None

◆ __HAL_IRDA_CLEAR_OREFLAG

#define __HAL_IRDA_CLEAR_OREFLAG (   __HANDLE__)    __HAL_IRDA_CLEAR_FLAG((__HANDLE__), IRDA_CLEAR_OREF)

Clear the IRDA ORE pending flag.

Parameters
__HANDLE__specifies the IRDA Handle.
Return values
None

◆ __HAL_IRDA_CLEAR_PEFLAG

#define __HAL_IRDA_CLEAR_PEFLAG (   __HANDLE__)    __HAL_IRDA_CLEAR_FLAG((__HANDLE__), IRDA_CLEAR_PEF)

Clear the IRDA PE pending flag.

Parameters
__HANDLE__specifies the IRDA Handle.
Return values
None

◆ __HAL_IRDA_DISABLE

#define __HAL_IRDA_DISABLE (   __HANDLE__)    ((__HANDLE__)->Instance->CR1 &= ~USART_CR1_UE)

Disable UART/USART associated to IRDA Handle.

Parameters
__HANDLE__specifies the IRDA Handle.
Return values
None

◆ __HAL_IRDA_DISABLE_IT

#define __HAL_IRDA_DISABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)
Value:
(((((__INTERRUPT__) & IRDA_CR_MASK) >> IRDA_CR_POS) == 1U)? \
((__HANDLE__)->Instance->CR1 &= ~ (1U << \
((__INTERRUPT__) & IRDA_IT_MASK))): \
((((__INTERRUPT__) & IRDA_CR_MASK) >> IRDA_CR_POS) == 2U)? \
((__HANDLE__)->Instance->CR2 &= ~ (1U << \
((__INTERRUPT__) & IRDA_IT_MASK))): \
((__HANDLE__)->Instance->CR3 &= ~ (1U << \
((__INTERRUPT__) & IRDA_IT_MASK))))
#define IRDA_IT_MASK
Definition: stm32h7xx_hal_irda.h:471
#define IRDA_CR_POS
Definition: stm32h7xx_hal_irda.h:473
#define IRDA_CR_MASK
Definition: stm32h7xx_hal_irda.h:472

Disable the specified IRDA interrupt.

Parameters
__HANDLE__specifies the IRDA Handle.
__INTERRUPT__specifies the IRDA interrupt source to disable. This parameter can be one of the following values:
Return values
None

◆ __HAL_IRDA_ENABLE

#define __HAL_IRDA_ENABLE (   __HANDLE__)    ((__HANDLE__)->Instance->CR1 |= USART_CR1_UE)

Enable UART/USART associated to IRDA Handle.

Parameters
__HANDLE__specifies the IRDA Handle.
Return values
None

◆ __HAL_IRDA_ENABLE_IT

#define __HAL_IRDA_ENABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)
Value:
(((((__INTERRUPT__) & IRDA_CR_MASK) >> IRDA_CR_POS) == 1U)? \
((__HANDLE__)->Instance->CR1 |= (1U << \
((__INTERRUPT__) & IRDA_IT_MASK))):\
((((__INTERRUPT__) & IRDA_CR_MASK) >> IRDA_CR_POS) == 2U)? \
((__HANDLE__)->Instance->CR2 |= (1U << \
((__INTERRUPT__) & IRDA_IT_MASK))):\
((__HANDLE__)->Instance->CR3 |= (1U << \
((__INTERRUPT__) & IRDA_IT_MASK))))

Enable the specified IRDA interrupt.

Parameters
__HANDLE__specifies the IRDA Handle.
__INTERRUPT__specifies the IRDA interrupt source to enable. This parameter can be one of the following values:
Return values
None

◆ __HAL_IRDA_FLUSH_DRREGISTER

#define __HAL_IRDA_FLUSH_DRREGISTER (   __HANDLE__)
Value:
do{ \
SET_BIT((__HANDLE__)->Instance->RQR, IRDA_RXDATA_FLUSH_REQUEST); \
SET_BIT((__HANDLE__)->Instance->RQR, IRDA_TXDATA_FLUSH_REQUEST); \
} while(0U)
#define IRDA_TXDATA_FLUSH_REQUEST
Definition: stm32h7xx_hal_irda.h:392
#define IRDA_RXDATA_FLUSH_REQUEST
Definition: stm32h7xx_hal_irda.h:391

Flush the IRDA DR register.

Parameters
__HANDLE__specifies the IRDA Handle.
Return values
None

◆ __HAL_IRDA_GET_FLAG

#define __HAL_IRDA_GET_FLAG (   __HANDLE__,
  __FLAG__ 
)    (((__HANDLE__)->Instance->ISR & (__FLAG__)) == (__FLAG__))

Check whether the specified IRDA flag is set or not.

Parameters
__HANDLE__specifies the IRDA Handle.
__FLAG__specifies the flag to check. This parameter can be one of the following values:
Return values
Thenew state of FLAG (TRUE or FALSE).

◆ __HAL_IRDA_GET_IT

#define __HAL_IRDA_GET_IT (   __HANDLE__,
  __INTERRUPT__ 
)     ((((__HANDLE__)->Instance->ISR& (0x01U << (((__INTERRUPT__) & IRDA_ISR_MASK)>>IRDA_ISR_POS))) != 0U) ? SET : RESET)

Check whether the specified IRDA interrupt has occurred or not.

Parameters
__HANDLE__specifies the IRDA Handle.
__INTERRUPT__specifies the IRDA interrupt source to check. This parameter can be one of the following values:
Return values
Thenew state of IT (SET or RESET).

◆ __HAL_IRDA_GET_IT_SOURCE

#define __HAL_IRDA_GET_IT_SOURCE (   __HANDLE__,
  __INTERRUPT__ 
)
Value:
((((((((__INTERRUPT__) & IRDA_CR_MASK) >>IRDA_CR_POS) == 0x01U)? (__HANDLE__)->Instance->CR1 :(((((__INTERRUPT__) \
& IRDA_CR_MASK) >> IRDA_CR_POS)== 0x02U)? (__HANDLE__)->Instance->CR2 :(__HANDLE__)->Instance->CR3)) \
& (0x01U <<(((uint16_t)(__INTERRUPT__)) & IRDA_IT_MASK))) != 0U) ? SET : RESET)
@ RESET
Definition: xnandpsu_onfi.h:172

Check whether the specified IRDA interrupt source is enabled or not.

Parameters
__HANDLE__specifies the IRDA Handle.
__INTERRUPT__specifies the IRDA interrupt source to check. This parameter can be one of the following values:
Return values
Thenew state of IT (SET or RESET).

◆ __HAL_IRDA_ONE_BIT_SAMPLE_DISABLE

#define __HAL_IRDA_ONE_BIT_SAMPLE_DISABLE (   __HANDLE__)
Value:
((__HANDLE__)->Instance->CR3\
&= (uint32_t)~((uint32_t)USART_CR3_ONEBIT))
#define USART_CR3_ONEBIT
Definition: stm32h723xx.h:21088

Disable the IRDA one bit sample method.

Parameters
__HANDLE__specifies the IRDA Handle.
Return values
None

◆ __HAL_IRDA_ONE_BIT_SAMPLE_ENABLE

#define __HAL_IRDA_ONE_BIT_SAMPLE_ENABLE (   __HANDLE__)    ((__HANDLE__)->Instance->CR3|= USART_CR3_ONEBIT)

Enable the IRDA one bit sample method.

Parameters
__HANDLE__specifies the IRDA Handle.
Return values
None

◆ __HAL_IRDA_RESET_HANDLE_STATE

#define __HAL_IRDA_RESET_HANDLE_STATE (   __HANDLE__)
Value:
do{ \
(__HANDLE__)->gState = HAL_IRDA_STATE_RESET; \
(__HANDLE__)->RxState = HAL_IRDA_STATE_RESET; \
} while(0U)
#define HAL_IRDA_STATE_RESET
Definition: stm32h7xx_hal_irda.h:244

Reset IRDA handle state.

Parameters
__HANDLE__IRDA handle.
Return values
None

◆ __HAL_IRDA_SEND_REQ

#define __HAL_IRDA_SEND_REQ (   __HANDLE__,
  __REQ__ 
)    ((__HANDLE__)->Instance->RQR |= (uint16_t)(__REQ__))

Set a specific IRDA request flag.

Parameters
__HANDLE__specifies the IRDA Handle.
__REQ__specifies the request flag to set This parameter can be one of the following values:
Return values
None