FLAG_Management

Functions

__STATIC_INLINE uint32_t ll_uart_get_line_status_flag (uart_regs_t *UARTx)
 Get UART Receive Line Status Flag. More...
 
__STATIC_INLINE void ll_uart_clear_line_status_flag (uart_regs_t *UARTx)
 Clear UART Receive Line Status Flag. More...
 
__STATIC_INLINE uint32_t ll_uart_is_active_flag_rff (uart_regs_t *UARTx)
 Check if the UART Receive FIFO Full Flag is set or not. More...
 
__STATIC_INLINE uint32_t ll_uart_is_active_flag_rfne (uart_regs_t *UARTx)
 Check if the UART Receive FIFO Not Empty Flag is set or not. More...
 
__STATIC_INLINE uint32_t ll_uart_is_active_flag_tfe (uart_regs_t *UARTx)
 Check if the UART Transmit FIFO Empty Flag is set or not. More...
 
__STATIC_INLINE uint32_t ll_uart_is_active_flag_tfnf (uart_regs_t *UARTx)
 Check if the UART Transmit FIFO Not Full Flag is set or not. More...
 
__STATIC_INLINE uint32_t ll_uart_get_it_flag (uart_regs_t *UARTx)
 Get UART interrupt flags. More...
 

Detailed Description

Function Documentation

◆ ll_uart_clear_line_status_flag()

__STATIC_INLINE void ll_uart_clear_line_status_flag ( uart_regs_t *  UARTx)

Clear UART Receive Line Status Flag.

Note
OE/PE/FE/BI/RFE flags can be cleared by reading LSR register.
Register BitsName
LSR OE
LSR PE
LSR FE
LSR BI
LSR RFE
Parameters
UARTxUART instance
Return values
None

◆ ll_uart_get_it_flag()

__STATIC_INLINE uint32_t ll_uart_get_it_flag ( uart_regs_t *  UARTx)

Get UART interrupt flags.

Note
The interrupt flags will be cleared after reading IIR. If interrupt was triggered when reading IIR register, the interrupt will be pended, and No Interrupt Pending Flag will be RESET, read IIR again can get the pended interrupt
Register BitsName
IIR IID
Parameters
UARTxUART instance
Return values
Returnedvalue can be one or combination of the following values:

◆ ll_uart_get_line_status_flag()

__STATIC_INLINE uint32_t ll_uart_get_line_status_flag ( uart_regs_t *  UARTx)

Get UART Receive Line Status Flag.

Note
This function is used to get OE/PE/FE/BI/THRE/TEMT/RFE flags in LSR register. After LSR register was read, OE/PE/FE/BI/RFE flags will be cleared.
Register BitsName
LSR OE
LSR PE
LSR FE
LSR BI
LSR THRE
LSR TEMT
LSR RFE
Parameters
UARTxUART instance
Return values
Returnedvalue can be a combination of the following values:

◆ ll_uart_is_active_flag_rff()

__STATIC_INLINE uint32_t ll_uart_is_active_flag_rff ( uart_regs_t *  UARTx)

Check if the UART Receive FIFO Full Flag is set or not.

Register BitsName
USR RFF
Parameters
UARTxUART instance
Return values
Stateof bit (1 or 0).

◆ ll_uart_is_active_flag_rfne()

__STATIC_INLINE uint32_t ll_uart_is_active_flag_rfne ( uart_regs_t *  UARTx)

Check if the UART Receive FIFO Not Empty Flag is set or not.

Register BitsName
USR RFNE
Parameters
UARTxUART instance
Return values
Stateof bit (1 or 0).

◆ ll_uart_is_active_flag_tfe()

__STATIC_INLINE uint32_t ll_uart_is_active_flag_tfe ( uart_regs_t *  UARTx)

Check if the UART Transmit FIFO Empty Flag is set or not.

Register BitsName
USR TFE
Parameters
UARTxUART instance
Return values
Stateof bit (1 or 0).

◆ ll_uart_is_active_flag_tfnf()

__STATIC_INLINE uint32_t ll_uart_is_active_flag_tfnf ( uart_regs_t *  UARTx)

Check if the UART Transmit FIFO Not Full Flag is set or not.

Register BitsName
USR TFNF
Parameters
UARTxUART instance
Return values
Stateof bit (1 or 0).