|
| 1 | +# vscode-arduino-api |
| 2 | + |
| 3 | +## Table of contents |
| 4 | + |
| 5 | +### Classes |
| 6 | + |
| 7 | +- [Disposable](classes/Disposable.md) |
| 8 | + |
| 9 | +### Interfaces |
| 10 | + |
| 11 | +- [ArduinoContext](interfaces/ArduinoContext.md) |
| 12 | +- [ArduinoState](interfaces/ArduinoState.md) |
| 13 | +- [BoardDetails](interfaces/BoardDetails.md) |
| 14 | +- [ChangeEvent](interfaces/ChangeEvent.md) |
| 15 | +- [CliConfig](interfaces/CliConfig.md) |
| 16 | +- [CompileSummary](interfaces/CompileSummary.md) |
| 17 | +- [ConfigOption](interfaces/ConfigOption.md) |
| 18 | +- [ConfigValue](interfaces/ConfigValue.md) |
| 19 | +- [Event](interfaces/Event.md) |
| 20 | +- [Port](interfaces/Port.md) |
| 21 | +- [Programmer](interfaces/Programmer.md) |
| 22 | +- [SketchFolder](interfaces/SketchFolder.md) |
| 23 | +- [SketchFoldersChangeEvent](interfaces/SketchFoldersChangeEvent.md) |
| 24 | + |
| 25 | +### Type Aliases |
| 26 | + |
| 27 | +- [BoardIdentifier](README.md#boardidentifier) |
| 28 | +- [BuildProperties](README.md#buildproperties) |
| 29 | +- [Tool](README.md#tool) |
| 30 | +- [Version](README.md#version) |
| 31 | + |
| 32 | +### Variables |
| 33 | + |
| 34 | +- [ConfigOption](README.md#configoption) |
| 35 | +- [ConfigValue](README.md#configvalue) |
| 36 | +- [Port](README.md#port) |
| 37 | +- [Programmer](README.md#programmer) |
| 38 | + |
| 39 | +## Type Aliases |
| 40 | + |
| 41 | +### BoardIdentifier |
| 42 | + |
| 43 | +Ƭ **BoardIdentifier**: `Nullable`\<`ApiBoard`, `"fqbn"`\> |
| 44 | + |
| 45 | +Lightweight information to identify a board: |
| 46 | + |
| 47 | +- The board's `name` is to provide a fallback for the UI. Preferably do not use this property for any sophisticated logic and board comparison. It must never participate in the board's identification. |
| 48 | +- The FQBN might contain boards config options if selected from the discovered ports (see [arduino/arduino-ide#1588](https://github.com/arduino/arduino-ide/issues/1588)). |
| 49 | + |
| 50 | +--- |
| 51 | + |
| 52 | +### BuildProperties |
| 53 | + |
| 54 | +Ƭ **BuildProperties**: `Readonly`\<`Record`\<`string`, `string`\>\> |
| 55 | + |
| 56 | +Build properties used for compiling. The board-specific properties are retrieved from `board.txt` and `platform.txt`. For example, if the `board.txt` contains the `build.tarch=xtensa` entry for the `esp32:esp32:esp32` board, the record includes the `"build.tarch": "xtensa"` property. |
| 57 | + |
| 58 | +--- |
| 59 | + |
| 60 | +### Tool |
| 61 | + |
| 62 | +Ƭ **Tool**: `Readonly`\<`Pick`\<`ToolsDependencies`, `"name"` \| `"version"` \| `"packager"`\>\> |
| 63 | + |
| 64 | +Required Tool dependencies of a board. See [`ToolsDependencies`](https://arduino.github.io/arduino-cli/latest/rpc/commands/#cc.arduino.cli.commands.v1.ToolsDependencies) for the CLI API. |
| 65 | + |
| 66 | +--- |
| 67 | + |
| 68 | +### Version |
| 69 | + |
| 70 | +Ƭ **Version**: `string` |
| 71 | + |
| 72 | +Supposed to be a [SemVer](https://semver.org/) as a `string` but it's not enforced by Arduino. You might need to coerce the SemVer string. |
| 73 | + |
| 74 | +## Variables |
| 75 | + |
| 76 | +### ConfigOption |
| 77 | + |
| 78 | +• **ConfigOption**: `Object` |
| 79 | + |
| 80 | +#### Type declaration |
| 81 | + |
| 82 | +| Name | Type | |
| 83 | +| :------------ | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 84 | +| `create` | (`base?`: \{ `option?`: `string` ; `optionLabel?`: `string` ; `values?`: \{ `selected?`: `boolean` ; `value?`: `string` ; `valueLabel?`: `string` }[] }) => [`ConfigOption`](interfaces/ConfigOption.md) | |
| 85 | +| `decode` | (`input`: `Uint8Array` \| `Reader`, `length?`: `number`) => [`ConfigOption`](interfaces/ConfigOption.md) | |
| 86 | +| `encode` | (`message`: [`ConfigOption`](interfaces/ConfigOption.md), `writer?`: `Writer`) => `Writer` | |
| 87 | +| `fromJSON` | (`object`: `any`) => [`ConfigOption`](interfaces/ConfigOption.md) | |
| 88 | +| `fromPartial` | (`object`: \{ `option?`: `string` ; `optionLabel?`: `string` ; `values?`: \{ `selected?`: `boolean` ; `value?`: `string` ; `valueLabel?`: `string` }[] }) => [`ConfigOption`](interfaces/ConfigOption.md) | |
| 89 | +| `toJSON` | (`message`: [`ConfigOption`](interfaces/ConfigOption.md)) => `unknown` | |
| 90 | + |
| 91 | +--- |
| 92 | + |
| 93 | +### ConfigValue |
| 94 | + |
| 95 | +• **ConfigValue**: `Object` |
| 96 | + |
| 97 | +#### Type declaration |
| 98 | + |
| 99 | +| Name | Type | |
| 100 | +| :------------ | :----------------------------------------------------------------------------------------------------------------------------------- | |
| 101 | +| `create` | (`base?`: \{ `selected?`: `boolean` ; `value?`: `string` ; `valueLabel?`: `string` }) => [`ConfigValue`](interfaces/ConfigValue.md) | |
| 102 | +| `decode` | (`input`: `Uint8Array` \| `Reader`, `length?`: `number`) => [`ConfigValue`](interfaces/ConfigValue.md) | |
| 103 | +| `encode` | (`message`: [`ConfigValue`](interfaces/ConfigValue.md), `writer?`: `Writer`) => `Writer` | |
| 104 | +| `fromJSON` | (`object`: `any`) => [`ConfigValue`](interfaces/ConfigValue.md) | |
| 105 | +| `fromPartial` | (`object`: \{ `selected?`: `boolean` ; `value?`: `string` ; `valueLabel?`: `string` }) => [`ConfigValue`](interfaces/ConfigValue.md) | |
| 106 | +| `toJSON` | (`message`: [`ConfigValue`](interfaces/ConfigValue.md)) => `unknown` | |
| 107 | + |
| 108 | +--- |
| 109 | + |
| 110 | +### Port |
| 111 | + |
| 112 | +• **Port**: `Object` |
| 113 | + |
| 114 | +#### Type declaration |
| 115 | + |
| 116 | +| Name | Type | |
| 117 | +| :------------ | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 118 | +| `create` | (`base?`: \{ `address?`: `string` ; `hardwareId?`: `string` ; `label?`: `string` ; `properties?`: {} ; `protocol?`: `string` ; `protocolLabel?`: `string` }) => [`Port`](interfaces/Port.md) | |
| 119 | +| `decode` | (`input`: `Uint8Array` \| `Reader`, `length?`: `number`) => [`Port`](interfaces/Port.md) | |
| 120 | +| `encode` | (`message`: [`Port`](interfaces/Port.md), `writer?`: `Writer`) => `Writer` | |
| 121 | +| `fromJSON` | (`object`: `any`) => [`Port`](interfaces/Port.md) | |
| 122 | +| `fromPartial` | (`object`: \{ `address?`: `string` ; `hardwareId?`: `string` ; `label?`: `string` ; `properties?`: {} ; `protocol?`: `string` ; `protocolLabel?`: `string` }) => [`Port`](interfaces/Port.md) | |
| 123 | +| `toJSON` | (`message`: [`Port`](interfaces/Port.md)) => `unknown` | |
| 124 | + |
| 125 | +--- |
| 126 | + |
| 127 | +### Programmer |
| 128 | + |
| 129 | +• **Programmer**: `Object` |
| 130 | + |
| 131 | +#### Type declaration |
| 132 | + |
| 133 | +| Name | Type | |
| 134 | +| :------------ | :----------------------------------------------------------------------------------------------------------------------- | |
| 135 | +| `create` | (`base?`: \{ `id?`: `string` ; `name?`: `string` ; `platform?`: `string` }) => [`Programmer`](interfaces/Programmer.md) | |
| 136 | +| `decode` | (`input`: `Uint8Array` \| `Reader`, `length?`: `number`) => [`Programmer`](interfaces/Programmer.md) | |
| 137 | +| `encode` | (`message`: [`Programmer`](interfaces/Programmer.md), `writer?`: `Writer`) => `Writer` | |
| 138 | +| `fromJSON` | (`object`: `any`) => [`Programmer`](interfaces/Programmer.md) | |
| 139 | +| `fromPartial` | (`object`: \{ `id?`: `string` ; `name?`: `string` ; `platform?`: `string` }) => [`Programmer`](interfaces/Programmer.md) | |
| 140 | +| `toJSON` | (`message`: [`Programmer`](interfaces/Programmer.md)) => `unknown` | |
0 commit comments