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
| Field | Type | Label |
|---|---|---|
| inten | u32 | INTEN (interrupt enable mask) |
| enable | u32 | ENABLE register |
| running | bool | Decoder running |
| ev_samplerdy | u32 | EVENTS_SAMPLERDY latch |
| ev_reportrdy | u32 | EVENTS_REPORTRDY latch |
| ev_stopped | u32 | EVENTS_STOPPED latch |
| state_json | str | QDEC State Summary (JSON) |
Read at runtime with emulator.peripheral_snapshot(name).