Skip to content

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

ts
new ProbePeripherals(): ProbePeripherals;

Defined in: node_modules/@lit/reactive-element/development/reactive-element.d.ts:527

Returns

ProbePeripherals

Inherited from

DebuggerElement.constructor

Properties

PropertyTypeDefault valueDescriptionInherited fromDefined in
debuggerDebugger | nullnullThe debugger to follow (from session.debugger()); the panel shows "no debugger" without one.DebuggerElement.debuggerpackages/ui/src/debugger-element.ts:12

Methods

loadSvd()

ts
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

ParameterType
bytesUint8Array
namestring

Returns

Promise<void>


refresh()

ts
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>