Combined UART USR (Status Register) and LSR (Line Status Register) bitfield. More...
#include <uart.h>
Data Fields | |
| uint16_t | busy_not_used: 1 |
| uint16_t | tx_fifo_not_full: 1 |
| uint16_t | tx_fifo_empty: 1 |
| uint16_t | rx_fifo_not_empty: 1 |
| uint16_t | rx_fifo_full: 1 |
| uint16_t | reserved_5: 1 |
| uint16_t | reserved_6: 1 |
| uint16_t | reserved_7: 1 |
| uint16_t | data_ready: 1 |
| uint16_t | overrun_error: 1 |
| uint16_t | parity_error: 1 |
| uint16_t | framing_error: 1 |
| uint16_t | break_detected: 1 |
| uint16_t | thr_empty: 1 |
| uint16_t | tx_empty: 1 |
| uint16_t | rx_fifo_error: 1 |
Combined UART USR (Status Register) and LSR (Line Status Register) bitfield.
This bitfield structure represents the combined 16-bit value of the UART status.
| uint16_t uart_usr_lsr_status_bits_t::busy_not_used |
Bit 0: UART is busy (not used on SR110)
| uint16_t uart_usr_lsr_status_bits_t::tx_fifo_not_full |
Bit 1: TFNF - Transmit FIFO Not Full
| uint16_t uart_usr_lsr_status_bits_t::tx_fifo_empty |
Bit 2: TFE - Transmit FIFO Empty
| uint16_t uart_usr_lsr_status_bits_t::rx_fifo_not_empty |
Bit 3: RFNE - Receive FIFO Not Empty
| uint16_t uart_usr_lsr_status_bits_t::rx_fifo_full |
Bit 4: RFF - Receive FIFO Full
| uint16_t uart_usr_lsr_status_bits_t::reserved_5 |
Bit 5: Reserved
| uint16_t uart_usr_lsr_status_bits_t::reserved_6 |
Bit 6: Reserved
| uint16_t uart_usr_lsr_status_bits_t::reserved_7 |
Bit 7: Reserved
| uint16_t uart_usr_lsr_status_bits_t::data_ready |
Bit 8: DR - Data Ready
| uint16_t uart_usr_lsr_status_bits_t::overrun_error |
Bit 9: OE - Overrun Error
| uint16_t uart_usr_lsr_status_bits_t::parity_error |
Bit 10: PE - Parity Error
| uint16_t uart_usr_lsr_status_bits_t::framing_error |
Bit 11: FE - Framing Error
| uint16_t uart_usr_lsr_status_bits_t::break_detected |
Bit 12: BI - Break Interrupt Detected
| uint16_t uart_usr_lsr_status_bits_t::thr_empty |
Bit 13: THRE - Transmit Holding Register Empty
| uint16_t uart_usr_lsr_status_bits_t::tx_empty |
Bit 14: TEMT - Transmitter Empty
| uint16_t uart_usr_lsr_status_bits_t::rx_fifo_error |
Bit 15: RFE - Receive FIFO Error