-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from K-Society/experimental
SetExternalLoaderPath and GetExternalLoaders enhancement.
- Loading branch information
Showing
11 changed files
with
169 additions
and
95 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
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
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
57 changes: 57 additions & 0 deletions
57
src/01/KSociety.SharpCubeProgrammer/Struct/DeviceExternalLoader.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,57 @@ | ||
// Copyright © K-Society and contributors. All rights reserved. Licensed under the K-Society License. See LICENSE.TXT file in the project root for full license information. | ||
|
||
namespace KSociety.SharpCubeProgrammer.Struct | ||
{ | ||
using System.Collections.Generic; | ||
|
||
/// <summary> | ||
/// Get external Loader parameters to launch the process of programming an external flash memory. | ||
/// </summary> | ||
public struct DeviceExternalLoader | ||
{ | ||
/// <summary> | ||
/// FlashLoader file path. | ||
/// </summary> | ||
public string filePath; | ||
|
||
/// <summary> | ||
/// Device Name and Description. | ||
/// </summary> | ||
public string deviceName; | ||
|
||
/// <summary> | ||
/// Device Type: ONCHIP, EXT8BIT, EXT16BIT, ... | ||
/// </summary> | ||
public int deviceType; | ||
|
||
/// <summary> | ||
/// Default Device Start Address. | ||
/// </summary> | ||
public uint deviceStartAddress; | ||
|
||
/// <summary> | ||
/// Total Size of Device. | ||
/// </summary> | ||
public uint deviceSize; | ||
|
||
/// <summary> | ||
/// Programming Page Size. | ||
/// </summary> | ||
public uint pageSize; | ||
|
||
/// <summary> | ||
/// Content of Erased Memory. | ||
/// <summary> | ||
// unsigned char EraseValue; | ||
|
||
/// <summary> | ||
/// Type number. | ||
/// </summary> | ||
public uint sectorsTypeNbr; | ||
|
||
/// <summary> | ||
/// Device sectors. | ||
/// </summary> | ||
public List<DeviceSector> sectors; | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/01/KSociety.SharpCubeProgrammer/Struct/DeviceExternalStorageInfo.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,13 @@ | ||
// Copyright © K-Society and contributors. All rights reserved. Licensed under the K-Society License. See LICENSE.TXT file in the project root for full license information. | ||
|
||
namespace KSociety.SharpCubeProgrammer.Struct | ||
{ | ||
using System.Collections.Generic; | ||
|
||
public struct DeviceExternalStorageInfo | ||
{ | ||
public uint ExternalLoaderNbr; | ||
|
||
public List<DeviceExternalLoader> ExternalLoader; | ||
} | ||
} |
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.