Skip to content

probe-web / @probe-web/ui / ProbeTargetPicker

Class: ProbeTargetPicker

Defined in: packages/ui/src/target-picker.ts:34

<probe-target-picker>: search the connected server's chip registry, show a chip's cores and memory map, and import extra chip families from probe-rs target YAML, a CMSIS .pack, or a .FLM flash algorithm (all of which end up at chips/load).

A pack routinely describes dozens of families, so those are listed for the user to choose from rather than being pushed into the registry wholesale. Any SVDs the pack carries are announced with a svds-found event, so a page that has a Peripherals view can offer them without a second download.

Fires

  • chip-selected: The user picked a chip from the search results. detail is the chip name (a string), as client.attach({ chip }) takes it.
  • family-imported: Chip families were loaded into the registry. detail is a label for what was imported: the file name, or Family (file.pack) for one family from a pack.
  • svds-found: A picked .pack contains SVD files. detail is an array of { name, xml } from packSvds().

Extends

  • LitElement

Constructors

Constructor

ts
new ProbeTargetPicker(): ProbeTargetPicker;

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

Returns

ProbeTargetPicker

Inherited from

ts
LitElement.constructor

Properties

PropertyTypeDefault valueDescriptionDefined in
clientClient | nullnullThe connection whose chip registry is searched and extended.packages/ui/src/target-picker.ts:64
valuestring''The selected chip name; set by ProbeTargetPicker.select, and settable to preselect one.packages/ui/src/target-picker.ts:66

Accessors

results

Get Signature

ts
get results(): {
  family: string;
  chip: string;
}[];

Defined in: packages/ui/src/target-picker.ts:92

Chips matching the query: Family/Chip rows, capped for the DOM.

Returns

{ family: string; chip: string; }[]

Methods

refresh()

ts
refresh(): Promise<void>;

Defined in: packages/ui/src/target-picker.ts:82

Re-read the list of chip families from the server.

Returns

Promise<void>


select()

ts
select(chip): Promise<void>;

Defined in: packages/ui/src/target-picker.ts:105

Select chip, fire chip-selected, and load its cores and memory map for display.

Parameters

ParameterType
chipstring

Returns

Promise<void>