vemu.

Connectivity - UART / Serial - nordic,nrf-uarte

nRF5340 UARTE (UART with EasyDMA)

UART with EasyDMA model. `TASKS_STARTTX` queues an EasyDMA read of `TXD.PTR`/`TXD.MAXCNT` from guest SRAM (console bytes are routed by the bus); the bus reports completion back, latching `EVENTS_ENDTX`. Received bytes pass through a 4-byte hardware FIFO into the active `RXD` buffer via DMA writes, with ENDRX/RXTO and SHORTS handling and level-sensitive IRQ re-evaluation on every event change.

tickableext_dmaemits: signal_pulseemits: dmahandles: uart_rxhandles: custom

Events emitted

No peripheral-specific events. Structured activity (IRQs, DMA) surfaces through the shared event vocabulary.

Events accepted

vemu.easydma.tx_complete

Bus-internal completion: an EasyDMA TX transfer finished.

Payload

FieldTypeDescription
byte_countu32Bytes actually transferred.
req_idu32Transfer id echoed from the DMA request.

Commands

This peripheral exposes no commands.

Snapshot fields

FieldTypeLabel
state_jsonstrUARTE State Summary (JSON)
intenu32INTEN (interrupt enable mask)
enableu32ENABLE (0=disabled, 8=enabled)
rx_activeboolRX active (EasyDMA RX transfer in progress)
errorsrcu32ERRORSRC (error source bitmask)
baudrateu32BAUDRATE register value
shortsu32SHORTS bitmask
rxd_amountu32RXD.AMOUNT (bytes received into current DMA buffer)
txd_amountu32TXD.AMOUNT (bytes sent in last DMA transfer)

Read at runtime with emulator.peripheral_snapshot(name).

Boards using this peripheral