Macros
Collaboration diagram for IRDA Exported Macros:

Macros

#define __HAL_IRDA_CLEAR_FEFLAG(__HANDLE__)   __HAL_IRDA_CLEAR_PEFLAG(__HANDLE__)
 Clear the IRDA FE 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_FLAG(__HANDLE__, __FLAG__)   ((__HANDLE__)->Instance->SR = ~(__FLAG__))
 Clear the specified IRDA pending flag. More...
 
#define __HAL_IRDA_CLEAR_FLAG(__HANDLE__, __FLAG__)   ((__HANDLE__)->Instance->ICR = (__FLAG__))
 Clear the specified IRDA pending flag. More...
 
#define __HAL_IRDA_CLEAR_IDLEFLAG(__HANDLE__)   __HAL_IRDA_CLEAR_PEFLAG(__HANDLE__)
 Clear the IRDA IDLE 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_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_CLEAR_NEFLAG(__HANDLE__)   __HAL_IRDA_CLEAR_PEFLAG(__HANDLE__)
 Clear the IRDA NE 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_PEFLAG(__HANDLE__)
 Clear the IRDA ORE 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_PEFLAG(__HANDLE__)
 Clear the IRDA PE 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_DISABLE(__HANDLE__)   (CLEAR_BIT((__HANDLE__)->Instance->CR1, USART_CR1_UE))
 Disable 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...
 
#define __HAL_IRDA_DISABLE_IT(__HANDLE__, __INTERRUPT__)
 Disable the specified IRDA interrupt. More...
 
#define __HAL_IRDA_DISABLE_IT(__HANDLE__, __INTERRUPT__)
 Disable the specified IRDA interrupt. More...
 
#define __HAL_IRDA_ENABLE(__HANDLE__)   (SET_BIT((__HANDLE__)->Instance->CR1, USART_CR1_UE))
 Enable UART/USART associated to IRDA Handle. More...
 
#define __HAL_IRDA_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR1 |= USART_CR1_UE)
 Enable UART/USART associated to IRDA Handle. More...
 
#define __HAL_IRDA_ENABLE_IT(__HANDLE__, __INTERRUPT__)
 Enable the specified IRDA interrupt. More...
 
#define __HAL_IRDA_ENABLE_IT(__HANDLE__, __INTERRUPT__)
 Enable the specified IRDA interrupt. More...
 
#define __HAL_IRDA_FLUSH_DRREGISTER(__HANDLE__)   ((__HANDLE__)->Instance->DR)
 Flush the IRDA DR register. More...
 
#define __HAL_IRDA_FLUSH_DRREGISTER(__HANDLE__)
 Flush the IRDA DR register. More...
 
#define __HAL_IRDA_GET_FLAG(__HANDLE__, __FLAG__)   (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__))
 Check whether the specified IRDA flag is set or not. 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_GET_IT(__HANDLE__, __INTERRUPT__)
 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_GET_IT_SOURCE(__HANDLE__, __IT__)
 Check whether the specified IRDA interrupt has occurred or not. More...
 
#define __HAL_IRDA_ONE_BIT_SAMPLE_DISABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR3 &= (uint16_t)~((uint16_t)USART_CR3_ONEBIT))
 Macro to disable the IRDA's one bit sample method. More...
 
#define __HAL_IRDA_ONE_BIT_SAMPLE_DISABLE(__HANDLE__)
 Disable the IRDA one bit sample method. More...
 
#define __HAL_IRDA_ONE_BIT_SAMPLE_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR3 |= USART_CR3_ONEBIT)
 Macro to enable the IRDA's one bit sample method. 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_RESET_HANDLE_STATE(__HANDLE__)
 Reset IRDA handle gstate & RxState. More...
 
#define __HAL_IRDA_RESET_HANDLE_STATE(__HANDLE__)
 Reset IRDA handle state. More...
 
#define __HAL_IRDA_SEND_REQ(__HANDLE__, __REQ__)   ((__HANDLE__)->Instance->RQR |= (uint16_t)(__REQ__))
 Set a specific IRDA request flag. More...
 

Detailed Description

Macro Definition Documentation

