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 PeripheralViewPropsFields
| Name | Type | Description |
|---|---|---|
name | string | Peripheral name as reported by the machine (e.g. "kmu", "uicr"). |
events | PeripheralEvent[] | All peripheral events seen so far; the view filters for the ones it cares about. |
refreshKey | number | Monotonic counter that increments whenever new events arrive. |
getSnapshot | () => PeripheralSnapshot | null | Pull the current snapshot for this peripheral (null if unavailable). |
sendCommand | (cmd: { name: string; params: Record<string, string> }) => void | Send a command to this peripheral's inspector. |
sendUartRx | (target: string, bytes: number[], timing?: TimingSpec) => void | Deliver 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). |
clockHz | number | Guest clock in Hz (cycles/sec), or 0 when unknown. For timing conversions. |