probe-web / @probe-web/ui / ProbePeripherals
Class: ProbePeripherals
Defined in: packages/ui/src/peripherals.ts:28
<probe-peripherals>: peripherals from a CMSIS-SVD file (loaded through the debugger; the server parses it and reads registers live), as a tree of peripherals → registers → fields, with a name filter. Refreshed at each stop.
Load the SVD with the file input, or call ProbePeripherals.loadSvd — for example with an SVD from <probe-target-picker>'s svds-found event.
Fires no events.
Extends
Constructors
Constructor
new ProbePeripherals(): ProbePeripherals;Defined in: node_modules/@lit/reactive-element/development/reactive-element.d.ts:527
Returns
ProbePeripherals
Inherited from
Properties
| Property | Type | Default value | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
debugger | Debugger | null | null | The debugger to follow (from session.debugger()); the panel shows "no debugger" without one. | DebuggerElement.debugger | packages/ui/src/debugger-element.ts:12 |
Methods
loadSvd()
loadSvd(bytes, name): Promise<void>;Defined in: packages/ui/src/peripherals.ts:54
Load an SVD (bytes of the .svd/.xml file) into the debugger and show its peripherals. name is shown in the panel. Errors are shown in the panel rather than thrown.
Parameters
| Parameter | Type |
|---|---|
bytes | Uint8Array |
name | string |
Returns
Promise<void>
refresh()
refresh(): Promise<void>;Defined in: packages/ui/src/peripherals.ts:81
Re-read the Peripherals scope now (the core must be halted).
Returns
Promise<void>