◆ __HAL_IRDA_CLEAR_FEFLAG [1/2]

#define __HAL_IRDA_CLEAR_FEFLAG (   __HANDLE__)    __HAL_IRDA_CLEAR_PEFLAG(__HANDLE__)

Clear the IRDA FE pending flag.

Parameters
<strong>HANDLE</strong>specifies the IRDA Handle. IRDA Handle selects the USARTx or UARTy peripheral (USART,UART availability and x,y values depending on device).
Return values
None

Definition at line 425 of file stm32f4xx_hal_irda.h.

◆ __HAL_IRDA_CLEAR_FEFLAG [2/2]

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

Clear the IRDA FE pending flag.

Parameters
<strong>HANDLE</strong>specifies the IRDA Handle.
Return values
None

Definition at line 498 of file stm32f7xx_hal_irda.h.

◆ __HAL_IRDA_CLEAR_FLAG [1/2]

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

Clear the specified IRDA pending flag.

Parameters
<strong>HANDLE</strong>specifies the IRDA Handle. IRDA Handle selects the USARTx or UARTy peripheral (USART,UART availability and x,y values depending on device).
<strong>FLAG</strong>specifies the flag to check. This parameter can be any combination of the following values:
  • IRDA_FLAG_TC: Transmission Complete flag.
  • IRDA_FLAG_RXNE: Receive data register not empty flag.
Note
PE (Parity error), FE (Framing error), NE (Noise error), ORE (OverRun error) and IDLE (Idle line detected) flags are cleared by software sequence: a read operation to USART_SR register followed by a read operation to USART_DR register.
RXNE flag can be also cleared by a read to the USART_DR register.
TC flag can be also cleared by software sequence: a read operation to USART_SR register followed by a write operation to USART_DR register.
TXE flag is cleared only by a write to the USART_DR register.
Return values
None

Definition at line 403 of file stm32f4xx_hal_irda.h.

◆ __HAL_IRDA_CLEAR_FLAG [2/2]

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

Clear the specified IRDA pending flag.

Parameters
<strong>HANDLE</strong>specifies the IRDA Handle.
<strong>FLAG</strong>specifies the flag to check. This parameter can be any combination of the following values:
Return values
None

Definition at line 485 of file stm32f7xx_hal_irda.h.

◆ __HAL_IRDA_CLEAR_IDLEFLAG [1/2]

#define __HAL_IRDA_CLEAR_IDLEFLAG (   __HANDLE__)    __HAL_IRDA_CLEAR_PEFLAG(__HANDLE__)

Clear the IRDA IDLE pending flag.

Parameters
<strong>HANDLE</strong>specifies the IRDA Handle. IRDA Handle selects the USARTx or UARTy peripheral (USART,UART availability and x,y values depending on device).
Return values
None

Definition at line 449 of file stm32f4xx_hal_irda.h.

◆ __HAL_IRDA_CLEAR_IDLEFLAG [2/2]

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

Clear the IRDA IDLE pending flag.

Parameters
<strong>HANDLE</strong>specifies the IRDA Handle.
Return values
None

Definition at line 516 of file stm32f7xx_hal_irda.h.

◆ __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
<strong>HANDLE</strong>specifies the IRDA Handle.
<strong>IT_CLEAR</strong>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

Definition at line 616 of file stm32f7xx_hal_irda.h.

◆ __HAL_IRDA_CLEAR_NEFLAG [1/2]

#define __HAL_IRDA_CLEAR_NEFLAG (   __HANDLE__)    __HAL_IRDA_CLEAR_PEFLAG(__HANDLE__)

Clear the IRDA NE pending flag.

Parameters
<strong>HANDLE</strong>specifies the IRDA Handle. IRDA Handle selects the USARTx or UARTy peripheral (USART,UART availability and x,y values depending on device).
Return values
None

Definition at line 433 of file stm32f4xx_hal_irda.h.

◆ __HAL_IRDA_CLEAR_NEFLAG [2/2]

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

Clear the IRDA NE pending flag.

Parameters
<strong>HANDLE</strong>specifies the IRDA Handle.
Return values
None

Definition at line 504 of file stm32f7xx_hal_irda.h.

