|
STM CMSIS
|
Macros | |
| #define | __HAL_IRDA_RESET_HANDLE_STATE(__HANDLE__) |
| Reset IRDA handle gstate & RxState. More... | |
| #define | __HAL_IRDA_FLUSH_DRREGISTER(__HANDLE__) ((__HANDLE__)->Instance->DR) |
| Flushs the IRDA DR register. More... | |
| #define | __HAL_IRDA_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__)) |
| Checks whether the specified IRDA flag is set or not. More... | |
| #define | __HAL_IRDA_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->SR = ~(__FLAG__)) |
| Clears the specified IRDA pending flag. More... | |
| #define | __HAL_IRDA_CLEAR_PEFLAG(__HANDLE__) |
| Clear the IRDA PE pending flag. More... | |
| #define | __HAL_IRDA_CLEAR_FEFLAG(__HANDLE__) __HAL_IRDA_CLEAR_PEFLAG(__HANDLE__) |
| Clear the IRDA FE pending flag. More... | |
| #define | __HAL_IRDA_CLEAR_NEFLAG(__HANDLE__) __HAL_IRDA_CLEAR_PEFLAG(__HANDLE__) |
| 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_IDLEFLAG(__HANDLE__) __HAL_IRDA_CLEAR_PEFLAG(__HANDLE__) |
| Clear the IRDA IDLE pending flag. More... | |
| #define | __HAL_IRDA_ENABLE_IT(__HANDLE__, __INTERRUPT__) |
| Enables or disables the specified IRDA interrupt. More... | |
| #define | __HAL_IRDA_DISABLE_IT(__HANDLE__, __INTERRUPT__) |
| #define | __HAL_IRDA_GET_IT_SOURCE(__HANDLE__, __IT__) |
| Checks whether the specified IRDA interrupt has occurred or not. 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_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_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... | |
| #define __HAL_IRDA_CLEAR_FEFLAG | ( | __HANDLE__ | ) | __HAL_IRDA_CLEAR_PEFLAG(__HANDLE__) |
Clear the IRDA FE pending flag.
| <strong>HANDLE</strong> | specifies the USART Handle. This parameter can be USARTx where x: 1, 2, 3, 4, 5, 6, 7 or 8 to select the USART or UART peripheral. |
| None |
| #define __HAL_IRDA_CLEAR_FLAG | ( | __HANDLE__, | |
| __FLAG__ | |||
| ) | ((__HANDLE__)->Instance->SR = ~(__FLAG__)) |
Clears the specified IRDA pending flag.
| <strong>HANDLE</strong> | specifies the USART Handle. This parameter can be USARTx where x: 1, 2, 3, 4, 5, 6, 7 or 8 to select the USART or UART peripheral. |
| <strong>FLAG</strong> | 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_PEFLAG(__HANDLE__) |
Clear the IRDA IDLE pending flag.
| <strong>HANDLE</strong> | specifies the USART Handle. This parameter can be USARTx where x: 1, 2, 3, 4, 5, 6, 7 or 8 to select the USART or UART peripheral. |
| None |
| #define __HAL_IRDA_CLEAR_NEFLAG | ( | __HANDLE__ | ) | __HAL_IRDA_CLEAR_PEFLAG(__HANDLE__) |
Clear the IRDA NE pending flag.
| <strong>HANDLE</strong> | specifies the USART Handle. This parameter can be USARTx where x: 1, 2, 3, 4, 5, 6, 7 or 8 to select the USART or UART peripheral. |
| None |
| #define __HAL_IRDA_CLEAR_OREFLAG | ( | __HANDLE__ | ) | __HAL_IRDA_CLEAR_PEFLAG(__HANDLE__) |
Clear the IRDA ORE pending flag.
| <strong>HANDLE</strong> | specifies the USART Handle. This parameter can be USARTx where x: 1, 2, 3, 4, 5, 6, 7 or 8 to select the USART or UART peripheral. |
| None |
| #define __HAL_IRDA_CLEAR_PEFLAG | ( | __HANDLE__ | ) |
Clear the IRDA PE pending flag.
| <strong>HANDLE</strong> | specifies the USART Handle. This parameter can be USARTx where x: 1, 2, 3, 4, 5, 6, 7 or 8 to select the USART or UART peripheral. |
| None |
| #define __HAL_IRDA_DISABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR1 &= ~USART_CR1_UE) |
Disable UART/USART associated to IRDA Handle.
| <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). |
| None |
| #define __HAL_IRDA_DISABLE_IT | ( | __HANDLE__, | |
| __INTERRUPT__ | |||
| ) |
| #define __HAL_IRDA_ENABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR1 |= USART_CR1_UE) |
Enable UART/USART associated to IRDA Handle.
| <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). |
| None |
| #define __HAL_IRDA_ENABLE_IT | ( | __HANDLE__, | |
| __INTERRUPT__ | |||
| ) |
Enables or disables the specified IRDA interrupt.
| <strong>HANDLE</strong> | specifies the USART Handle. This parameter can be USARTx where x: 1, 2, 3, 4, 5, 6, 7 or 8 to select the USART or UART peripheral. |
| <strong>INTERRUPT</strong> | specifies the IRDA interrupt source to check. This parameter can be one of the following values:
|
| None |
| #define __HAL_IRDA_FLUSH_DRREGISTER | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->DR) |
Flushs the IRDA DR register.
| <strong>HANDLE</strong> | specifies the USART Handle. This parameter can be USARTx where x: 1, 2, 3, 4, 5, 6, 7 or 8 to select the USART or UART peripheral. |
| #define __HAL_IRDA_GET_FLAG | ( | __HANDLE__, | |
| __FLAG__ | |||
| ) | (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__)) |
Checks whether the specified IRDA flag is set or not.
| <strong>HANDLE</strong> | specifies the USART Handle. This parameter can be USARTx where x: 1, 2, 3, 4, 5, 6, 7 or 8 to select the USART or UART peripheral. |
| <strong>FLAG</strong> | 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_SOURCE | ( | __HANDLE__, | |
| __IT__ | |||
| ) |
Checks whether the specified IRDA interrupt has occurred or not.
| <strong>HANDLE</strong> | specifies the USART Handle. This parameter can be USARTx where x: 1, 2, 3, 4, 5, 6, 7 or 8 to select the USART or UART peripheral. |
| <strong>IT</strong> | specifies the IRDA interrupt source to check. This parameter can be one of the following values:
|
| The | new state of IT (TRUE or FALSE). |
| #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.
| <strong>HANDLE</strong> | specifies the IRDA Handle. |
| None |
| #define __HAL_IRDA_ONE_BIT_SAMPLE_ENABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR3|= USART_CR3_ONEBIT) |
Macro to enable the IRDA's one bit sample method.
| <strong>HANDLE</strong> | specifies the IRDA Handle. |
| None |
| #define __HAL_IRDA_RESET_HANDLE_STATE | ( | __HANDLE__ | ) |
Reset IRDA handle gstate & RxState.
| <strong>HANDLE</strong> | specifies the USART Handle. This parameter can be USARTx where x: 1, 2, 3, 4, 5, 6, 7 or 8 to select the USART or UART peripheral. |
| None |