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

__HAL_UART_DISABLE_IT macro

Disable the specified UART interrupt.

Syntax

#define __HAL_UART_DISABLE_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 disable. 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:578
#define __HAL_UART_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((((__INTERRUPT__) >> 28U) == UART_CR1_REG_INDEX)? ((__HANDLE__)->Instance->CR1 &= ~((__INTERRUPT__) & UART_IT_MASK)): \
stm32f4xx_hal_uart.c:3550
__HAL_UART_DISABLE_IT(huart, UART_IT_TXE);
stm32f4xx_hal_uart.c:3572
__HAL_UART_DISABLE_IT(huart, UART_IT_TC);
stm32f4xx_hal_uart.c:3628
__HAL_UART_DISABLE_IT(huart, UART_IT_RXNE);
stm32f4xx_hal_uart.c:3631
__HAL_UART_DISABLE_IT(huart, UART_IT_PE);
stm32f4xx_hal_uart.c:3634
__HAL_UART_DISABLE_IT(huart, UART_IT_ERR);