CMSIS-DAP: DAP_UART_Status

| CMSIS-DAP Version 2.1.1 Interface Firmware for CoreSight Debug Access Port

- Main Page
- Usage and Description
- Reference

All Functions Groups Pages
DAP_UART_Status
UART COM Commands

Get UART status. More...

Get UART status.

## DAP_UART_Status (0x23):

Reads UART status (only for transport via DAP).

DAP_UART_Status Request:

| BYTE |
> 0x23 |
|******|

Note
  DAP_UART_Status command can be used only if transport via DAP is enabled.

DAP_UART_Status Response:

| BYTE | BYTE | WORD | WORD |
> 0x23 | Status | Rx Count | Tx Count |
|******|********|**********|**********|

- Status:
  - Bit 0: 1 = Receive enabled, 0 = Receive disabled
  - Bit 1: 1 = Data lost detected during receive (automatically cleared)
  - Bit 2: 1 = Framing error detected (automatically cleared)
  - Bit 3: 1 = Parity error detected (automatically cleared)
  - Bit 4: 1 = Transmit enabled, 0 = Transmit disabled
  - Bit 7..5: reserved (0)
- Rx Count: Number of bytes in UART receive buffer (not yet read)
- Tx Count: Number of bytes in UART transmit buffer (not yet transmitted)