add some doc and jtag controller
This commit is contained in:
@@ -3,26 +3,50 @@ using Newtonsoft.Json;
|
||||
|
||||
namespace WebProtocol
|
||||
{
|
||||
|
||||
/// <summary> The Sign of Package </summary>
|
||||
public enum PackSign
|
||||
{
|
||||
/// <summary> Package: Send Read or Write Address to Device </summary>
|
||||
SendAddr = 0x00,
|
||||
/// <summary> Package: Send Data Which Update the flash of Device</summary>
|
||||
SendData = 0xFF,
|
||||
/// <summary> </summary>
|
||||
RecvData = 0x0F,
|
||||
/// <summary> </summary>
|
||||
RecvResp = 0xF0,
|
||||
}
|
||||
|
||||
/// <summary> Package Burst Type </summary>
|
||||
public enum BurstType
|
||||
{
|
||||
/// <summary> Extended Type </summary>
|
||||
ExtendBurst = 0b00,
|
||||
/// <summary> Fixed Type </summary>
|
||||
FixedBurst = 0b01,
|
||||
}
|
||||
|
||||
|
||||
/// <summary> Package options which to send address to read or write </summary>
|
||||
/// <example>
|
||||
/// {
|
||||
/// "burType":0,
|
||||
/// "commandID":1,
|
||||
/// }
|
||||
/// </example>
|
||||
public struct SendAddrPackOptions
|
||||
{
|
||||
|
||||
/// <summary> Package Burst Type </summary>
|
||||
[JsonProperty("burstType")]
|
||||
public BurstType burstType;
|
||||
/// <example>1</example>
|
||||
public byte commandID;
|
||||
/// <example> true </example>
|
||||
public bool isWrite;
|
||||
/// <example> 255 </example>
|
||||
public byte burstLength;
|
||||
/// <example> 0x10_00_00_00 </example>
|
||||
public UInt32 address;
|
||||
|
||||
public override string ToString()
|
||||
|
||||
Reference in New Issue
Block a user