Skip to content

Commit 338a5d5

Browse files
Add missing Intellisense comments (#184)
***NO_CI***
1 parent 0c0c90c commit 338a5d5

28 files changed

+409
-15
lines changed

nanoFirmwareFlasher.Library/Esp32DeviceInfo.cs

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,17 @@ public class Esp32DeviceInfo
6565
public PSRamAvailability PSRamAvailable { get; }
6666

6767
/// <summary>
68-
/// Constructor
68+
/// Constructor.
6969
/// </summary>
70-
/// <param name="toolVersion">Version of the esptool.py</param>
71-
/// <param name="chipName">ESP32 chip name</param>
72-
/// <param name="features">ESP32 chip features</param>
73-
/// <param name="macAddress">MAC address of the ESP32 chip</param>
74-
/// <param name="flashManufacturerId">Flash manufacturer ID</param>
75-
/// <param name="flashDeviceModelId">Flash device type ID</param>
76-
/// <param name="flashSize">The size of the flash in bytes</param>
70+
/// <param name="chipType">The type of chip.</param>
71+
/// <param name="chipName">ESP32 chip name.</param>
72+
/// <param name="features">ESP32 chip features.</param>
73+
/// <param name="crystal"> ESP32 crystal.</param>
74+
/// <param name="macAddress">MAC address of the ESP32 chip.</param>
75+
/// <param name="flashManufacturerId">Flash manufacturer ID.</param>
76+
/// <param name="flashDeviceModelId">Flash device type ID.</param>
77+
/// <param name="flashSize">The size of the flash in bytes.</param>
78+
/// <param name="psramAvailability">Availability of PSRAM.</param>
7779
public Esp32DeviceInfo(
7880
string chipType,
7981
string chipName,
@@ -101,6 +103,11 @@ internal string GetFlashSizeAsString()
101103
return GetFlashSizeAsString(FlashSize);
102104
}
103105

106+
/// <summary>
107+
/// Gets the flash size as a string.
108+
/// </summary>
109+
/// <param name="flashSize">The flash size.</param>
110+
/// <returns>The flash size.</returns>
104111
public static string GetFlashSizeAsString(int flashSize)
105112
{
106113
return flashSize >= 0x10000 ? $"{flashSize / 0x100000}MB" : $"{flashSize / 0x400}kB";

nanoFirmwareFlasher.Library/Esp32Operations.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ public static ExitCodes BackupFlash(
9393
/// <summary>
9494
/// Perform firmware update on a ESP32 device.
9595
/// </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>
96+
/// <param name="espTool"><see cref="EspTool"/> to use when performing update.</param>
97+
/// <param name="esp32Device"><see cref="Esp32DeviceInfo"/> of device to update.</param>
9898
/// <param name="targetName">Name of the target to update.</param>
9999
/// <param name="updateFw">Set to <see langword="true"/> to force download of firmware package.</param>
100100
/// <param name="fwVersion">Firmware version to update to.</param>

nanoFirmwareFlasher.Library/EspTool.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ public partial class EspTool
7777
/// <param name="flashMode">The flash mode for the esptool</param>
7878
/// <param name="flashFrequency">The flash frequency for the esptool</param>
7979
/// <param name="partitionTableSize">Partition table size to use</param>
80+
/// <param name="verbosity">The verbosity level of messages</param>
8081
public EspTool(
8182
string serialPort,
8283
int baudRate,
@@ -458,6 +459,7 @@ internal ExitCodes EraseFlashSegment(uint startAddress, uint length)
458459
/// Write to the flash
459460
/// </summary>
460461
/// <param name="partsToWrite">dictionary which keys are the start addresses and the values are the complete filenames (the bin files)</param>
462+
/// <param name="useStandardBaudrate">Use the standard baud rate (default is false).</param>
461463
/// <returns>true if successful</returns>
462464
internal ExitCodes WriteFlash(
463465
Dictionary<int, string> partsToWrite,

nanoFirmwareFlasher.Library/Exceptions/CantConnectToDfuDeviceException.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,35 @@ namespace nanoFramework.Tools.FirmwareFlasher
1414
[Serializable]
1515
public class CantConnectToDfuDeviceException : Exception
1616
{
17+
/// <summary>
18+
/// DFU device connection exception.
19+
/// </summary>
1720
public CantConnectToDfuDeviceException()
1821
{
1922
}
2023

24+
/// <summary>
25+
/// DFU device connection exception.
26+
/// </summary>
27+
/// <param name="message">Message to display.</param>
2128
public CantConnectToDfuDeviceException(string message) : base(message)
2229
{
2330
}
2431

32+
/// <summary>
33+
/// DFU device connection exception.
34+
/// </summary>
35+
/// <param name="message">Message to display.</param>
36+
/// <param name="innerException">The exception to display.</param>
2537
public CantConnectToDfuDeviceException(string message, Exception innerException) : base(message, innerException)
2638
{
2739
}
2840

41+
/// <summary>
42+
/// DFU device connection exception.
43+
/// </summary>
44+
/// <param name="info">Serialized information.</param>
45+
/// <param name="context">Streamed context.</param>
2946
protected CantConnectToDfuDeviceException(SerializationInfo info, StreamingContext context) : base(info, context)
3047
{
3148
}

nanoFirmwareFlasher.Library/Exceptions/CantConnectToJLinkDeviceException.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,35 @@ namespace nanoFramework.Tools.FirmwareFlasher
1414
[Serializable]
1515
public class CantConnectToJLinkDeviceException : Exception
1616
{
17+
/// <summary>
18+
/// Cannot connect to the J-Link device exception.
19+
/// </summary>
1720
public CantConnectToJLinkDeviceException()
1821
{
1922
}
2023

24+
/// <summary>
25+
/// Cannot connect to the JLINK device exception.
26+
/// </summary>
27+
/// <param name="message">Message to display.</param>
2128
public CantConnectToJLinkDeviceException(string message) : base(message)
2229
{
2330
}
2431

32+
/// <summary>
33+
/// Cannot connect to the JLINK device exception.
34+
/// </summary>
35+
/// <param name="message">Message to display.</param>
36+
/// <param name="innerException">The exception to display.</param>
2537
public CantConnectToJLinkDeviceException(string message, Exception innerException) : base(message, innerException)
2638
{
2739
}
2840

41+
/// <summary>
42+
/// Cannot connect to the JLINK device exception.
43+
/// </summary>
44+
/// <param name="info">Serialized information.</param>
45+
/// <param name="context">Streamed context.</param>
2946
protected CantConnectToJLinkDeviceException(SerializationInfo info, StreamingContext context) : base(info, context)
3047
{
3148
}

nanoFirmwareFlasher.Library/Exceptions/CantConnectToJtagDeviceException.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,35 @@ namespace nanoFramework.Tools.FirmwareFlasher
1414
[Serializable]
1515
public class CantConnectToJtagDeviceException : Exception
1616
{
17+
/// <summary>
18+
/// Cannot connect to JTAG device exception.
19+
/// </summary>
1720
public CantConnectToJtagDeviceException()
1821
{
1922
}
2023

24+
/// <summary>
25+
/// Cannot connect to JTAG device exception.
26+
/// </summary>
27+
/// <param name="message">Message to display.</param>
2128
public CantConnectToJtagDeviceException(string message) : base(message)
2229
{
2330
}
2431

32+
/// <summary>
33+
/// Cannot connect to JTAG device exception.
34+
/// </summary>
35+
/// <param name="message">Message to display.</param>
36+
/// <param name="innerException">The exception to display.</param>
2537
public CantConnectToJtagDeviceException(string message, Exception innerException) : base(message, innerException)
2638
{
2739
}
2840

41+
/// <summary>
42+
/// Cannot connect to JTAG device exception.
43+
/// </summary>
44+
/// <param name="info">Serialized information.</param>
45+
/// <param name="context">Streamed context.</param>
2946
protected CantConnectToJtagDeviceException(SerializationInfo info, StreamingContext context) : base(info, context)
3047
{
3148
}

nanoFirmwareFlasher.Library/Exceptions/CantConnectToNanoDeviceException.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,35 @@ namespace nanoFramework.Tools.FirmwareFlasher
1414
[Serializable]
1515
public class CantConnectToNanoDeviceException : Exception
1616
{
17+
/// <summary>
18+
/// Cannot connect to device exception.
19+
/// </summary>
1720
public CantConnectToNanoDeviceException()
1821
{
1922
}
2023

24+
/// <summary>
25+
/// Cannot connect to device exception.
26+
/// </summary>
27+
/// <param name="message">Message to display.</param>
2128
public CantConnectToNanoDeviceException(string message) : base(message)
2229
{
2330
}
2431

32+
/// <summary>
33+
/// Cannot connect to device exception.
34+
/// </summary>
35+
/// <param name="message">Message to display.</param>
36+
/// <param name="innerException">The exception to display.</param>
2537
public CantConnectToNanoDeviceException(string message, Exception innerException) : base(message, innerException)
2638
{
2739
}
2840

41+
/// <summary>
42+
/// Cannot connect to device exception.
43+
/// </summary>
44+
/// <param name="info">Serialized information.</param>
45+
/// <param name="context">Streamed context.</param>
2946
protected CantConnectToNanoDeviceException(SerializationInfo info, StreamingContext context) : base(info, context)
3047
{
3148
}

nanoFirmwareFlasher.Library/Exceptions/DfuFileDoesNotExistException.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,35 @@ namespace nanoFramework.Tools.FirmwareFlasher
1414
[Serializable]
1515
public class DfuFileDoesNotExistException : Exception
1616
{
17+
/// <summary>
18+
/// DFU file does not exist exception.
19+
/// </summary>
1720
public DfuFileDoesNotExistException()
1821
{
1922
}
2023

24+
/// <summary>
25+
/// DFU file does not exist exception.
26+
/// </summary>
27+
/// <param name="message">Message to display.</param>
2128
public DfuFileDoesNotExistException(string message) : base(message)
2229
{
2330
}
2431

32+
/// <summary>
33+
/// DFU file does not exist exception.
34+
/// </summary>
35+
/// <param name="message">Message to display.</param>
36+
/// <param name="innerException">The exception to display.</param>
2537
public DfuFileDoesNotExistException(string message, Exception innerException) : base(message, innerException)
2638
{
2739
}
2840

41+
/// <summary>
42+
/// DFU file does not exist exception.
43+
/// </summary>
44+
/// <param name="info">Serialized information.</param>
45+
/// <param name="context">Streamed context.</param>
2946
protected DfuFileDoesNotExistException(SerializationInfo info, StreamingContext context) : base(info, context)
3047
{
3148
}

nanoFirmwareFlasher.Library/Exceptions/DfuOperationFailedException.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,35 @@ namespace nanoFramework.Tools.FirmwareFlasher
1414
[Serializable]
1515
public class DfuOperationFailedException : Exception
1616
{
17+
/// <summary>
18+
/// DFU operation failed exception.
19+
/// </summary>
1720
public DfuOperationFailedException()
1821
{
1922
}
2023

24+
/// <summary>
25+
/// DFU operation failed exception.
26+
/// </summary>
27+
/// <param name="message">Message to display.</param>
2128
public DfuOperationFailedException(string message) : base(message)
2229
{
2330
}
2431

32+
/// <summary>
33+
/// DFU operation failed exception.
34+
/// </summary>
35+
/// <param name="message">Message to display.</param>
36+
/// <param name="innerException">The exception to display.</param>
2537
public DfuOperationFailedException(string message, Exception innerException) : base(message, innerException)
2638
{
2739
}
2840

41+
/// <summary>
42+
/// DFU operation failed exception.
43+
/// </summary>
44+
/// <param name="info">Serialized information.</param>
45+
/// <param name="context">Streamed context.</param>
2946
protected DfuOperationFailedException(SerializationInfo info, StreamingContext context) : base(info, context)
3047
{
3148
}

nanoFirmwareFlasher.Library/Exceptions/EraseEsp32FlashException.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,29 @@ public class EraseEsp32FlashException : Exception
1919
/// </summary>
2020
public string ExecutionError;
2121

22+
/// <summary>
23+
/// ESP32 tool erase exception.
24+
/// </summary>
25+
/// <param name="message">Message to display.</param>
2226
public EraseEsp32FlashException(string message) : base(message)
2327
{
2428
ExecutionError = message;
2529
}
2630

31+
/// <summary>
32+
/// ESP32 tool erase exception.
33+
/// </summary>
34+
/// <param name="message">Message to display.</param>
35+
/// <param name="innerException">The exception to display.</param>
2736
public EraseEsp32FlashException(string message, Exception innerException) : base(message, innerException)
2837
{
2938
}
3039

40+
/// <summary>
41+
/// ESP32 tool erase exception.
42+
/// </summary>
43+
/// <param name="info">Serialized information.</param>
44+
/// <param name="context">Streamed context</param>
3145
protected EraseEsp32FlashException(SerializationInfo info, StreamingContext context) : base(info, context)
3246
{
3347
}

0 commit comments

Comments
 (0)