vemu.

Digital I/O - Input - nordic,nrf-qdec

nRF5340 QDEC (quadrature decoder)

Functional QDEC model with no encoder connected: `TASKS_START` latches `SAMPLERDY` and `REPORTRDY` immediately, `TASKS_STOP` latches `STOPPED` (IRQ when enabled). `ACC`, `SAMPLE`, and the read-clear accumulator registers always read 0 (no movement). DPPI SUBSCRIBE/PUBLISH are fully wired. Two instances: QDEC0, QDEC1.

emits: signal_pulse

Events emitted

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

Events accepted

No peripheral-specific input events. The peripheral is driven through MMIO register access.

Commands

This peripheral exposes no commands.

Snapshot fields

FieldTypeLabel
intenu32INTEN (interrupt enable mask)
enableu32ENABLE register
runningboolDecoder running
ev_samplerdyu32EVENTS_SAMPLERDY latch
ev_reportrdyu32EVENTS_REPORTRDY latch
ev_stoppedu32EVENTS_STOPPED latch
state_jsonstrQDEC State Summary (JSON)

Read at runtime with emulator.peripheral_snapshot(name).

Boards using this peripheral