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.detailis the chip name (a string), asclient.attach({ chip })takes it.family-imported: Chip families were loaded into the registry.detailis a label for what was imported: the file name, orFamily (file.pack)for one family from a pack.svds-found: A picked.packcontains SVD files.detailis an array of{ name, xml }frompackSvds().
Extends
LitElement
Constructors
Constructor
new ProbeTargetPicker(): ProbeTargetPicker;Defined in: node_modules/@lit/reactive-element/development/reactive-element.d.ts:527
Returns
ProbeTargetPicker
Inherited from
LitElement.constructorProperties
| Property | Type | Default value | Description | Defined in |
|---|---|---|---|---|
client | Client | null | null | The connection whose chip registry is searched and extended. | packages/ui/src/target-picker.ts:64 |
value | string | '' | The selected chip name; set by ProbeTargetPicker.select, and settable to preselect one. | packages/ui/src/target-picker.ts:66 |
Accessors
results
Get Signature
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()
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()
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
| Parameter | Type |
|---|---|
chip | string |
Returns
Promise<void>