|
STM CMSIS
|
Macros | |
| #define | __HAL_USART_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_USART_STATE_RESET) |
| Reset USART handle state. More... | |
| #define | __HAL_USART_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__)) |
| Checks whether the specified Smartcard flag is set or not. More... | |
| #define | __HAL_USART_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->SR = ~(__FLAG__)) |
| Clears the specified Smartcard pending flags. More... | |
| #define | __HAL_USART_CLEAR_PEFLAG(__HANDLE__) |
| Clear the USART PE pending flag. More... | |
| #define | __HAL_USART_CLEAR_FEFLAG(__HANDLE__) __HAL_USART_CLEAR_PEFLAG(__HANDLE__) |
| Clear the USART FE pending flag. More... | |
| #define | __HAL_USART_CLEAR_NEFLAG(__HANDLE__) __HAL_USART_CLEAR_PEFLAG(__HANDLE__) |
| Clear the USART NE pending flag. More... | |
| #define | __HAL_USART_CLEAR_OREFLAG(__HANDLE__) __HAL_USART_CLEAR_PEFLAG(__HANDLE__) |
| Clear the UART ORE pending flag. More... | |
| #define | __HAL_USART_CLEAR_IDLEFLAG(__HANDLE__) __HAL_USART_CLEAR_PEFLAG(__HANDLE__) |
| Clear the USART IDLE pending flag. More... | |
| #define | __HAL_USART_ENABLE_IT(__HANDLE__, __INTERRUPT__) |
| Enables or disables the specified USART interrupts. More... | |
| #define | __HAL_USART_DISABLE_IT(__HANDLE__, __INTERRUPT__) |
| #define | __HAL_USART_GET_IT_SOURCE(__HANDLE__, __IT__) |
| Checks whether the specified USART interrupt has occurred or not. More... | |
| #define | __HAL_USART_ONE_BIT_SAMPLE_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR3|= USART_CR3_ONEBIT) |
| Macro to enable the USART's one bit sample method. More... | |
| #define | __HAL_USART_ONE_BIT_SAMPLE_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR3 &= (uint16_t)~((uint16_t)USART_CR3_ONEBIT)) |
| Macro to disable the USART's one bit sample method. More... | |
| #define | __HAL_USART_ENABLE(__HANDLE__) ( (__HANDLE__)->Instance->CR1 |= USART_CR1_UE) |
| Enable USART. More... | |
| #define | __HAL_USART_DISABLE(__HANDLE__) ( (__HANDLE__)->Instance->CR1 &= ~USART_CR1_UE) |
| Disable USART. More... | |
| #define __HAL_USART_CLEAR_FEFLAG | ( | __HANDLE__ | ) | __HAL_USART_CLEAR_PEFLAG(__HANDLE__) |
Clear the USART FE pending flag.
| <strong>HANDLE</strong> | specifies the USART Handle. This parameter can be USARTx where x: 1, 2, 3 or 6 to select the USART peripheral. |
| None |
| #define __HAL_USART_CLEAR_FLAG | ( | __HANDLE__, | |
| __FLAG__ | |||
| ) | ((__HANDLE__)->Instance->SR = ~(__FLAG__)) |
Clears the specified Smartcard pending flags.
| <strong>HANDLE</strong> | specifies the USART Handle. This parameter can be USARTx where x: 1, 2, 3 or 6 to select the USART peripheral. |
| <strong>FLAG</strong> | specifies the flag to check. This parameter can be any combination of the following values:
|
| None |
| #define __HAL_USART_CLEAR_IDLEFLAG | ( | __HANDLE__ | ) | __HAL_USART_CLEAR_PEFLAG(__HANDLE__) |
Clear the USART IDLE pending flag.
| <strong>HANDLE</strong> | specifies the USART Handle. This parameter can be USARTx where x: 1, 2, 3 or 6 to select the USART peripheral. |
| None |
| #define __HAL_USART_CLEAR_NEFLAG | ( | __HANDLE__ | ) | __HAL_USART_CLEAR_PEFLAG(__HANDLE__) |
Clear the USART NE pending flag.
| <strong>HANDLE</strong> | specifies the USART Handle. This parameter can be USARTx where x: 1, 2, 3 or 6 to select the USART peripheral. |
| None |
| #define __HAL_USART_CLEAR_OREFLAG | ( | __HANDLE__ | ) | __HAL_USART_CLEAR_PEFLAG(__HANDLE__) |
Clear the UART ORE pending flag.
| <strong>HANDLE</strong> | specifies the USART Handle. This parameter can be USARTx where x: 1, 2, 3 or 6 to select the USART peripheral. |
| None |
| #define __HAL_USART_CLEAR_PEFLAG | ( | __HANDLE__ | ) |
Clear the USART PE pending flag.
| <strong>HANDLE</strong> | specifies the USART Handle. This parameter can be USARTx where x: 1, 2, 3 or 6 to select the USART peripheral. |
| None |
| #define __HAL_USART_DISABLE | ( | __HANDLE__ | ) | ( (__HANDLE__)->Instance->CR1 &= ~USART_CR1_UE) |
Disable USART.
| <strong>HANDLE</strong> | specifies the USART Handle. USART Handle selects the USARTx peripheral (USART availability and x value depending on device). |
| None |
| #define __HAL_USART_DISABLE_IT | ( | __HANDLE__, | |
| __INTERRUPT__ | |||
| ) |
| #define __HAL_USART_ENABLE | ( | __HANDLE__ | ) | ( (__HANDLE__)->Instance->CR1 |= USART_CR1_UE) |
Enable USART.
| <strong>HANDLE</strong> | specifies the USART Handle. USART Handle selects the USARTx peripheral (USART availability and x value depending on device). |
| None |
| #define __HAL_USART_ENABLE_IT | ( | __HANDLE__, | |
| __INTERRUPT__ | |||
| ) |
Enables or disables the specified USART interrupts.
| <strong>HANDLE</strong> | specifies the USART Handle. This parameter can be USARTx where x: 1, 2, 3 or 6 to select the USART peripheral. |
| <strong>INTERRUPT</strong> | specifies the USART interrupt source to check. This parameter can be one of the following values:
|
| None |
| #define __HAL_USART_GET_FLAG | ( | __HANDLE__, | |
| __FLAG__ | |||
| ) | (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__)) |
Checks whether the specified Smartcard flag is set or not.
| <strong>HANDLE</strong> | specifies the USART Handle. This parameter can be USARTx where x: 1, 2, 3 or 6 to select the USART 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_USART_GET_IT_SOURCE | ( | __HANDLE__, | |
| __IT__ | |||
| ) |
Checks whether the specified USART interrupt has occurred or not.
| <strong>HANDLE</strong> | specifies the USART Handle. This parameter can be USARTx where x: 1, 2, 3 or 6 to select the USART peripheral. |
| <strong>IT</strong> | specifies the USART interrupt source to check. This parameter can be one of the following values:
|
| The | new state of IT (TRUE or FALSE). |
| #define __HAL_USART_ONE_BIT_SAMPLE_DISABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR3 &= (uint16_t)~((uint16_t)USART_CR3_ONEBIT)) |
Macro to disable the USART's one bit sample method.
| <strong>HANDLE</strong> | specifies the USART Handle. |
| None |
| #define __HAL_USART_ONE_BIT_SAMPLE_ENABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR3|= USART_CR3_ONEBIT) |
Macro to enable the USART's one bit sample method.
| <strong>HANDLE</strong> | specifies the USART Handle. |
| None |
| #define __HAL_USART_RESET_HANDLE_STATE | ( | __HANDLE__ | ) | ((__HANDLE__)->State = HAL_USART_STATE_RESET) |
Reset USART handle state.
| <strong>HANDLE</strong> | specifies the USART Handle. This parameter can be USARTx where x: 1, 2, 3 or 6 to select the USART peripheral. |
| None |