- removed use of partial keyword from classes originally generated by XSD
- Continued refactoring and making XSD generated classes more .NETcoding style friendly - reduced use of non-conformant Semantic version parsing to those cases where real world pack indeces fail to parse. - multiple doc comment cleanups
This commit is contained in:
Родитель
e79e739a46
Коммит
bc0c7f9bda
|
@ -69,12 +69,12 @@
|
|||
<Compile Include="PackDescription\CompileType.cs" />
|
||||
<Compile Include="PackDescription\ComponenOrBundleGroup.cs" />
|
||||
<Compile Include="PackDescription\Component.cs" />
|
||||
<Compile Include="PackDescription\ComponentCategoryType.cs" />
|
||||
<Compile Include="PackDescription\ConditionType.cs" />
|
||||
<Compile Include="PackDescription\DataPatchType.cs" />
|
||||
<Compile Include="PackDescription\DebugConfigType.cs" />
|
||||
<Compile Include="PackDescription\DebugInterfaceType.cs" />
|
||||
<Compile Include="PackDescription\DebugPortType.cs" />
|
||||
<Compile Include="PackDescription\ComponentCategory.cs" />
|
||||
<Compile Include="PackDescription\Condition.cs" />
|
||||
<Compile Include="PackDescription\DebugDataPatch.cs" />
|
||||
<Compile Include="PackDescription\DebugConfig.cs" />
|
||||
<Compile Include="PackDescription\DebugInterface.cs" />
|
||||
<Compile Include="PackDescription\DebugPort.cs" />
|
||||
<Compile Include="PackDescription\DebugType.cs" />
|
||||
<Compile Include="PackDescription\DebugVarsType.cs" />
|
||||
<Compile Include="PackDescription\DescriptionType.cs" />
|
||||
|
|
|
@ -7,7 +7,7 @@ using Sprache;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class Algorithm
|
||||
public class Algorithm
|
||||
{
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "Pname", Form = System.Xml.Schema.XmlSchemaForm.Qualified )]
|
||||
|
|
|
@ -7,7 +7,7 @@ using SemVer.NET;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class ApiType
|
||||
public class ApiType
|
||||
{
|
||||
public ApiType()
|
||||
{
|
||||
|
@ -43,7 +43,7 @@ namespace CMSIS.Pack.PackDescription
|
|||
get { return ApiVersion.ToString(); }
|
||||
set
|
||||
{
|
||||
ApiVersion = SemanticVersion.Parse( value, ParseOptions.PatchOptional );
|
||||
ApiVersion = SemanticVersion.Parse( value );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Xml.Serialization;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class Board
|
||||
public class Board
|
||||
{
|
||||
/// <remarks/>
|
||||
[XmlElement( "description")]
|
||||
|
@ -29,7 +29,7 @@ namespace CMSIS.Pack.PackDescription
|
|||
|
||||
/// <remarks/>
|
||||
[XmlElement( "debugInterface")]
|
||||
public DebugInterfaceType[] DebugInterface { get; set; }
|
||||
public DebugInterface[] DebugInterface { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "book")]
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Xml.Serialization;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class BoardBook
|
||||
public class BoardBook
|
||||
{
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "category", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
|
|
|
@ -6,7 +6,7 @@ using Sprache;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class BoardFeature
|
||||
public class BoardFeature
|
||||
{
|
||||
/// <remarks/>
|
||||
[XmlAttribute("type", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
|
|
|
@ -6,7 +6,7 @@ namespace CMSIS.Pack.PackDescription
|
|||
{
|
||||
[Serializable( )]
|
||||
[XmlType( AnonymousType=true)]
|
||||
public partial class BoardImage
|
||||
public class BoardImage
|
||||
{
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "small", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
|
|
|
@ -6,7 +6,7 @@ namespace CMSIS.Pack.PackDescription
|
|||
{
|
||||
/// <remarks/>
|
||||
[Serializable( )]
|
||||
public partial class BoardReference
|
||||
public class BoardReference
|
||||
{
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "name", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Xml.Serialization;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class BoardsDevice
|
||||
public class BoardsDevice
|
||||
{
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "deviceIndex", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
|
|
|
@ -6,7 +6,7 @@ using Sprache;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class BookType
|
||||
public class BookType
|
||||
{
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "Pname", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
|
|
|
@ -6,7 +6,7 @@ namespace CMSIS.Pack.PackDescription
|
|||
{
|
||||
[Serializable( )]
|
||||
[XmlType( AnonymousType = true )]
|
||||
public partial class Bundle
|
||||
public class Bundle
|
||||
: ComponenOrBundleGroup
|
||||
{
|
||||
/// <remarks/>
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Xml.Serialization;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class CompatibleDeviceType
|
||||
public class CompatibleDeviceType
|
||||
{
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "deviceIndex", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
|
|
|
@ -6,7 +6,7 @@ using Sprache;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class CompileType
|
||||
public class CompileType
|
||||
{
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "Pname", Form = System.Xml.Schema.XmlSchemaForm.Qualified )]
|
||||
|
|
|
@ -22,6 +22,7 @@ namespace CMSIS.Pack.PackDescription
|
|||
get { return Version.ToString( ); }
|
||||
set
|
||||
{
|
||||
// NOTE: Gracefully handle some real-world PDSC files with simple versions
|
||||
Version = SemanticVersion.Parse( value, ParseOptions.PatchOptional );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,6 +43,7 @@ namespace CMSIS.Pack.PackDescription
|
|||
get { return Version.ToString( ); }
|
||||
set
|
||||
{
|
||||
// NOTE: Gracefully handle some real-world PDSC files with simple versions
|
||||
Version = SemanticVersion.Parse( value, ParseOptions.PatchOptional );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,60 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
using SemVer.NET;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
/// <summary>Describes the /package/examples/example/attributes/component element</summary>
|
||||
[Serializable( )]
|
||||
public class ComponentCategory
|
||||
{
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "Cvendor", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Vendor { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "Cbundle", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Cbundle { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "Cclass", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Class { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "Cgroup", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Group { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "Csub", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string SubGroup { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "Cvariant", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Variant { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "Cversion", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public string RawCversionString
|
||||
{
|
||||
get { return Version.ToString(); }
|
||||
set { Version = SemanticVersion.Parse( value ); }
|
||||
}
|
||||
|
||||
[XmlIgnore]
|
||||
public SemanticVersion Version { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "CapiVersion", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
[System.ComponentModel.EditorBrowsable( System.ComponentModel.EditorBrowsableState.Never )]
|
||||
public string RawCapiversionString
|
||||
{
|
||||
get { return ApiVersion.ToString(); }
|
||||
set { ApiVersion = SemanticVersion.Parse( value ); }
|
||||
}
|
||||
|
||||
[XmlIgnore]
|
||||
public SemanticVersion ApiVersion { get; set; }
|
||||
}
|
||||
}
|
|
@ -1,116 +0,0 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
/// <remarks/>
|
||||
[Serializable( )]
|
||||
public partial class ComponentCategoryType
|
||||
{
|
||||
|
||||
private string cvendorField;
|
||||
|
||||
private string cbundleField;
|
||||
|
||||
private string cclassField;
|
||||
|
||||
private string cgroupField;
|
||||
|
||||
private string csubField;
|
||||
|
||||
private string cvariantField;
|
||||
|
||||
private string cversionField;
|
||||
|
||||
private string capiversionField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Cvendor {
|
||||
get {
|
||||
return cvendorField;
|
||||
}
|
||||
set {
|
||||
cvendorField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Cbundle {
|
||||
get {
|
||||
return cbundleField;
|
||||
}
|
||||
set {
|
||||
cbundleField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Cclass {
|
||||
get {
|
||||
return cclassField;
|
||||
}
|
||||
set {
|
||||
cclassField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Cgroup {
|
||||
get {
|
||||
return cgroupField;
|
||||
}
|
||||
set {
|
||||
cgroupField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Csub {
|
||||
get {
|
||||
return csubField;
|
||||
}
|
||||
set {
|
||||
csubField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Cvariant {
|
||||
get {
|
||||
return cvariantField;
|
||||
}
|
||||
set {
|
||||
cvariantField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Cversion {
|
||||
get {
|
||||
return cversionField;
|
||||
}
|
||||
set {
|
||||
cversionField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Capiversion {
|
||||
get {
|
||||
return capiversionField;
|
||||
}
|
||||
set {
|
||||
capiversionField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,31 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public class Condition
|
||||
{
|
||||
/// <remarks/>
|
||||
[XmlElement( "description")]
|
||||
public string Description { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
//REVIEW: Should these be grouped under a common base, using the ItemsElementName to determine the "type" is awkward
|
||||
[XmlElement( "accept", typeof(FilterType))]
|
||||
[XmlElement( "deny", typeof(FilterType))]
|
||||
[XmlElement( "require", typeof(FilterType))]
|
||||
[XmlChoiceIdentifier( "ItemsElementName")]
|
||||
public FilterType[] Items { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "ItemsElementName")]
|
||||
[XmlIgnore( )]
|
||||
public ItemsChoiceType[] ItemsElementName { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "id", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Id { get; set; }
|
||||
}
|
||||
}
|
|
@ -1,65 +0,0 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class ConditionType {
|
||||
|
||||
private string descriptionField;
|
||||
|
||||
private FilterType[] itemsField;
|
||||
|
||||
private ItemsChoiceType[] itemsElementNameField;
|
||||
|
||||
private string idField;
|
||||
|
||||
/// <remarks/>
|
||||
public string description {
|
||||
get {
|
||||
return descriptionField;
|
||||
}
|
||||
set {
|
||||
descriptionField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "accept", typeof(FilterType))]
|
||||
[XmlElement( "deny", typeof(FilterType))]
|
||||
[XmlElement( "require", typeof(FilterType))]
|
||||
[XmlChoiceIdentifier( "ItemsElementName")]
|
||||
public FilterType[] Items {
|
||||
get {
|
||||
return itemsField;
|
||||
}
|
||||
set {
|
||||
itemsField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "ItemsElementName")]
|
||||
[XmlIgnore( )]
|
||||
public ItemsChoiceType[] ItemsElementName {
|
||||
get {
|
||||
return itemsElementNameField;
|
||||
}
|
||||
set {
|
||||
itemsElementNameField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string id {
|
||||
get {
|
||||
return idField;
|
||||
}
|
||||
set {
|
||||
idField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,153 +0,0 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class DataPatchType {
|
||||
|
||||
private DataPatchAccessTypeEnum typeField;
|
||||
|
||||
private bool typeFieldSpecified;
|
||||
|
||||
private string addressField;
|
||||
|
||||
private uint @__dpField;
|
||||
|
||||
private bool @__dpFieldSpecified;
|
||||
|
||||
private uint @__apField;
|
||||
|
||||
private bool @__apFieldSpecified;
|
||||
|
||||
private string valueField;
|
||||
|
||||
private string maskField;
|
||||
|
||||
private string infoField;
|
||||
|
||||
private XmlAttribute[] anyAttrField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public DataPatchAccessTypeEnum type {
|
||||
get {
|
||||
return typeField;
|
||||
}
|
||||
set {
|
||||
typeField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool typeSpecified {
|
||||
get {
|
||||
return typeFieldSpecified;
|
||||
}
|
||||
set {
|
||||
typeFieldSpecified = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string address {
|
||||
get {
|
||||
return addressField;
|
||||
}
|
||||
set {
|
||||
addressField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public uint @__dp {
|
||||
get {
|
||||
return @__dpField;
|
||||
}
|
||||
set {
|
||||
@__dpField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool @__dpSpecified {
|
||||
get {
|
||||
return @__dpFieldSpecified;
|
||||
}
|
||||
set {
|
||||
@__dpFieldSpecified = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public uint @__ap {
|
||||
get {
|
||||
return @__apField;
|
||||
}
|
||||
set {
|
||||
@__apField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool @__apSpecified {
|
||||
get {
|
||||
return @__apFieldSpecified;
|
||||
}
|
||||
set {
|
||||
@__apFieldSpecified = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string value {
|
||||
get {
|
||||
return valueField;
|
||||
}
|
||||
set {
|
||||
valueField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string mask {
|
||||
get {
|
||||
return maskField;
|
||||
}
|
||||
set {
|
||||
maskField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string info {
|
||||
get {
|
||||
return infoField;
|
||||
}
|
||||
set {
|
||||
infoField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAnyAttribute( )]
|
||||
public XmlAttribute[ ] AnyAttr {
|
||||
get {
|
||||
return anyAttrField;
|
||||
}
|
||||
set {
|
||||
anyAttrField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public class DebugConfig
|
||||
{
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "default", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
[DefaultValue( DebugProtocolEnum.swd )]
|
||||
public DebugProtocolEnum DefaultProtocol { get; set; } = DebugProtocolEnum.swd;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool DefaultProtocolSpecified { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "clock", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
[DefaultValue( 10000000 )]
|
||||
public uint Clock { get; set; } = 10000000;
|
||||
|
||||
/// <remarks/>
|
||||
[ XmlIgnore( )]
|
||||
public bool ClockSpecified { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "swj", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
[DefaultValue(true)]
|
||||
public bool SWJ { get; set; } = true;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool SWJSpecified { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAnyAttribute( )]
|
||||
public XmlAttribute[ ] AnyAttr { get; set; }
|
||||
}
|
||||
}
|
|
@ -1,101 +0,0 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class DebugConfigType {
|
||||
|
||||
private DebugProtocolEnum defaultField;
|
||||
|
||||
private bool defaultFieldSpecified;
|
||||
|
||||
private uint clockField;
|
||||
|
||||
private bool clockFieldSpecified;
|
||||
|
||||
private bool swjField;
|
||||
|
||||
private bool swjFieldSpecified;
|
||||
|
||||
private XmlAttribute[] anyAttrField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public DebugProtocolEnum @default {
|
||||
get {
|
||||
return defaultField;
|
||||
}
|
||||
set {
|
||||
defaultField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool defaultSpecified {
|
||||
get {
|
||||
return defaultFieldSpecified;
|
||||
}
|
||||
set {
|
||||
defaultFieldSpecified = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public uint clock {
|
||||
get {
|
||||
return clockField;
|
||||
}
|
||||
set {
|
||||
clockField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool clockSpecified {
|
||||
get {
|
||||
return clockFieldSpecified;
|
||||
}
|
||||
set {
|
||||
clockFieldSpecified = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public bool swj {
|
||||
get {
|
||||
return swjField;
|
||||
}
|
||||
set {
|
||||
swjField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool swjSpecified {
|
||||
get {
|
||||
return swjFieldSpecified;
|
||||
}
|
||||
set {
|
||||
swjFieldSpecified = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAnyAttribute( )]
|
||||
public XmlAttribute[ ] AnyAttr {
|
||||
get {
|
||||
return anyAttrField;
|
||||
}
|
||||
set {
|
||||
anyAttrField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,54 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public class DebugDataPatch
|
||||
{
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "type", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public DataPatchAccessTypeEnum PatchType { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool PatchTypeSpecified { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "address", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Address { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "__dp", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public uint DebugPortId { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool DebugPortIdSpecified { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "__ap", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public uint AccessPortIndex { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool AccessPortIndexSpecified { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "value", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Value { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "mask", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Mask { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "info", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Info { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAnyAttribute( )]
|
||||
public XmlAttribute[ ] AnyAttr {get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public class DebugInterface
|
||||
{
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "adapter", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Adapter { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "connector", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Connector { get; set; }
|
||||
}
|
||||
}
|
|
@ -1,36 +0,0 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class DebugInterfaceType {
|
||||
|
||||
private string adapterField;
|
||||
|
||||
private string connectorField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string adapter {
|
||||
get {
|
||||
return adapterField;
|
||||
}
|
||||
set {
|
||||
adapterField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string connector {
|
||||
get {
|
||||
return connectorField;
|
||||
}
|
||||
set {
|
||||
connectorField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public class DebugPort
|
||||
{
|
||||
/// <remarks/>
|
||||
[XmlElement("jtag")]
|
||||
public JtagType JTAG { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement("swd")]
|
||||
public SwdType SWD { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "__dp", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public uint DebugPortId { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
// SPECBUG: XSD.EXE generated this implying the schema marked the id as optional, yet the official docs indicate it is required...
|
||||
[XmlIgnore( )]
|
||||
public bool DebugPortIdSpecified { get; set; }
|
||||
|
||||
// SPECBUG: CMSIS-Pack 4.5.0 documentation includes a Cjtag child element but the official PACK.XSD does not have any such element or type
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAnyAttribute( )]
|
||||
public XmlAttribute[ ] AnyAttr { get; set; }
|
||||
}
|
||||
}
|
|
@ -1,73 +0,0 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class DebugPortType {
|
||||
|
||||
private JtagType jtagField;
|
||||
|
||||
private SwdType swdField;
|
||||
|
||||
private uint @__dpField;
|
||||
|
||||
private bool @__dpFieldSpecified;
|
||||
|
||||
private XmlAttribute[] anyAttrField;
|
||||
|
||||
/// <remarks/>
|
||||
public JtagType jtag {
|
||||
get {
|
||||
return jtagField;
|
||||
}
|
||||
set {
|
||||
jtagField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SwdType swd {
|
||||
get {
|
||||
return swdField;
|
||||
}
|
||||
set {
|
||||
swdField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public uint @__dp {
|
||||
get {
|
||||
return @__dpField;
|
||||
}
|
||||
set {
|
||||
@__dpField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool @__dpSpecified {
|
||||
get {
|
||||
return @__dpFieldSpecified;
|
||||
}
|
||||
set {
|
||||
@__dpFieldSpecified = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAnyAttribute( )]
|
||||
public XmlAttribute[ ] AnyAttr {
|
||||
get {
|
||||
return anyAttrField;
|
||||
}
|
||||
set {
|
||||
anyAttrField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -6,9 +6,9 @@ using Sprache;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class DebugType {
|
||||
public class DebugType {
|
||||
|
||||
private DataPatchType[] datapatchField;
|
||||
private DebugDataPatch[] datapatchField;
|
||||
|
||||
private uint @__dpField;
|
||||
|
||||
|
@ -24,7 +24,7 @@ namespace CMSIS.Pack.PackDescription
|
|||
|
||||
/// <remarks/>
|
||||
[XmlElement( "datapatch")]
|
||||
public DataPatchType[] datapatch {
|
||||
public DebugDataPatch[] datapatch {
|
||||
get {
|
||||
return datapatchField;
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ using Sprache;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class DebugVarsType {
|
||||
public class DebugVarsType {
|
||||
|
||||
private string configfileField;
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ using Sprache;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class DescriptionType
|
||||
public class DescriptionType
|
||||
{
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "Pname", Form = System.Xml.Schema.XmlSchemaForm.Qualified )]
|
||||
|
|
|
@ -7,7 +7,7 @@ using Sprache;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class DeviceFeatureType {
|
||||
public class DeviceFeatureType {
|
||||
|
||||
private string typeField;
|
||||
|
||||
|
|
|
@ -5,11 +5,11 @@ using System.Xml.Serialization;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class DeviceType {
|
||||
public class DeviceType {
|
||||
|
||||
private ProcessorType[] processorField;
|
||||
|
||||
private DebugConfigType debugconfigField;
|
||||
private DebugConfig debugconfigField;
|
||||
|
||||
private CompileType[] compileField;
|
||||
|
||||
|
@ -25,7 +25,7 @@ namespace CMSIS.Pack.PackDescription
|
|||
|
||||
private EnvironmentType[] environmentField;
|
||||
|
||||
private DebugPortType[] debugportField;
|
||||
private DebugPort[] debugportField;
|
||||
|
||||
private DebugType[] debugField;
|
||||
|
||||
|
@ -51,7 +51,7 @@ namespace CMSIS.Pack.PackDescription
|
|||
}
|
||||
|
||||
/// <remarks/>
|
||||
public DebugConfigType debugconfig {
|
||||
public DebugConfig debugconfig {
|
||||
get {
|
||||
return debugconfigField;
|
||||
}
|
||||
|
@ -139,7 +139,7 @@ namespace CMSIS.Pack.PackDescription
|
|||
|
||||
/// <remarks/>
|
||||
[XmlElement( "debugport")]
|
||||
public DebugPortType[] debugport {
|
||||
public DebugPort[] debugport {
|
||||
get {
|
||||
return debugportField;
|
||||
}
|
||||
|
|
|
@ -6,11 +6,11 @@ namespace CMSIS.Pack.PackDescription
|
|||
{
|
||||
[Serializable( )]
|
||||
[XmlType( AnonymousType=true)]
|
||||
public partial class DeviceTypeVariant {
|
||||
public class DeviceTypeVariant {
|
||||
|
||||
private ProcessorType[] processorField;
|
||||
|
||||
private DebugConfigType debugconfigField;
|
||||
private DebugConfig debugconfigField;
|
||||
|
||||
private CompileType[] compileField;
|
||||
|
||||
|
@ -26,7 +26,7 @@ namespace CMSIS.Pack.PackDescription
|
|||
|
||||
private EnvironmentType[] environmentField;
|
||||
|
||||
private DebugPortType[] debugportField;
|
||||
private DebugPort[] debugportField;
|
||||
|
||||
private DebugType[] debugField;
|
||||
|
||||
|
@ -50,7 +50,7 @@ namespace CMSIS.Pack.PackDescription
|
|||
}
|
||||
|
||||
/// <remarks/>
|
||||
public DebugConfigType debugconfig {
|
||||
public DebugConfig debugconfig {
|
||||
get {
|
||||
return debugconfigField;
|
||||
}
|
||||
|
@ -138,7 +138,7 @@ namespace CMSIS.Pack.PackDescription
|
|||
|
||||
/// <remarks/>
|
||||
[XmlElement( "debugport")]
|
||||
public DebugPortType[] debugport {
|
||||
public DebugPort[] debugport {
|
||||
get {
|
||||
return debugportField;
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ using Sprache;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class EnvironmentType {
|
||||
public class EnvironmentType {
|
||||
|
||||
private System.Xml.XmlElement[] anyField;
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ namespace CMSIS.Pack.PackDescription
|
|||
{
|
||||
/// <remarks/>
|
||||
[Serializable( )]
|
||||
public partial class ExampleAttributesType
|
||||
public class ExampleAttributesType
|
||||
{
|
||||
|
||||
private object[] itemsField;
|
||||
|
@ -15,7 +15,7 @@ namespace CMSIS.Pack.PackDescription
|
|||
|
||||
/// <remarks/>
|
||||
[XmlElement( "category", typeof(string))]
|
||||
[XmlElement( "component", typeof(ComponentCategoryType))]
|
||||
[XmlElement( "component", typeof(ComponentCategory))]
|
||||
[XmlElement( "keyword", typeof(string))]
|
||||
[XmlChoiceIdentifier( "ItemsElementName")]
|
||||
public object[] Items {
|
||||
|
|
|
@ -7,7 +7,7 @@ namespace CMSIS.Pack.PackDescription
|
|||
/// <remarks/>
|
||||
[Serializable( )]
|
||||
[XmlType( AnonymousType=true)]
|
||||
public partial class ExampleProjectTypeEnvironment {
|
||||
public class ExampleProjectTypeEnvironment {
|
||||
|
||||
private string nameField;
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ namespace CMSIS.Pack.PackDescription
|
|||
[Serializable( )]
|
||||
[DebuggerStepThrough( )]
|
||||
[DesignerCategory( "code")]
|
||||
public partial class ExampleType {
|
||||
public class ExampleType {
|
||||
|
||||
private string descriptionField;
|
||||
|
||||
|
|
|
@ -6,11 +6,11 @@ namespace CMSIS.Pack.PackDescription
|
|||
{
|
||||
[Serializable( )]
|
||||
[XmlType( AnonymousType=true)]
|
||||
public partial class Family {
|
||||
public class Family {
|
||||
|
||||
private ProcessorType[] processorField;
|
||||
|
||||
private DebugConfigType debugconfigField;
|
||||
private DebugConfig debugconfigField;
|
||||
|
||||
private CompileType[] compileField;
|
||||
|
||||
|
@ -26,7 +26,7 @@ namespace CMSIS.Pack.PackDescription
|
|||
|
||||
private EnvironmentType[] environmentField;
|
||||
|
||||
private DebugPortType[] debugportField;
|
||||
private DebugPort[] debugportField;
|
||||
|
||||
private DebugType[] debugField;
|
||||
|
||||
|
@ -56,7 +56,7 @@ namespace CMSIS.Pack.PackDescription
|
|||
}
|
||||
|
||||
/// <remarks/>
|
||||
public DebugConfigType debugconfig {
|
||||
public DebugConfig debugconfig {
|
||||
get {
|
||||
return debugconfigField;
|
||||
}
|
||||
|
@ -144,7 +144,7 @@ namespace CMSIS.Pack.PackDescription
|
|||
|
||||
/// <remarks/>
|
||||
[XmlElement( "debugport")]
|
||||
public DebugPortType[] debugport {
|
||||
public DebugPort[] debugport {
|
||||
get {
|
||||
return debugportField;
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ namespace CMSIS.Pack.PackDescription
|
|||
{
|
||||
/// <remarks/>
|
||||
[Serializable( )]
|
||||
public partial class FileType {
|
||||
public class FileType {
|
||||
|
||||
private string conditionField;
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ using Sprache;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class FilterType {
|
||||
public class FilterType {
|
||||
|
||||
private string dfamilyField;
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Xml.Serialization;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class GeneratorCommandArgumentType {
|
||||
public class GeneratorCommandArgumentType {
|
||||
|
||||
private string switchField;
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ using Sprache;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class GeneratorDeviceSelectType {
|
||||
public class GeneratorDeviceSelectType {
|
||||
|
||||
private DeviceVendorEnum dvendorField;
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Xml.Serialization;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class GeneratorFileType {
|
||||
public class GeneratorFileType {
|
||||
|
||||
private string conditionField;
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Xml.Serialization;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class GeneratorType {
|
||||
public class GeneratorType {
|
||||
|
||||
private string descriptionField;
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace CMSIS.Pack.PackDescription
|
|||
{
|
||||
[Serializable( )]
|
||||
[XmlType( AnonymousType=true)]
|
||||
public partial class GeneratorTypeExtensions {
|
||||
public class GeneratorTypeExtensions {
|
||||
|
||||
private System.Xml.XmlElement[] anyField;
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Xml.Serialization;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class GpdscFileType {
|
||||
public class GpdscFileType {
|
||||
|
||||
private string nameField;
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Xml.Serialization;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class JtagType {
|
||||
public class JtagType {
|
||||
|
||||
private string tapindexField;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ using Sprache;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class MemoryType {
|
||||
public class MemoryType {
|
||||
|
||||
private MemoryIDTypeEnum idField;
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace CMSIS.Pack.PackDescription
|
|||
[Serializable( )]
|
||||
[XmlType( AnonymousType=true )]
|
||||
[XmlRoot( Namespace="", ElementName ="package", IsNullable=true)]
|
||||
public partial class Package
|
||||
public class Package
|
||||
{
|
||||
[XmlElement("name")]
|
||||
public string Name { get; set; }
|
||||
|
@ -72,7 +72,7 @@ namespace CMSIS.Pack.PackDescription
|
|||
/// <remarks/>
|
||||
[XmlArrayItem( "condition", IsNullable=false)]
|
||||
[XmlArray( "conditions" )]
|
||||
public ConditionType[] Conditions { get; set; }
|
||||
public Condition[] Conditions { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlArrayItem( "example", IsNullable=false)]
|
||||
|
|
|
@ -6,7 +6,7 @@ using Sprache;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class ProcessorType {
|
||||
public class ProcessorType {
|
||||
|
||||
private DcoreEnum dcoreField;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ namespace CMSIS.Pack.PackDescription
|
|||
{
|
||||
/// <remarks/>
|
||||
[Serializable( )]
|
||||
public partial class Release
|
||||
public class Release
|
||||
{
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "version", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
|
@ -17,7 +17,7 @@ namespace CMSIS.Pack.PackDescription
|
|||
get { return Version.ToString( ); }
|
||||
set
|
||||
{
|
||||
Version = SemanticVersion.Parse( value, ParseOptions.PatchOptional );
|
||||
Version = SemanticVersion.Parse( value );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Xml.Serialization;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class SequenceBlockType {
|
||||
public class SequenceBlockType {
|
||||
|
||||
private bool atomicField;
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Xml.Serialization;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class SequenceControlType {
|
||||
public class SequenceControlType {
|
||||
|
||||
private SequenceBlockType[] blockField;
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ using Sprache;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class SequenceType {
|
||||
public class SequenceType {
|
||||
|
||||
private SequenceBlockType[] blockField;
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Xml.Serialization;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class SequencesType {
|
||||
public class SequencesType {
|
||||
|
||||
private SequenceType[] sequenceField;
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Xml.Serialization;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class SerialWireType {
|
||||
public class SerialWireType {
|
||||
|
||||
private XmlAttribute[] anyAttrField;
|
||||
|
||||
|
|
|
@ -6,11 +6,11 @@ namespace CMSIS.Pack.PackDescription
|
|||
{
|
||||
[Serializable( )]
|
||||
[XmlType( AnonymousType=true)]
|
||||
public partial class SubFamily {
|
||||
public class SubFamily {
|
||||
|
||||
private ProcessorType[] processorField;
|
||||
|
||||
private DebugConfigType debugconfigField;
|
||||
private DebugConfig debugconfigField;
|
||||
|
||||
private CompileType[] compileField;
|
||||
|
||||
|
@ -26,7 +26,7 @@ namespace CMSIS.Pack.PackDescription
|
|||
|
||||
private EnvironmentType[] environmentField;
|
||||
|
||||
private DebugPortType[] debugportField;
|
||||
private DebugPort[] debugportField;
|
||||
|
||||
private DebugType[] debugField;
|
||||
|
||||
|
@ -52,7 +52,7 @@ namespace CMSIS.Pack.PackDescription
|
|||
}
|
||||
|
||||
/// <remarks/>
|
||||
public DebugConfigType debugconfig {
|
||||
public DebugConfig debugconfig {
|
||||
get {
|
||||
return debugconfigField;
|
||||
}
|
||||
|
@ -140,7 +140,7 @@ namespace CMSIS.Pack.PackDescription
|
|||
|
||||
/// <remarks/>
|
||||
[XmlElement( "debugport")]
|
||||
public DebugPortType[] debugport {
|
||||
public DebugPort[] debugport {
|
||||
get {
|
||||
return debugportField;
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Xml.Serialization;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class SwdType {
|
||||
public class SwdType {
|
||||
|
||||
private string idcodeField;
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Xml.Serialization;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class TaxonomyDescriptionType {
|
||||
public class TaxonomyDescriptionType {
|
||||
|
||||
private string cclassField;
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Xml.Serialization;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class TraceBufferType {
|
||||
public class TraceBufferType {
|
||||
|
||||
private string startField;
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Xml.Serialization;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class TracePortType {
|
||||
public class TracePortType {
|
||||
|
||||
private string widthField;
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ using Sprache;
|
|||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class TraceType {
|
||||
public class TraceType {
|
||||
|
||||
private SerialWireType[] serialwireField;
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ namespace CMSIS.Pack
|
|||
Vendor = parts[ 0 ];
|
||||
Name = parts[ 1 ];
|
||||
SemanticVersion version;
|
||||
if( !SemanticVersion.TryParse( packVersion, ParseOptions.PatchOptional, out version ) )
|
||||
if( !SemanticVersion.TryParse( packVersion, out version ) )
|
||||
throw new ArgumentException( "Invalid semantic version provided", nameof( packVersion ) );
|
||||
Version = version;
|
||||
LocalPath = Path.Combine( Vendor, Name, Version.ToString( ) );
|
||||
|
|
|
@ -11,9 +11,8 @@ namespace SemVer.NET
|
|||
/// such as found in CSemVer and also can handle simple Major.minor versions
|
||||
/// (e.g. without any patch number). Ultimately, it is up to the class consuming
|
||||
/// the result to determine the behavior it allows</para>
|
||||
/// <para>The numeric parts are left as strings
|
||||
/// since, technically they can be any length. Though practically speaking a
|
||||
/// 32bit integer is generally considered enough.</para>
|
||||
/// <para>The numeric parts are left as strings since, technically they can be any
|
||||
/// length. Though practically speaking a 32bit integer is generally considered enough.</para>
|
||||
/// </remarks>
|
||||
public class ParseResult
|
||||
{
|
||||
|
@ -57,7 +56,7 @@ namespace SemVer.NET
|
|||
|
||||
/// <summary>Gets a potentially <see langword="null"/> leading 'v' or 'V' character</summary>
|
||||
/// <remarks>
|
||||
/// Technically a Semantic version number does not include a leading character,
|
||||
/// Technically, a Semantic version number does not include a leading character,
|
||||
/// however, many common uses of version numbers use one by convention. This,
|
||||
/// can be tested for <see langword="null"/> and trigger an exception if the
|
||||
/// leading character is provided but strict conformance to the specification
|
||||
|
@ -73,7 +72,7 @@ namespace SemVer.NET
|
|||
|
||||
/// <summary>Gets a string containing the digits of the Patch version number or an empty string if none was provided</summary>
|
||||
/// <remarks>
|
||||
/// Technically a correct Semantic Version requires the Patch value. However, to gracefully handle
|
||||
/// Technically, a correct Semantic Version requires the Patch value. However, to gracefully handle
|
||||
/// some real world erroneously versioned packages the grammar used in this library treats it as
|
||||
/// optional. The consumer, such as <see cref="SemanticVersion"/> can detect if the patch is not
|
||||
/// provided by calling <see cref="string.IsNullOrWhiteSpace(string)"/> and throwing an exception
|
||||
|
|
|
@ -25,7 +25,7 @@ namespace SemVer.NET
|
|||
|
||||
/// <summary>Version structure for versions based on Semantic Versioning v2.0 as defined by https://github.com/mojombo/semver/blob/master/semver.md </summary>
|
||||
/// <remarks>
|
||||
/// <para>This class implements creating, parsing and comparing semantic version values. In
|
||||
/// <para>This class implements creating, parsing, and comparing semantic version values. In
|
||||
/// addition to the standard support, this class includes an additional optional optimization
|
||||
/// where parsing a version string can assume a default patch value of 0 if none is specified.
|
||||
/// According to the formal Semantic Versioning v2.0 spec. the patch value is required, however
|
||||
|
|
Загрузка…
Ссылка в новой задаче