vemu.

interface

PeripheralViewProps

Uniform props every peripheral inspector view receives. Domain-specific views (KMU, UICR) and the generic fallback all implement this interface, so adding a new view is: write a component matching these props + register it in peripheralViews.tsx.

interface PeripheralViewProps

Fields

NameTypeDescription
namestringPeripheral name as reported by the machine (e.g. "kmu", "uicr").
eventsPeripheralEvent[]All peripheral events seen so far; the view filters for the ones it cares about.
refreshKeynumberMonotonic counter that increments whenever new events arrive.
getSnapshot() => PeripheralSnapshot | nullPull the current snapshot for this peripheral (null if unavailable).
sendCommand(cmd: { name: string; params: Record<string, string> }) => voidSend a command to this peripheral's inspector.
sendUartRx(target: string, bytes: number[], timing?: TimingSpec) => voidDeliver UART RX bytes to this peripheral, optionally at a precise virtual time (`timing`). Absent `timing` is immediate. Undefined on hosts/boards without timed-delivery support (feature-detect before use).
clockHznumberGuest clock in Hz (cycles/sec), or 0 when unknown. For timing conversions.