|
9 | 9 |
|
10 | 10 | namespace nanoFramework.Tools.FirmwareFlasher |
11 | 11 | { |
| 12 | + /// <summary> |
| 13 | + /// Class with operations available in ESP32 devices. |
| 14 | + /// </summary> |
12 | 15 | public class Esp32Operations |
13 | 16 | { |
| 17 | + /// <summary> |
| 18 | + /// Perform backup of current flash content of ESP32 device. |
| 19 | + /// </summary> |
| 20 | + /// <param name="tool"><see cref="EspTool"/> to use when performing update.</param> |
| 21 | + /// <param name="device"><see cref="Esp32DeviceInfo"/> of device to update.</param> |
| 22 | + /// <param name="backupPath">Path to store backup image.</param> |
| 23 | + /// <param name="fileName">Name of backup file.</param> |
| 24 | + /// <param name="verbosity">Set verbosity level of progress and error messages.</param> |
| 25 | + /// <returns>The <see cref="ExitCodes"/> with the operation result.</returns> |
14 | 26 | public static ExitCodes BackupFlash( |
15 | 27 | EspTool tool, |
16 | 28 | Esp32DeviceInfo device, |
@@ -78,6 +90,22 @@ public static ExitCodes BackupFlash( |
78 | 90 | return ExitCodes.OK; |
79 | 91 | } |
80 | 92 |
|
| 93 | + /// <summary> |
| 94 | + /// Perform firmware update on a ESP32 device. |
| 95 | + /// </summary> |
| 96 | + /// <param name="tool"><see cref="EspTool"/> to use when performing update.</param> |
| 97 | + /// <param name="device"><see cref="Esp32DeviceInfo"/> of device to update.</param> |
| 98 | + /// <param name="targetName">Name of the target to update.</param> |
| 99 | + /// <param name="updateFw">Set to <see langword="true"/> to force download of firmware package.</param> |
| 100 | + /// <param name="fwVersion">Firmware version to update to.</param> |
| 101 | + /// <param name="preview">Set to <see langword="true"/> to use preview version to update.</param> |
| 102 | + /// <param name="applicationPath">Path to application to update along with the firmware update.</param> |
| 103 | + /// <param name="deploymentAddress">Flash address to use when deploying an aplication.</param> |
| 104 | + /// <param name="clrFile">Path to CLR file to use for firmware update.</param> |
| 105 | + /// <param name="fitCheck"><see langword="true"/> to perform validation of update package against connected target.</param> |
| 106 | + /// <param name="verbosity">Set verbosity level of progress and error messages.</param> |
| 107 | + /// <param name="partitionTableSize">Size of partition table.</param> |
| 108 | + /// <returns>The <see cref="ExitCodes"/> with the operation result.</returns> |
81 | 109 | public static async System.Threading.Tasks.Task<ExitCodes> UpdateFirmwareAsync( |
82 | 110 | EspTool espTool, |
83 | 111 | Esp32DeviceInfo esp32Device, |
|
0 commit comments