◆ __HAL_IRDA_CLEAR_OREFLAG [1/2]

#define __HAL_IRDA_CLEAR_OREFLAG (   __HANDLE__)    __HAL_IRDA_CLEAR_PEFLAG(__HANDLE__)

Clear the IRDA ORE pending flag.

Parameters
<strong>HANDLE</strong>specifies the IRDA Handle. IRDA Handle selects the USARTx or UARTy peripheral (USART,UART availability and x,y values depending on device).
Return values
None

Definition at line 441 of file stm32f4xx_hal_irda.h.

◆ __HAL_IRDA_CLEAR_OREFLAG [2/2]

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

Clear the IRDA ORE pending flag.

Parameters
<strong>HANDLE</strong>specifies the IRDA Handle.
Return values
None

Definition at line 510 of file stm32f7xx_hal_irda.h.

◆ __HAL_IRDA_CLEAR_PEFLAG [1/2]

#define __HAL_IRDA_CLEAR_PEFLAG (   __HANDLE__)
Value:
do{ \
__IO uint32_t tmpreg = 0x00U; \
tmpreg = (__HANDLE__)->Instance->SR; \
tmpreg = (__HANDLE__)->Instance->DR; \
UNUSED(tmpreg); \
} while(0U)

Clear the IRDA PE pending flag.

Parameters
<strong>HANDLE</strong>specifies the IRDA Handle. IRDA Handle selects the USARTx or UARTy peripheral (USART,UART availability and x,y values depending on device).
Return values
None

Definition at line 411 of file stm32f4xx_hal_irda.h.

◆ __HAL_IRDA_CLEAR_PEFLAG [2/2]

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

Clear the IRDA PE pending flag.

Parameters
<strong>HANDLE</strong>specifies the IRDA Handle.
Return values
None

Definition at line 491 of file stm32f7xx_hal_irda.h.

◆ __HAL_IRDA_DISABLE [1/2]

#define __HAL_IRDA_DISABLE (   __HANDLE__)    (CLEAR_BIT((__HANDLE__)->Instance->CR1, USART_CR1_UE))

Disable UART/USART associated to IRDA Handle.

Parameters
<strong>HANDLE</strong>specifies the IRDA Handle. IRDA Handle selects the USARTx or UARTy peripheral (USART,UART availability and x,y values depending on device).
Return values
None

Definition at line 529 of file stm32f4xx_hal_irda.h.

◆ __HAL_IRDA_DISABLE [2/2]

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

Disable UART/USART associated to IRDA Handle.

Parameters
<strong>HANDLE</strong>specifies the IRDA Handle.
Return values
None

Definition at line 653 of file stm32f7xx_hal_irda.h.

◆ __HAL_IRDA_DISABLE_IT [1/2]

#define __HAL_IRDA_DISABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)
Value:
((((__INTERRUPT__) >> 28U) == IRDA_CR1_REG_INDEX)? ((__HANDLE__)->Instance->CR1 &= ~((__INTERRUPT__) & IRDA_IT_MASK)): \
(((__INTERRUPT__) >> 28U) == IRDA_CR2_REG_INDEX)? ((__HANDLE__)->Instance->CR2 &= ~((__INTERRUPT__) & IRDA_IT_MASK)): \
((__HANDLE__)->Instance->CR3 &= ~ ((__INTERRUPT__) & IRDA_IT_MASK)))

Disable the specified IRDA interrupt.

Parameters
<strong>HANDLE</strong>specifies the IRDA Handle. IRDA Handle selects the USARTx or UARTy peripheral (USART,UART availability and x,y values depending on device).
<strong>INTERRUPT</strong>specifies the IRDA interrupt source to disable. This parameter can be one of the following values:
  • IRDA_IT_TXE: Transmit Data Register empty interrupt
  • IRDA_IT_TC: Transmission complete interrupt
  • IRDA_IT_RXNE: Receive Data register not empty interrupt
  • IRDA_IT_IDLE: Idle line detection interrupt
  • IRDA_IT_PE: Parity Error interrupt
  • IRDA_IT_ERR: Error interrupt(Frame error, noise error, overrun error)
