Skip to content

Commit 06eca70

Browse files
authored
Add more documentation to library (#147)
***NO_CI***
1 parent 8252963 commit 06eca70

File tree

7 files changed

+81
-0
lines changed

7 files changed

+81
-0
lines changed

nanoFirmwareFlasher.Library/CC13x26x2Operations.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,22 @@
1111

1212
namespace nanoFramework.Tools.FirmwareFlasher
1313
{
14+
/// <summary>
15+
/// Class with operations available in CC13x26x2 devices.
16+
/// </summary>
1417
public class CC13x26x2Operations
1518
{
19+
/// <summary>
20+
/// Perform firmware update on a CC13x26x2 device.
21+
/// </summary>
22+
/// <param name="targetName">Name of the target to update.</param>
23+
/// <param name="fwVersion">Firmware version to update to.</param>
24+
/// <param name="preview">Set to <see langword="true"/> to use preview version to update.</param>
25+
/// <param name="updateFw">Set to <see langword="true"/> to force download of firmware package.</param>
26+
/// <param name="applicationPath">Path to application to update along with the firmware update.</param>
27+
/// <param name="deploymentAddress">Flash address to use when deploying an aplication.</param>
28+
/// <param name="verbosity">Set verbosity level of progress and error messages.</param>
29+
/// <returns>The <see cref="ExitCodes"/> with the operation result.</returns>
1630
public static async System.Threading.Tasks.Task<ExitCodes> UpdateFirmwareAsync(
1731
string targetName,
1832
string fwVersion,
@@ -125,6 +139,12 @@ public static async System.Threading.Tasks.Task<ExitCodes> UpdateFirmwareAsync(
125139
return programResult;
126140
}
127141

142+
/// <summary>
143+
/// Perform instalation of XDS110 drivers.
144+
/// </summary>
145+
/// <param name="verbosityLevel">Set verbosity level of progress and error messages.</param>
146+
/// <returns>The <see cref="ExitCodes"/> with the operation result.</returns>
147+
/// <exception cref="UniflashCliExecutionException">Error occurred when executing an operation with Uniflash Client.</exception>
128148
public static ExitCodes InstallXds110Drivers(VerbosityLevel verbosityLevel)
129149
{
130150
try

nanoFirmwareFlasher.Library/CloudSmithPackageDetails.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,19 @@
66

77
namespace nanoFramework.Tools.FirmwareFlasher
88
{
9+
/// <summary>
10+
/// Class with details of a CloudSmith package.
11+
/// </summary>
912
public class CloudSmithPackageDetail
1013
{
14+
/// <summary>
15+
/// Package name.
16+
/// </summary>
1117
public string Name { get; set; }
18+
19+
/// <summary>
20+
/// Package version.
21+
/// </summary>
1222
public string Version { get; set; }
1323
}
1424
}

nanoFirmwareFlasher.Library/Esp32Operations.cs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,20 @@
99

1010
namespace nanoFramework.Tools.FirmwareFlasher
1111
{
12+
/// <summary>
13+
/// Class with operations available in ESP32 devices.
14+
/// </summary>
1215
public class Esp32Operations
1316
{
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>
1426
public static ExitCodes BackupFlash(
1527
EspTool tool,
1628
Esp32DeviceInfo device,
@@ -78,6 +90,22 @@ public static ExitCodes BackupFlash(
7890
return ExitCodes.OK;
7991
}
8092

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>
81109
public static async System.Threading.Tasks.Task<ExitCodes> UpdateFirmwareAsync(
82110
EspTool espTool,
83111
Esp32DeviceInfo esp32Device,

nanoFirmwareFlasher.Library/JLinkCli.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
namespace nanoFramework.Tools.FirmwareFlasher
1616
{
17+
/// <summary>
18+
/// Class that performs the interface with the JLink CLI.
19+
/// </summary>
1720
public class JLinkCli
1821
{
1922
/// <summary>

nanoFirmwareFlasher.Library/JLinkDevice.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111

1212
namespace nanoFramework.Tools.FirmwareFlasher
1313
{
14+
/// <summary>
15+
/// Class representing a connected J-Link device.
16+
/// </summary>
1417
public class JLinkDevice : JLinkCli
1518
{
1619
/// <summary>

nanoFirmwareFlasher.Library/JLinkOperations.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,24 @@
1010

1111
namespace nanoFramework.Tools.FirmwareFlasher
1212
{
13+
/// <summary>
14+
/// Class with operations available in J-Link connected devices.
15+
/// </summary>
1316
public class JLinkOperations
1417
{
18+
/// <summary>
19+
/// Perform firmware update on a J-Link connected device.
20+
/// </summary>
21+
/// <param name="targetName">Name of the target to update.</param>
22+
/// <param name="fwVersion">Firmware version to update to.</param>
23+
/// <param name="preview">Set to <see langword="true"/> to use preview version to update.</param>
24+
/// <param name="updateFw">Set to <see langword="true"/> to force download of firmware package.</param>
25+
/// <param name="applicationPath">Path to application to update along with the firmware update.</param>
26+
/// <param name="deploymentAddress">Flash address to use when deploying an aplication.</param>
27+
/// <param name="probeId">ID of the J-Link probe to connect to.</param>
28+
/// <param name="fitCheck"><see langword="true"/> to perform validation of update package against connected target.</param>
29+
/// <param name="verbosity">Set verbosity level of progress and error messages.</param>
30+
/// <returns>The <see cref="ExitCodes"/> with the operation result.</returns>
1531
public static async System.Threading.Tasks.Task<ExitCodes> UpdateFirmwareAsync(
1632
string targetName,
1733
string fwVersion,

nanoFirmwareFlasher.Library/nanoFirmwareFlasher.Library.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
<PackageIcon>images\nf-logo.png</PackageIcon>
2727
<PackageTags>nanoFramework, nano Framework, NETNF, NETMF, Micro Framework, .net</PackageTags>
2828
<PackageReadmeFile>README.md</PackageReadmeFile>
29+
<GenerateDocumentationFile>True</GenerateDocumentationFile>
2930
</PropertyGroup>
3031

3132
<ItemGroup>

0 commit comments

Comments
 (0)