Connectivity - USB - nordic,nrf-usbd
nRF5340 USBD (USB 2.0 full-speed device controller)
Behavioral USBD stub: writing ENABLE latches EVENTS_USBRESET (no VBUS - disconnected-bus semantics). All endpoint EasyDMA registers, EPINEN/EPOUTEN, EPSTALL, EPDATASTATUS, HALTED, and SETUP data registers are modelled as plain R/W storage. INTEN/INTENSET/INTENCLR gate IRQ assertion on every latched event.
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 |
|---|---|---|
| state_json | str | USBD State (JSON summary) |
| inten | u32 | INTEN (interrupt enable mask) |
| enable | u32 | ENABLE register |
| ev_usbreset | u32 | EVENTS_USBRESET latch |
| ev_started | u32 | EVENTS_STARTED latch |
| ev_ep0datadone | u32 | EVENTS_EP0DATADONE latch |
| ev_epdata | u32 | EVENTS_EPDATA latch |
| ev_sof | u32 | EVENTS_SOF latch |
| ev_usbevent | u32 | EVENTS_USBEVENT latch |
| epinen | u32 | EPINEN (endpoint IN enable bitmask) |
| epouten | u32 | EPOUTEN (endpoint OUT enable bitmask) |
| epstatus | u32 | EPSTATUS |
| epdatastatus | u32 | EPDATASTATUS |
| eventcause | u32 | EVENTCAUSE |
| shorts | u32 | SHORTS bitmask |
| usbaddr | u32 | USBADDR (assigned USB address) |
Read at runtime with emulator.peripheral_snapshot(name).