RTEMS 6.1-rc5
|
Macros | |
#define | __HAL_IRDA_RESET_HANDLE_STATE(__HANDLE__) |
Reset IRDA handle state. | |
#define | __HAL_IRDA_FLUSH_DRREGISTER(__HANDLE__) |
Flush the IRDA DR register. | |
#define | __HAL_IRDA_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->ICR = (__FLAG__)) |
Clear the specified IRDA pending flag. | |
#define | __HAL_IRDA_CLEAR_PEFLAG(__HANDLE__) __HAL_IRDA_CLEAR_FLAG((__HANDLE__), IRDA_CLEAR_PEF) |
Clear the IRDA PE pending flag. | |
#define | __HAL_IRDA_CLEAR_FEFLAG(__HANDLE__) __HAL_IRDA_CLEAR_FLAG((__HANDLE__), IRDA_CLEAR_FEF) |
Clear the IRDA FE pending flag. | |
#define | __HAL_IRDA_CLEAR_NEFLAG(__HANDLE__) __HAL_IRDA_CLEAR_FLAG((__HANDLE__), IRDA_CLEAR_NEF) |
Clear the IRDA NE pending flag. | |
#define | __HAL_IRDA_CLEAR_OREFLAG(__HANDLE__) __HAL_IRDA_CLEAR_FLAG((__HANDLE__), IRDA_CLEAR_OREF) |
Clear the IRDA ORE pending flag. | |
#define | __HAL_IRDA_CLEAR_IDLEFLAG(__HANDLE__) __HAL_IRDA_CLEAR_FLAG((__HANDLE__), IRDA_CLEAR_IDLEF) |
Clear the IRDA IDLE pending flag. | |
#define | __HAL_IRDA_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->ISR & (__FLAG__)) == (__FLAG__)) |
Check whether the specified IRDA flag is set or not. | |
#define | __HAL_IRDA_ENABLE_IT(__HANDLE__, __INTERRUPT__) |
Enable the specified IRDA interrupt. | |
#define | __HAL_IRDA_DISABLE_IT(__HANDLE__, __INTERRUPT__) |
Disable the specified IRDA interrupt. | |
#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. | |
#define | __HAL_IRDA_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) |
Check whether the specified IRDA interrupt source is enabled or not. | |
#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. | |
#define | __HAL_IRDA_SEND_REQ(__HANDLE__, __REQ__) ((__HANDLE__)->Instance->RQR |= (uint16_t)(__REQ__)) |
Set a specific IRDA request flag. | |
#define | __HAL_IRDA_ONE_BIT_SAMPLE_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR3|= USART_CR3_ONEBIT) |
Enable the IRDA one bit sample method. | |
#define | __HAL_IRDA_ONE_BIT_SAMPLE_DISABLE(__HANDLE__) |
Disable the IRDA one bit sample method. | |
#define | __HAL_IRDA_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR1 |= USART_CR1_UE) |
Enable UART/USART associated to IRDA Handle. | |
#define | __HAL_IRDA_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR1 &= ~USART_CR1_UE) |
Disable UART/USART associated to IRDA Handle. | |
#define __HAL_IRDA_CLEAR_FEFLAG | ( | __HANDLE__ | ) | __HAL_IRDA_CLEAR_FLAG((__HANDLE__), IRDA_CLEAR_FEF) |
Clear the IRDA FE pending flag.
__HANDLE__ | specifies the IRDA Handle. |
None |
#define __HAL_IRDA_CLEAR_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) | ((__HANDLE__)->Instance->ICR = (__FLAG__)) |
Clear the specified IRDA pending flag.
__HANDLE__ | specifies the IRDA Handle. |
__FLAG__ | specifies the flag to check. This parameter can be any combination of the following values: |
None |
#define __HAL_IRDA_CLEAR_IDLEFLAG | ( | __HANDLE__ | ) | __HAL_IRDA_CLEAR_FLAG((__HANDLE__), IRDA_CLEAR_IDLEF) |
Clear the IRDA IDLE pending flag.
__HANDLE__ | specifies the IRDA Handle. |
None |
#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.
__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:
|
None |
#define __HAL_IRDA_CLEAR_NEFLAG | ( | __HANDLE__ | ) | __HAL_IRDA_CLEAR_FLAG((__HANDLE__), IRDA_CLEAR_NEF) |
Clear the IRDA NE pending flag.
__HANDLE__ | specifies the IRDA Handle. |
None |
#define __HAL_IRDA_CLEAR_OREFLAG | ( | __HANDLE__ | ) | __HAL_IRDA_CLEAR_FLAG((__HANDLE__), IRDA_CLEAR_OREF) |
Clear the IRDA ORE pending flag.
__HANDLE__ | specifies the IRDA Handle. |
None |
#define __HAL_IRDA_CLEAR_PEFLAG | ( | __HANDLE__ | ) | __HAL_IRDA_CLEAR_FLAG((__HANDLE__), IRDA_CLEAR_PEF) |
Clear the IRDA PE pending flag.
__HANDLE__ | specifies the IRDA Handle. |
None |
#define __HAL_IRDA_DISABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR1 &= ~USART_CR1_UE) |
Disable UART/USART associated to IRDA Handle.
__HANDLE__ | specifies the IRDA Handle. |
None |
#define __HAL_IRDA_DISABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) |
Disable the specified IRDA interrupt.
__HANDLE__ | specifies the IRDA Handle. |
__INTERRUPT__ | specifies the IRDA interrupt source to disable. This parameter can be one of the following values:
|
None |
#define __HAL_IRDA_ENABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR1 |= USART_CR1_UE) |
Enable UART/USART associated to IRDA Handle.
__HANDLE__ | specifies the IRDA Handle. |
None |
#define __HAL_IRDA_ENABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) |
Enable the specified IRDA interrupt.
__HANDLE__ | specifies the IRDA Handle. |
__INTERRUPT__ | specifies the IRDA interrupt source to enable. This parameter can be one of the following values:
|
None |
#define __HAL_IRDA_FLUSH_DRREGISTER | ( | __HANDLE__ | ) |
Flush the IRDA DR register.
__HANDLE__ | specifies the IRDA Handle. |
None |
#define __HAL_IRDA_GET_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) | (((__HANDLE__)->Instance->ISR & (__FLAG__)) == (__FLAG__)) |
Check whether the specified IRDA flag is set or not.
__HANDLE__ | specifies the IRDA Handle. |
__FLAG__ | specifies the flag to check. This parameter can be one of the following values:
|
The | new state of FLAG (TRUE or FALSE). |
#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.
__HANDLE__ | specifies the IRDA Handle. |
__INTERRUPT__ | specifies the IRDA interrupt source to check. This parameter can be one of the following values:
|
The | new state of IT (SET or RESET). |
#define __HAL_IRDA_GET_IT_SOURCE | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) |
Check whether the specified IRDA interrupt source is enabled or not.
__HANDLE__ | specifies the IRDA Handle. |
__INTERRUPT__ | specifies the IRDA interrupt source to check. This parameter can be one of the following values:
|
The | new state of IT (SET or RESET). |
#define __HAL_IRDA_ONE_BIT_SAMPLE_DISABLE | ( | __HANDLE__ | ) |
Disable the IRDA one bit sample method.
__HANDLE__ | specifies the IRDA Handle. |
None |
#define __HAL_IRDA_ONE_BIT_SAMPLE_ENABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR3|= USART_CR3_ONEBIT) |
Enable the IRDA one bit sample method.
__HANDLE__ | specifies the IRDA Handle. |
None |
#define __HAL_IRDA_RESET_HANDLE_STATE | ( | __HANDLE__ | ) |
Reset IRDA handle state.
__HANDLE__ | IRDA handle. |
None |
#define __HAL_IRDA_SEND_REQ | ( | __HANDLE__, | |
__REQ__ | |||
) | ((__HANDLE__)->Instance->RQR |= (uint16_t)(__REQ__)) |
Set a specific IRDA request flag.
__HANDLE__ | specifies the IRDA Handle. |
__REQ__ | specifies the request flag to set This parameter can be one of the following values:
|
None |