Return values
None

Definition at line 482 of file stm32f4xx_hal_irda.h.

◆ __HAL_IRDA_DISABLE_IT [2/2]

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

Disable the specified IRDA interrupt.

Parameters
<strong>HANDLE</strong>specifies the IRDA Handle.
<strong>INTERRUPT</strong>specifies the IRDA interrupt source to disable. This parameter can be one of the following values:
Return values
None

Definition at line 566 of file stm32f7xx_hal_irda.h.

◆ __HAL_IRDA_ENABLE [1/2]

#define __HAL_IRDA_ENABLE (   __HANDLE__)    (SET_BIT((__HANDLE__)->Instance->CR1, USART_CR1_UE))

Enable UART/USART associated to IRDA Handle.

Parameters
<strong>HANDLE</strong>specifies the IRDA Handle. IRDA Handle selects the USARTx or UARTy peripheral (USART,UART availability and x,y values depending on device).
Return values
None

Definition at line 521 of file stm32f4xx_hal_irda.h.

◆ __HAL_IRDA_ENABLE [2/2]

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

Enable UART/USART associated to IRDA Handle.

Parameters
<strong>HANDLE</strong>specifies the IRDA Handle.
Return values
None

Definition at line 647 of file stm32f7xx_hal_irda.h.

◆ __HAL_IRDA_ENABLE_IT [1/2]

#define __HAL_IRDA_ENABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)
Value:
((((__INTERRUPT__) >> 28U) == IRDA_CR1_REG_INDEX)? ((__HANDLE__)->Instance->CR1 |= ((__INTERRUPT__) & IRDA_IT_MASK)): \
(((__INTERRUPT__) >> 28U) == IRDA_CR2_REG_INDEX)? ((__HANDLE__)->Instance->CR2 |= ((__INTERRUPT__) & IRDA_IT_MASK)): \
((__HANDLE__)->Instance->CR3 |= ((__INTERRUPT__) & IRDA_IT_MASK)))

Enable the specified IRDA interrupt.

Parameters
<strong>HANDLE</strong>specifies the IRDA Handle. IRDA Handle selects the USARTx or UARTy peripheral (USART,UART availability and x,y values depending on device).
<strong>INTERRUPT</strong>specifies the IRDA interrupt source to enable. This parameter can be one of the following values:
  • IRDA_IT_TXE: Transmit Data Register empty interrupt
  • IRDA_IT_TC: Transmission complete interrupt
  • IRDA_IT_RXNE: Receive Data register not empty interrupt
  • IRDA_IT_IDLE: Idle line detection interrupt
  • IRDA_IT_PE: Parity Error interrupt
  • IRDA_IT_ERR: Error interrupt(Frame error, noise error, overrun error)
Return values
None

Definition at line 465 of file stm32f4xx_hal_irda.h.

◆ __HAL_IRDA_ENABLE_IT [2/2]

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

Enable the specified IRDA interrupt.

Parameters
<strong>HANDLE</strong>specifies the IRDA Handle.
<strong>INTERRUPT</strong>specifies the IRDA interrupt source to enable. This parameter can be one of the following values:
Return values
None

Definition at line 550 of file stm32f7xx_hal_irda.h.

◆ __HAL_IRDA_FLUSH_DRREGISTER [1/2]

#define __HAL_IRDA_FLUSH_DRREGISTER (   __HANDLE__)    ((__HANDLE__)->Instance->DR)

Flush the IRDA DR register.

Parameters
<strong>HANDLE</strong>specifies the IRDA Handle. IRDA Handle selects the USARTx or UARTy peripheral (USART,UART availability and x,y values depending on device).
Return values
None

Definition at line 364 of file stm32f4xx_hal_irda.h.

◆ __HAL_IRDA_FLUSH_DRREGISTER [2/2]

#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)

Flush the IRDA DR register.

Parameters
<strong>HANDLE</strong>specifies the IRDA Handle.
Return values
None

Definition at line 467 of file stm32f7xx_hal_irda.h.

◆ __HAL_IRDA_GET_FLAG [1/2]

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

Check whether the specified IRDA flag is set or not.

