-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for direct operations to nano devices (#151)
- Loading branch information
1 parent
832ce56
commit d0b9fbe
Showing
17 changed files
with
1,131 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
nanoFirmwareFlasher.Library/Exceptions/CantConnectToNanoDeviceException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// | ||
// Copyright (c) .NET Foundation and Contributors | ||
// See LICENSE file in the project root for full license information. | ||
// | ||
|
||
using System; | ||
using System.Runtime.Serialization; | ||
|
||
namespace nanoFramework.Tools.FirmwareFlasher | ||
{ | ||
/// <summary> | ||
/// Couldn't open the specified .NET nanoFramework device. | ||
/// </summary> | ||
[Serializable] | ||
public class CantConnectToNanoDeviceException : Exception | ||
{ | ||
public CantConnectToNanoDeviceException() | ||
{ | ||
} | ||
|
||
public CantConnectToNanoDeviceException(string message) : base(message) | ||
{ | ||
} | ||
|
||
public CantConnectToNanoDeviceException(string message, Exception innerException) : base(message, innerException) | ||
{ | ||
} | ||
|
||
protected CantConnectToNanoDeviceException(SerializationInfo info, StreamingContext context) : base(info, context) | ||
{ | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
nanoFirmwareFlasher.Library/Exceptions/NanoDeviceOperationFailedException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// | ||
// Copyright (c) .NET Foundation and Contributors | ||
// See LICENSE file in the project root for full license information. | ||
// | ||
|
||
using System; | ||
using System.Runtime.Serialization; | ||
|
||
namespace nanoFramework.Tools.FirmwareFlasher | ||
{ | ||
/// <summary> | ||
/// Verification of DFU write failed. | ||
/// </summary> | ||
[Serializable] | ||
public class NanoDeviceOperationFailedException : Exception | ||
{ | ||
public NanoDeviceOperationFailedException() | ||
{ | ||
} | ||
|
||
public NanoDeviceOperationFailedException(string message) : base(message) | ||
{ | ||
} | ||
|
||
public NanoDeviceOperationFailedException(string message, Exception innerException) : base(message, innerException) | ||
{ | ||
} | ||
|
||
protected NanoDeviceOperationFailedException(SerializationInfo info, StreamingContext context) : base(info, context) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.