HAL
__HAL_UART_ENABLE_IT is only used within HAL.
 
Symbols
loading...
Files
loading...

__HAL_UART_ENABLE_IT macro

Enable the specified UART interrupt.

Syntax

#define __HAL_UART_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((((__INTERRUPT__) >> 28U) == UART_CR1_REG_INDEX)? ((__HANDLE__)->Instance->CR1 |= ((__INTERRUPT__) & UART_IT_MASK)): \     (((__INTERRUPT__) >> 28U) == UART_CR2_REG_INDEX)? ((__HANDLE__)->Instance->CR2 |= ((__INTERRUPT__) & UART_IT_MASK)): \     ((__HANDLE__)->Instance->CR3 |= ((__INTERRUPT__) & UART_IT_MASK)))

Arguments

__HANDLE__

specifies the UART Handle. UART Handle selects the USARTx or UARTy peripheral (USART,UART availability and x,y values depending on device).

__INTERRUPT__

specifies the UART interrupt source to enable. This parameter can be one of the following values: @arg UART_IT_CTS: CTS change interrupt @arg UART_IT_LBD: LIN Break detection interrupt @arg UART_IT_TXE: Transmit Data Register empty interrupt @arg UART_IT_TC: Transmission complete interrupt @arg UART_IT_RXNE: Receive Data register not empty interrupt @arg UART_IT_IDLE: Idle line detection interrupt @arg UART_IT_PE: Parity Error interrupt @arg UART_IT_ERR: Error interrupt(Frame error, noise error, overrun error)

Return value

None

References

LocationText
stm32f4xx_hal_uart.h:558
#define __HAL_UART_ENABLE_IT(__HANDLE__, __INTERRUPT__) ((((__INTERRUPT__) >> 28U) == UART_CR1_REG_INDEX)? ((__HANDLE__)->Instance->CR1 |= ((__INTERRUPT__) & UART_IT_MASK)): \
stm32f4xx_hal_uart.c:1326
__HAL_UART_ENABLE_IT(huart, UART_IT_TXE);
stm32f4xx_hal_uart.c:3248
__HAL_UART_ENABLE_IT(huart, UART_IT_PE);
stm32f4xx_hal_uart.c:3252
__HAL_UART_ENABLE_IT(huart, UART_IT_ERR);
stm32f4xx_hal_uart.c:3255
__HAL_UART_ENABLE_IT(huart, UART_IT_RXNE);
stm32f4xx_hal_uart.c:3553
__HAL_UART_ENABLE_IT(huart, UART_IT_TC);