Parameters
<strong>HANDLE</strong>specifies the IRDA Handle. IRDA Handle selects the USARTx or UARTy peripheral (USART,UART availability and x,y values depending on device).
<strong>FLAG</strong>specifies the flag to check. This parameter can be one of the following values:
  • IRDA_FLAG_TXE: Transmit data register empty flag
  • IRDA_FLAG_TC: Transmission Complete flag
  • IRDA_FLAG_RXNE: Receive data register not empty flag
  • IRDA_FLAG_IDLE: Idle Line detection flag
  • IRDA_FLAG_ORE: OverRun Error flag
  • IRDA_FLAG_NE: Noise Error flag
  • IRDA_FLAG_FE: Framing Error flag
  • IRDA_FLAG_PE: Parity Error flag
Return values
Thenew state of FLAG (TRUE or FALSE).

Definition at line 382 of file stm32f4xx_hal_irda.h.

◆ __HAL_IRDA_GET_FLAG [2/2]

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

Check whether the specified IRDA flag is set or not.

Parameters
<strong>HANDLE</strong>specifies the IRDA Handle.
<strong>FLAG</strong>specifies the flag to check. This parameter can be one of the following values:
Return values
Thenew state of FLAG (TRUE or FALSE).

Definition at line 535 of file stm32f7xx_hal_irda.h.

◆ __HAL_IRDA_GET_IT

#define __HAL_IRDA_GET_IT (   __HANDLE__,
  __INTERRUPT__ 
)
Value:
((((__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
<strong>HANDLE</strong>specifies the IRDA Handle.
<strong>INTERRUPT</strong>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).

Definition at line 585 of file stm32f7xx_hal_irda.h.

◆ __HAL_IRDA_GET_IT_SOURCE [1/2]

#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)) & ((uint32_t)0x01U << (((uint16_t)(__INTERRUPT__)) & IRDA_IT_MASK))) != 0U) ? SET : RESET)

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

Parameters
<strong>HANDLE</strong>specifies the IRDA Handle.
<strong>INTERRUPT</strong>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).

Definition at line 600 of file stm32f7xx_hal_irda.h.

◆ __HAL_IRDA_GET_IT_SOURCE [2/2]

#define __HAL_IRDA_GET_IT_SOURCE (   __HANDLE__,
  __IT__ 
)
Value:
(((((__IT__) >> 28U) == IRDA_CR1_REG_INDEX)? (__HANDLE__)->Instance->CR1:(((((uint32_t)(__IT__)) >> 28U) == IRDA_CR2_REG_INDEX)? \
(__HANDLE__)->Instance->CR2 : (__HANDLE__)->Instance->CR3)) & (((uint32_t)(__IT__)) & IRDA_IT_MASK))

Check whether the specified IRDA interrupt has occurred or not.

Parameters
<strong>HANDLE</strong>specifies the IRDA Handle. IRDA Handle selects the USARTx or UARTy peripheral (USART,UART availability and x,y values depending on device).
<strong>IT</strong>specifies the IRDA interrupt source to check. This parameter can be one of the following values:
  • IRDA_IT_TXE: Transmit Data Register empty interrupt
  • IRDA_IT_TC: Transmission complete interrupt
  • IRDA_IT_RXNE: Receive Data register not empty interrupt
  • IRDA_IT_IDLE: Idle line detection interrupt
  • IRDA_IT_ERR: Error interrupt
  • IRDA_IT_PE: Parity Error interrupt
Return values
Thenew state of IT (TRUE or FALSE).

Definition at line 500 of file stm32f4xx_hal_irda.h.

◆ __HAL_IRDA_ONE_BIT_SAMPLE_DISABLE [1/2]

#define __HAL_IRDA_ONE_BIT_SAMPLE_DISABLE (   __HANDLE__)    ((__HANDLE__)->Instance->CR3 &= (uint16_t)~((uint16_t)USART_CR3_ONEBIT))

Macro to disable the IRDA's one bit sample method.

Parameters
<strong>HANDLE</strong>specifies the IRDA Handle.
Return values
None

Definition at line 513 of file stm32f4xx_hal_irda.h.

◆ __HAL_IRDA_ONE_BIT_SAMPLE_DISABLE [2/2]

#define __HAL_IRDA_ONE_BIT_SAMPLE_DISABLE (   __HANDLE__)
Value:
((__HANDLE__)->Instance->CR3\
&= (uint32_t)~((uint32_t)USART_CR3_ONEBIT))

Disable the IRDA one bit sample method.

Parameters
<strong>HANDLE</strong>specifies the IRDA Handle.
Return values
None

Definition at line 640 of file stm32f7xx_hal_irda.h.

◆ __HAL_IRDA_ONE_BIT_SAMPLE_ENABLE [1/2]

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

Macro to enable the IRDA's one bit sample method.

Parameters
<strong>HANDLE</strong>specifies the IRDA Handle.
Return values
None

Definition at line 507 of file stm32f4xx_hal_irda.h.

◆ __HAL_IRDA_ONE_BIT_SAMPLE_ENABLE [2/2]

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

Enable the IRDA one bit sample method.

Parameters
<strong>HANDLE</strong>specifies the IRDA Handle.
Return values
None

Definition at line 634 of file stm32f7xx_hal_irda.h.

◆ __HAL_IRDA_RESET_HANDLE_STATE [1/2]

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

Reset IRDA handle gstate & RxState.

Parameters
<strong>HANDLE</strong>specifies the IRDA Handle. IRDA Handle selects the USARTx or UARTy peripheral (USART,UART availability and x,y values depending on device).
Return values
None

Definition at line 352 of file stm32f4xx_hal_irda.h.

◆ __HAL_IRDA_RESET_HANDLE_STATE [2/2]

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

Reset IRDA handle state.

Parameters
<strong>HANDLE</strong>IRDA handle.
Return values
None

Definition at line 457 of file stm32f7xx_hal_irda.h.

◆ __HAL_IRDA_SEND_REQ

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

Set a specific IRDA request flag.

Parameters
<strong>HANDLE</strong>specifies the IRDA Handle.
<strong>REQ</strong>specifies the request flag to set This parameter can be one of the following values:
Return values
None

Definition at line 628 of file stm32f7xx_hal_irda.h.

IRDA_IT_MASK
#define IRDA_IT_MASK
Definition: stm32f7xx_hal_irda.h:427
IRDA_RXDATA_FLUSH_REQUEST
#define IRDA_RXDATA_FLUSH_REQUEST
Definition: stm32f7xx_hal_irda.h:352
IRDA_IT_MASK
#define IRDA_IT_MASK
IRDA interruptions flag mask.
Definition: stm32f4xx_hal_irda.h:617
IRDA_CR_POS
#define IRDA_CR_POS
Definition: stm32f7xx_hal_irda.h:429
IRDA_CR1_REG_INDEX
#define IRDA_CR1_REG_INDEX
Definition: stm32f4xx_hal_irda.h:620
RESET
@ RESET
Definition: stm32f407/stm32f407g-disc1/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h:187
HAL_IRDA_STATE_RESET
#define HAL_IRDA_STATE_RESET
Definition: stm32f7xx_hal_irda.h:236
IRDA_ISR_POS
#define IRDA_ISR_POS
Definition: stm32f7xx_hal_irda.h:431
HAL_IRDA_STATE_RESET
@ HAL_IRDA_STATE_RESET
Definition: stm32f4xx_hal_irda.h:116
IRDA_CR2_REG_INDEX
#define IRDA_CR2_REG_INDEX
Definition: stm32f4xx_hal_irda.h:621
SET
@ SET
Definition: stm32f407/stm32f407g-disc1/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h:188
IRDA_TXDATA_FLUSH_REQUEST
#define IRDA_TXDATA_FLUSH_REQUEST
Definition: stm32f7xx_hal_irda.h:353
IRDA_CR_MASK
#define IRDA_CR_MASK
Definition: stm32f7xx_hal_irda.h:428
USART_CR3_ONEBIT
#define USART_CR3_ONEBIT
Definition: stm32f407xx.h:12618
IRDA_ISR_MASK
#define IRDA_ISR_MASK
Definition: stm32f7xx_hal_irda.h:430


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:07