Allow full parsing of Pack descriptions with manually moidified classes originally generated from XSD.EXE. The manual edits include naming nad splitting to multiple files as well as handling of real world violations of the officially specified
This commit is contained in:
Родитель
bedd7ec782
Коммит
1db7e7b670
|
@ -29,6 +29,7 @@
|
|||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<GenerateSerializationAssemblies>On</GenerateSerializationAssemblies>
|
||||
<RunCodeAnalysis>true</RunCodeAnalysis>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
|
@ -54,22 +55,69 @@
|
|||
<ItemGroup>
|
||||
<Compile Include="FileDownloadProgress.cs" />
|
||||
<Compile Include="Interfaces.cs" />
|
||||
<Compile Include="PackDescription\Api.cs" />
|
||||
<Compile Include="PackDescription\Board.cs" />
|
||||
<Compile Include="PackDescription\AlgorithmType.cs" />
|
||||
<Compile Include="PackDescription\ApiType.cs" />
|
||||
<Compile Include="PackDescription\BoardBookCategoryEnum.cs" />
|
||||
<Compile Include="PackDescription\BoardFeatureType.cs" />
|
||||
<Compile Include="PackDescription\BoardReferenceType.cs" />
|
||||
<Compile Include="PackDescription\BoardsBookType.cs" />
|
||||
<Compile Include="PackDescription\BoardsDeviceType.cs" />
|
||||
<Compile Include="PackDescription\BoardType.cs" />
|
||||
<Compile Include="PackDescription\BoardTypeImage.cs" />
|
||||
<Compile Include="PackDescription\BookType.cs" />
|
||||
<Compile Include="PackDescription\Bundle.cs" />
|
||||
<Compile Include="PackDescription\CompatibleDeviceType.cs" />
|
||||
<Compile Include="PackDescription\CompilerEnumType.cs" />
|
||||
<Compile Include="PackDescription\CompilerOutputType.cs" />
|
||||
<Compile Include="PackDescription\CompileType.cs" />
|
||||
<Compile Include="PackDescription\ComponenOrBundleGroup.cs" />
|
||||
<Compile Include="PackDescription\Component.cs" />
|
||||
<Compile Include="PackDescription\Condition.cs" />
|
||||
<Compile Include="PackDescription\DebugAccessSequence.cs" />
|
||||
<Compile Include="PackDescription\DeviceFamily.cs" />
|
||||
<Compile Include="PackDescription\Example.cs" />
|
||||
<Compile Include="PackDescription\File.cs" />
|
||||
<Compile Include="PackDescription\Generator.cs" />
|
||||
<Compile Include="PackDescription\Keywords.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\DebugType.cs" />
|
||||
<Compile Include="PackDescription\DebugVarsType.cs" />
|
||||
<Compile Include="PackDescription\DescriptionType.cs" />
|
||||
<Compile Include="PackDescription\DeviceFeatureType.cs" />
|
||||
<Compile Include="PackDescription\DeviceType.cs" />
|
||||
<Compile Include="PackDescription\DeviceTypeVariant.cs" />
|
||||
<Compile Include="PackDescription\Enumerations.cs" />
|
||||
<Compile Include="PackDescription\EnvironmentType.cs" />
|
||||
<Compile Include="PackDescription\ExampleAttributesType.cs" />
|
||||
<Compile Include="PackDescription\ExampleProjectTypeEnvironment.cs" />
|
||||
<Compile Include="PackDescription\ExampleType.cs" />
|
||||
<Compile Include="PackDescription\Family.cs" />
|
||||
<Compile Include="PackDescription\FileAttributeType.cs" />
|
||||
<Compile Include="PackDescription\FileCategoryType.cs" />
|
||||
<Compile Include="PackDescription\FileType.cs" />
|
||||
<Compile Include="PackDescription\FilterType.cs" />
|
||||
<Compile Include="PackDescription\GeneratorCommandArgumentType.cs" />
|
||||
<Compile Include="PackDescription\GeneratorDeviceSelectType.cs" />
|
||||
<Compile Include="PackDescription\GeneratorFileType.cs" />
|
||||
<Compile Include="PackDescription\GeneratorType.cs" />
|
||||
<Compile Include="PackDescription\GeneratorTypeExtensions.cs" />
|
||||
<Compile Include="PackDescription\GpdscFileType.cs" />
|
||||
<Compile Include="PackDescription\ItemsChoiceType.cs" />
|
||||
<Compile Include="PackDescription\JtagType.cs" />
|
||||
<Compile Include="PackDescription\MemoryType.cs" />
|
||||
<Compile Include="PackDescription\Package.cs" />
|
||||
<Compile Include="PackDescription\Parsers.cs" />
|
||||
<Compile Include="PackDescription\PDSCNames.cs" />
|
||||
<Compile Include="PackDescription\ProcessorType.cs" />
|
||||
<Compile Include="PackDescription\Release.cs" />
|
||||
<Compile Include="PackDescription\TaxonomyDescription.cs" />
|
||||
<Compile Include="PackDescription\XElementExtensions.cs" />
|
||||
<Compile Include="PackDescription\SequenceBlockType.cs" />
|
||||
<Compile Include="PackDescription\SequenceControlType.cs" />
|
||||
<Compile Include="PackDescription\SequencesType.cs" />
|
||||
<Compile Include="PackDescription\SequenceType.cs" />
|
||||
<Compile Include="PackDescription\SerialWireType.cs" />
|
||||
<Compile Include="PackDescription\SubFamily.cs" />
|
||||
<Compile Include="PackDescription\SwdType.cs" />
|
||||
<Compile Include="PackDescription\TaxonomyDescriptionType.cs" />
|
||||
<Compile Include="PackDescription\TraceBufferType.cs" />
|
||||
<Compile Include="PackDescription\TracePortType.cs" />
|
||||
<Compile Include="PackDescription\TraceType.cs" />
|
||||
<Compile Include="PackIndexEntry.cs" />
|
||||
<Compile Include="PackIndex.cs" />
|
||||
<Compile Include="PackInstallProgress.cs" />
|
||||
|
@ -82,6 +130,10 @@
|
|||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Analyzer Include="..\packages\Microsoft.CodeAnalysis.Analyzers.1.1.0\analyzers\dotnet\cs\Microsoft.CodeAnalysis.Analyzers.dll" />
|
||||
<Analyzer Include="..\packages\Microsoft.CodeAnalysis.Analyzers.1.1.0\analyzers\dotnet\cs\Microsoft.CodeAnalysis.CSharp.Analyzers.dll" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
|
|
|
@ -0,0 +1,107 @@
|
|||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class AlgorithmType {
|
||||
|
||||
private string pnameField;
|
||||
|
||||
private string nameField;
|
||||
|
||||
private string startField;
|
||||
|
||||
private string sizeField;
|
||||
|
||||
private string rAMstartField;
|
||||
|
||||
private string rAMsizeField;
|
||||
|
||||
private bool defaultField;
|
||||
|
||||
public AlgorithmType() {
|
||||
defaultField = false;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Pname {
|
||||
get {
|
||||
return pnameField;
|
||||
}
|
||||
set {
|
||||
pnameField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string name {
|
||||
get {
|
||||
return nameField;
|
||||
}
|
||||
set {
|
||||
nameField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string start {
|
||||
get {
|
||||
return startField;
|
||||
}
|
||||
set {
|
||||
startField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string size {
|
||||
get {
|
||||
return sizeField;
|
||||
}
|
||||
set {
|
||||
sizeField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string RAMstart {
|
||||
get {
|
||||
return rAMstartField;
|
||||
}
|
||||
set {
|
||||
rAMstartField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string RAMsize {
|
||||
get {
|
||||
return rAMsizeField;
|
||||
}
|
||||
set {
|
||||
rAMsizeField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
[DefaultValue( false)]
|
||||
public bool @default {
|
||||
get {
|
||||
return defaultField;
|
||||
}
|
||||
set {
|
||||
defaultField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,38 +0,0 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
public class Api
|
||||
{
|
||||
public Api()
|
||||
{
|
||||
Files = new List<File>();
|
||||
}
|
||||
|
||||
public string ComponentClass { get; set; }
|
||||
public string ComponentGroup { get; set; }
|
||||
public bool IsExclusive { get; set; }
|
||||
public SemanticVersion Version { get; set; }
|
||||
public string Description { get; set; }
|
||||
public IList<File> Files { get; }
|
||||
|
||||
internal static Api ParseFrom( XElement arg )
|
||||
{
|
||||
var retVal = new Api()
|
||||
{ ComponentClass = arg.Attribute( AttributeNames.ComponentClass ).Value
|
||||
, ComponentGroup = arg.Attribute( AttributeNames.ComponentGroup ).Value
|
||||
, IsExclusive = 0 != int.Parse( arg.Attribute( AttributeNames.Exclusive )?.Value ?? "0" )
|
||||
, Description = arg.Element( ElementNames.Description )?.Value
|
||||
};
|
||||
|
||||
var versionStr = arg.Attribute( AttributeNames.ComponentApiVersion )?.Value;
|
||||
if( !string.IsNullOrWhiteSpace( versionStr ) )
|
||||
retVal.Version = SemanticVersion.Parse( versionStr );
|
||||
|
||||
var filesElement = arg.Element( ElementNames.Files );
|
||||
filesElement.ParseCollectionElements( ElementNames.File, retVal.Files, File.ParseFrom );
|
||||
return retVal;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,93 @@
|
|||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class ApiType {
|
||||
|
||||
private string descriptionField;
|
||||
|
||||
private FileType[] filesField;
|
||||
|
||||
private string cclassField;
|
||||
|
||||
private string cgroupField;
|
||||
|
||||
private bool exclusiveField;
|
||||
|
||||
private string capiversionField;
|
||||
|
||||
public ApiType() {
|
||||
exclusiveField = true;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public string description {
|
||||
get {
|
||||
return descriptionField;
|
||||
}
|
||||
set {
|
||||
descriptionField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlArrayItem( "file", IsNullable=false)]
|
||||
public FileType[] files {
|
||||
get {
|
||||
return filesField;
|
||||
}
|
||||
set {
|
||||
filesField = 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)]
|
||||
[DefaultValue( true)]
|
||||
public bool exclusive {
|
||||
get {
|
||||
return exclusiveField;
|
||||
}
|
||||
set {
|
||||
exclusiveField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Capiversion {
|
||||
get {
|
||||
return capiversionField;
|
||||
}
|
||||
set {
|
||||
capiversionField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
public class Board
|
||||
{
|
||||
internal static Board ParseFrom( XElement arg )
|
||||
{
|
||||
return new Board();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
using System;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public enum BoardBookCategoryEnum {
|
||||
|
||||
/// <remarks/>
|
||||
setup,
|
||||
|
||||
/// <remarks/>
|
||||
schematic,
|
||||
|
||||
/// <remarks/>
|
||||
overview,
|
||||
|
||||
/// <remarks/>
|
||||
manual,
|
||||
|
||||
/// <remarks/>
|
||||
other,
|
||||
}
|
||||
}
|
|
@ -0,0 +1,88 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class BoardFeatureType {
|
||||
|
||||
private string typeField;
|
||||
|
||||
private decimal nField;
|
||||
|
||||
private bool nFieldSpecified;
|
||||
|
||||
private decimal mField;
|
||||
|
||||
private bool mFieldSpecified;
|
||||
|
||||
private string nameField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string type {
|
||||
get {
|
||||
return typeField;
|
||||
}
|
||||
set {
|
||||
typeField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public decimal n {
|
||||
get {
|
||||
return nField;
|
||||
}
|
||||
set {
|
||||
nField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool nSpecified {
|
||||
get {
|
||||
return nFieldSpecified;
|
||||
}
|
||||
set {
|
||||
nFieldSpecified = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public decimal m {
|
||||
get {
|
||||
return mField;
|
||||
}
|
||||
set {
|
||||
mField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool mSpecified {
|
||||
get {
|
||||
return mFieldSpecified;
|
||||
}
|
||||
set {
|
||||
mFieldSpecified = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string name {
|
||||
get {
|
||||
return nameField;
|
||||
}
|
||||
set {
|
||||
nameField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,102 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
/// <remarks/>
|
||||
[Serializable( )]
|
||||
public partial class BoardReferenceType {
|
||||
|
||||
private string nameField;
|
||||
|
||||
private string vendorField;
|
||||
|
||||
private DeviceVendorEnum dvendorField;
|
||||
|
||||
private bool dvendorFieldSpecified;
|
||||
|
||||
private string dfamilyField;
|
||||
|
||||
private string dsubFamilyField;
|
||||
|
||||
private string dnameField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string name {
|
||||
get {
|
||||
return nameField;
|
||||
}
|
||||
set {
|
||||
nameField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string vendor {
|
||||
get {
|
||||
return vendorField;
|
||||
}
|
||||
set {
|
||||
vendorField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public DeviceVendorEnum Dvendor {
|
||||
get {
|
||||
return dvendorField;
|
||||
}
|
||||
set {
|
||||
dvendorField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool DvendorSpecified {
|
||||
get {
|
||||
return dvendorFieldSpecified;
|
||||
}
|
||||
set {
|
||||
dvendorFieldSpecified = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Dfamily {
|
||||
get {
|
||||
return dfamilyField;
|
||||
}
|
||||
set {
|
||||
dfamilyField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string DsubFamily {
|
||||
get {
|
||||
return dsubFamilyField;
|
||||
}
|
||||
set {
|
||||
dsubFamilyField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Dname {
|
||||
get {
|
||||
return dnameField;
|
||||
}
|
||||
set {
|
||||
dnameField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,166 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class BoardType {
|
||||
|
||||
private string[] descriptionField;
|
||||
|
||||
private BoardFeatureType[] featureField;
|
||||
|
||||
private BoardsDeviceType[] mountedDeviceField;
|
||||
|
||||
private CompatibleDeviceType[] compatibleDeviceField;
|
||||
|
||||
private BoardTypeImage[] imageField;
|
||||
|
||||
private DebugInterfaceType[] debugInterfaceField;
|
||||
|
||||
private BoardsBookType[] bookField;
|
||||
|
||||
private string vendorField;
|
||||
|
||||
private string nameField;
|
||||
|
||||
private string revisionField;
|
||||
|
||||
private string salesContactField;
|
||||
|
||||
private string orderFormField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "description")]
|
||||
public string[] description {
|
||||
get {
|
||||
return descriptionField;
|
||||
}
|
||||
set {
|
||||
descriptionField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "feature")]
|
||||
public BoardFeatureType[] feature {
|
||||
get {
|
||||
return featureField;
|
||||
}
|
||||
set {
|
||||
featureField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "mountedDevice")]
|
||||
public BoardsDeviceType[] mountedDevice {
|
||||
get {
|
||||
return mountedDeviceField;
|
||||
}
|
||||
set {
|
||||
mountedDeviceField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "compatibleDevice")]
|
||||
public CompatibleDeviceType[] compatibleDevice {
|
||||
get {
|
||||
return compatibleDeviceField;
|
||||
}
|
||||
set {
|
||||
compatibleDeviceField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "image")]
|
||||
public BoardTypeImage[] image {
|
||||
get {
|
||||
return imageField;
|
||||
}
|
||||
set {
|
||||
imageField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "debugInterface")]
|
||||
public DebugInterfaceType[] debugInterface {
|
||||
get {
|
||||
return debugInterfaceField;
|
||||
}
|
||||
set {
|
||||
debugInterfaceField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "book")]
|
||||
public BoardsBookType[] book {
|
||||
get {
|
||||
return bookField;
|
||||
}
|
||||
set {
|
||||
bookField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string vendor {
|
||||
get {
|
||||
return vendorField;
|
||||
}
|
||||
set {
|
||||
vendorField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string name {
|
||||
get {
|
||||
return nameField;
|
||||
}
|
||||
set {
|
||||
nameField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string revision {
|
||||
get {
|
||||
return revisionField;
|
||||
}
|
||||
set {
|
||||
revisionField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string salesContact {
|
||||
get {
|
||||
return salesContactField;
|
||||
}
|
||||
set {
|
||||
salesContactField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified, DataType="anyURI")]
|
||||
public string orderForm {
|
||||
get {
|
||||
return orderFormField;
|
||||
}
|
||||
set {
|
||||
orderFormField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
[XmlType( AnonymousType=true)]
|
||||
public partial class BoardTypeImage {
|
||||
|
||||
private string smallField;
|
||||
|
||||
private string largeField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string small {
|
||||
get {
|
||||
return smallField;
|
||||
}
|
||||
set {
|
||||
smallField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string large {
|
||||
get {
|
||||
return largeField;
|
||||
}
|
||||
set {
|
||||
largeField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class BoardsBookType {
|
||||
|
||||
private BoardBookCategoryEnum categoryField;
|
||||
|
||||
private bool categoryFieldSpecified;
|
||||
|
||||
private string nameField;
|
||||
|
||||
private string titleField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public BoardBookCategoryEnum category {
|
||||
get {
|
||||
return categoryField;
|
||||
}
|
||||
set {
|
||||
categoryField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool categorySpecified {
|
||||
get {
|
||||
return categoryFieldSpecified;
|
||||
}
|
||||
set {
|
||||
categoryFieldSpecified = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string name {
|
||||
get {
|
||||
return nameField;
|
||||
}
|
||||
set {
|
||||
nameField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string title {
|
||||
get {
|
||||
return titleField;
|
||||
}
|
||||
set {
|
||||
titleField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,75 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class BoardsDeviceType {
|
||||
|
||||
private string deviceIndexField;
|
||||
|
||||
private DeviceVendorEnum dvendorField;
|
||||
|
||||
private string dfamilyField;
|
||||
|
||||
private string dsubFamilyField;
|
||||
|
||||
private string dnameField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string deviceIndex {
|
||||
get {
|
||||
return deviceIndexField;
|
||||
}
|
||||
set {
|
||||
deviceIndexField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public DeviceVendorEnum Dvendor {
|
||||
get {
|
||||
return dvendorField;
|
||||
}
|
||||
set {
|
||||
dvendorField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Dfamily {
|
||||
get {
|
||||
return dfamilyField;
|
||||
}
|
||||
set {
|
||||
dfamilyField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string DsubFamily {
|
||||
get {
|
||||
return dsubFamilyField;
|
||||
}
|
||||
set {
|
||||
dsubFamilyField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Dname {
|
||||
get {
|
||||
return dnameField;
|
||||
}
|
||||
set {
|
||||
dnameField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,49 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class BookType {
|
||||
|
||||
private string pnameField;
|
||||
|
||||
private string nameField;
|
||||
|
||||
private string titleField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Pname {
|
||||
get {
|
||||
return pnameField;
|
||||
}
|
||||
set {
|
||||
pnameField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string name {
|
||||
get {
|
||||
return nameField;
|
||||
}
|
||||
set {
|
||||
nameField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string title {
|
||||
get {
|
||||
return titleField;
|
||||
}
|
||||
set {
|
||||
titleField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,74 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
[XmlType( AnonymousType = true )]
|
||||
public partial class Bundle : ComponenOrBundleGroup
|
||||
{
|
||||
private string docField;
|
||||
|
||||
private Component[] componentField;
|
||||
|
||||
private string cbundleField;
|
||||
|
||||
private string generatorField;
|
||||
|
||||
/// <remarks/>
|
||||
public string doc
|
||||
{
|
||||
get
|
||||
{
|
||||
return docField;
|
||||
}
|
||||
set
|
||||
{
|
||||
docField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "component" )]
|
||||
public Component[ ] component
|
||||
{
|
||||
get
|
||||
{
|
||||
return componentField;
|
||||
}
|
||||
set
|
||||
{
|
||||
componentField = 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 generator
|
||||
{
|
||||
get
|
||||
{
|
||||
return generatorField;
|
||||
}
|
||||
set
|
||||
{
|
||||
generatorField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,88 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class CompatibleDeviceType {
|
||||
|
||||
private string deviceIndexField;
|
||||
|
||||
private DeviceVendorEnum dvendorField;
|
||||
|
||||
private bool dvendorFieldSpecified;
|
||||
|
||||
private string dfamilyField;
|
||||
|
||||
private string dsubFamilyField;
|
||||
|
||||
private string dnameField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string deviceIndex {
|
||||
get {
|
||||
return deviceIndexField;
|
||||
}
|
||||
set {
|
||||
deviceIndexField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public DeviceVendorEnum Dvendor {
|
||||
get {
|
||||
return dvendorField;
|
||||
}
|
||||
set {
|
||||
dvendorField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool DvendorSpecified {
|
||||
get {
|
||||
return dvendorFieldSpecified;
|
||||
}
|
||||
set {
|
||||
dvendorFieldSpecified = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Dfamily {
|
||||
get {
|
||||
return dfamilyField;
|
||||
}
|
||||
set {
|
||||
dfamilyField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string DsubFamily {
|
||||
get {
|
||||
return dsubFamilyField;
|
||||
}
|
||||
set {
|
||||
dsubFamilyField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Dname {
|
||||
get {
|
||||
return dnameField;
|
||||
}
|
||||
set {
|
||||
dnameField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,49 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class CompileType {
|
||||
|
||||
private string pnameField;
|
||||
|
||||
private string headerField;
|
||||
|
||||
private string defineField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Pname {
|
||||
get {
|
||||
return pnameField;
|
||||
}
|
||||
set {
|
||||
pnameField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string header {
|
||||
get {
|
||||
return headerField;
|
||||
}
|
||||
set {
|
||||
headerField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string define {
|
||||
get {
|
||||
return defineField;
|
||||
}
|
||||
set {
|
||||
defineField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
using System;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public enum CompilerEnumType {
|
||||
|
||||
/// <remarks/>
|
||||
GCC,
|
||||
|
||||
/// <remarks/>
|
||||
ARMCC,
|
||||
|
||||
/// <remarks/>
|
||||
IAR,
|
||||
|
||||
/// <remarks/>
|
||||
Tasking,
|
||||
|
||||
/// <remarks/>
|
||||
GHS,
|
||||
|
||||
/// <remarks/>
|
||||
Cosmic,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "G++")]
|
||||
G,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "*")]
|
||||
Item,
|
||||
}
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
using System;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public enum CompilerOutputType {
|
||||
|
||||
/// <remarks/>
|
||||
exe,
|
||||
|
||||
/// <remarks/>
|
||||
lib,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "*")]
|
||||
Item,
|
||||
}
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
public partial class ComponenOrBundleGroup
|
||||
{
|
||||
[XmlAttribute("Cvendor")]
|
||||
public string Vendor { get; set; }
|
||||
|
||||
[XmlAttribute("Cclass")]
|
||||
public string Class { get; set; }
|
||||
|
||||
[XmlElement("description")]
|
||||
public string Description { get; set; }
|
||||
|
||||
[XmlAttribute( Form = System.Xml.Schema.XmlSchemaForm.Qualified )]
|
||||
public string Cversion { get; set; }
|
||||
}
|
||||
}
|
|
@ -1,17 +1,146 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml.Linq;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
public class Component
|
||||
[Serializable( )]
|
||||
[XmlType( AnonymousType=true)]
|
||||
public partial class Component : ComponenOrBundleGroup
|
||||
{
|
||||
internal static Component ParseFrom( XElement arg )
|
||||
{
|
||||
return new Component();
|
||||
|
||||
private bool deprecatedField;
|
||||
|
||||
private string rTE_Components_hField;
|
||||
|
||||
private FileType[] filesField;
|
||||
|
||||
private string cgroupField;
|
||||
|
||||
private string csubField;
|
||||
|
||||
private string cvariantField;
|
||||
|
||||
private string capiversionField;
|
||||
|
||||
private string conditionField;
|
||||
|
||||
private string maxInstancesField;
|
||||
|
||||
private string generatorField;
|
||||
|
||||
public Component() {
|
||||
deprecatedField = false;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[DefaultValue( false)]
|
||||
public bool deprecated {
|
||||
get {
|
||||
return deprecatedField;
|
||||
}
|
||||
set {
|
||||
deprecatedField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public string RTE_Components_h {
|
||||
get {
|
||||
return rTE_Components_hField;
|
||||
}
|
||||
set {
|
||||
rTE_Components_hField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlArrayItem( "file", IsNullable=false)]
|
||||
public FileType[] files {
|
||||
get {
|
||||
return filesField;
|
||||
}
|
||||
set {
|
||||
filesField = 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 Capiversion {
|
||||
get {
|
||||
return capiversionField;
|
||||
}
|
||||
set {
|
||||
capiversionField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string condition {
|
||||
get {
|
||||
return conditionField;
|
||||
}
|
||||
set {
|
||||
conditionField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified, DataType="integer")]
|
||||
public string maxInstances {
|
||||
get {
|
||||
return maxInstancesField;
|
||||
}
|
||||
set {
|
||||
maxInstancesField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string generator {
|
||||
get {
|
||||
return generatorField;
|
||||
}
|
||||
set {
|
||||
generatorField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,116 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
public class Condition
|
||||
{
|
||||
internal static Condition ParseFrom( XElement arg )
|
||||
{
|
||||
return new Condition();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,65 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,153 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
class DebugAccessSequence
|
||||
{
|
||||
}
|
||||
}
|
|
@ -0,0 +1,101 @@
|
|||
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,36 @@
|
|||
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,73 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,114 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class DebugType {
|
||||
|
||||
private DataPatchType[] datapatchField;
|
||||
|
||||
private uint @__dpField;
|
||||
|
||||
private bool @__dpFieldSpecified;
|
||||
|
||||
private uint @__apField;
|
||||
|
||||
private bool @__apFieldSpecified;
|
||||
|
||||
private string svdField;
|
||||
|
||||
private string pnameField;
|
||||
|
||||
private XmlAttribute[] anyAttrField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "datapatch")]
|
||||
public DataPatchType[] datapatch {
|
||||
get {
|
||||
return datapatchField;
|
||||
}
|
||||
set {
|
||||
datapatchField = 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 svd {
|
||||
get {
|
||||
return svdField;
|
||||
}
|
||||
set {
|
||||
svdField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Pname {
|
||||
get {
|
||||
return pnameField;
|
||||
}
|
||||
set {
|
||||
pnameField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAnyAttribute( )]
|
||||
public XmlAttribute[ ] AnyAttr {
|
||||
get {
|
||||
return anyAttrField;
|
||||
}
|
||||
set {
|
||||
anyAttrField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,75 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class DebugVarsType {
|
||||
|
||||
private string configfileField;
|
||||
|
||||
private string versionField;
|
||||
|
||||
private string pnameField;
|
||||
|
||||
private XmlAttribute[] anyAttrField;
|
||||
|
||||
private string valueField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string configfile {
|
||||
get {
|
||||
return configfileField;
|
||||
}
|
||||
set {
|
||||
configfileField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string version {
|
||||
get {
|
||||
return versionField;
|
||||
}
|
||||
set {
|
||||
versionField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Pname {
|
||||
get {
|
||||
return pnameField;
|
||||
}
|
||||
set {
|
||||
pnameField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAnyAttribute( )]
|
||||
public XmlAttribute[ ] AnyAttr {
|
||||
get {
|
||||
return anyAttrField;
|
||||
}
|
||||
set {
|
||||
anyAttrField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlText( )]
|
||||
public string Value {
|
||||
get {
|
||||
return valueField;
|
||||
}
|
||||
set {
|
||||
valueField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class DescriptionType {
|
||||
|
||||
private string pnameField;
|
||||
|
||||
private string valueField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Pname {
|
||||
get {
|
||||
return pnameField;
|
||||
}
|
||||
set {
|
||||
pnameField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlText( )]
|
||||
public string Value {
|
||||
get {
|
||||
return valueField;
|
||||
}
|
||||
set {
|
||||
valueField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
public class DeviceFamily
|
||||
{
|
||||
internal static DeviceFamily ParseFrom( XElement arg )
|
||||
{
|
||||
return new DeviceFamily();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,139 @@
|
|||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
using Sprache;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class DeviceFeatureType {
|
||||
|
||||
private string pnameField;
|
||||
|
||||
private string typeField;
|
||||
|
||||
private decimal nField;
|
||||
|
||||
private bool nFieldSpecified;
|
||||
|
||||
private decimal mField;
|
||||
|
||||
private bool mFieldSpecified;
|
||||
|
||||
private string nameField;
|
||||
|
||||
private int countField;
|
||||
|
||||
private bool countFieldSpecified;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Pname {
|
||||
get {
|
||||
return pnameField;
|
||||
}
|
||||
set {
|
||||
pnameField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string type {
|
||||
get {
|
||||
return typeField;
|
||||
}
|
||||
set {
|
||||
typeField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute("n", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string RawNString {
|
||||
get
|
||||
{
|
||||
return nField.ToString();
|
||||
}
|
||||
set
|
||||
{
|
||||
nField = Parsers.ScaledDecimal.Parse( value.Trim() );
|
||||
}
|
||||
}
|
||||
|
||||
[XmlIgnore]
|
||||
public decimal n { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool nSpecified {
|
||||
get {
|
||||
return nFieldSpecified;
|
||||
}
|
||||
set {
|
||||
nFieldSpecified = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public decimal m {
|
||||
get {
|
||||
return mField;
|
||||
}
|
||||
set {
|
||||
mField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool mSpecified {
|
||||
get {
|
||||
return mFieldSpecified;
|
||||
}
|
||||
set {
|
||||
mFieldSpecified = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string name {
|
||||
get {
|
||||
return nameField;
|
||||
}
|
||||
set {
|
||||
nameField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public int count {
|
||||
get {
|
||||
return countField;
|
||||
}
|
||||
set {
|
||||
countField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool countSpecified {
|
||||
get {
|
||||
return countFieldSpecified;
|
||||
}
|
||||
set {
|
||||
countFieldSpecified = value;
|
||||
}
|
||||
}
|
||||
|
||||
[OnDeserializing]
|
||||
internal void OnDeserializing( StreamingContext ctx )
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,217 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class DeviceType {
|
||||
|
||||
private ProcessorType[] processorField;
|
||||
|
||||
private DebugConfigType debugconfigField;
|
||||
|
||||
private CompileType[] compileField;
|
||||
|
||||
private MemoryType[] memoryField;
|
||||
|
||||
private AlgorithmType[] algorithmField;
|
||||
|
||||
private BookType[] bookField;
|
||||
|
||||
private DescriptionType[] descriptionField;
|
||||
|
||||
private DeviceFeatureType[] featureField;
|
||||
|
||||
private EnvironmentType[] environmentField;
|
||||
|
||||
private DebugPortType[] debugportField;
|
||||
|
||||
private DebugType[] debugField;
|
||||
|
||||
private TraceType[] traceField;
|
||||
|
||||
private DebugVarsType[] debugvarsField;
|
||||
|
||||
private SequencesType[] sequencesField;
|
||||
|
||||
private DeviceTypeVariant[] variantField;
|
||||
|
||||
private string dnameField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "processor")]
|
||||
public ProcessorType[] processor {
|
||||
get {
|
||||
return processorField;
|
||||
}
|
||||
set {
|
||||
processorField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public DebugConfigType debugconfig {
|
||||
get {
|
||||
return debugconfigField;
|
||||
}
|
||||
set {
|
||||
debugconfigField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "compile")]
|
||||
public CompileType[] compile {
|
||||
get {
|
||||
return compileField;
|
||||
}
|
||||
set {
|
||||
compileField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "memory")]
|
||||
public MemoryType[] memory {
|
||||
get {
|
||||
return memoryField;
|
||||
}
|
||||
set {
|
||||
memoryField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "algorithm")]
|
||||
public AlgorithmType[] algorithm {
|
||||
get {
|
||||
return algorithmField;
|
||||
}
|
||||
set {
|
||||
algorithmField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "book")]
|
||||
public BookType[] book {
|
||||
get {
|
||||
return bookField;
|
||||
}
|
||||
set {
|
||||
bookField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "description")]
|
||||
public DescriptionType[] description {
|
||||
get {
|
||||
return descriptionField;
|
||||
}
|
||||
set {
|
||||
descriptionField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "feature")]
|
||||
public DeviceFeatureType[] feature {
|
||||
get {
|
||||
return featureField;
|
||||
}
|
||||
set {
|
||||
featureField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "environment")]
|
||||
public EnvironmentType[] environment {
|
||||
get {
|
||||
return environmentField;
|
||||
}
|
||||
set {
|
||||
environmentField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "debugport")]
|
||||
public DebugPortType[] debugport {
|
||||
get {
|
||||
return debugportField;
|
||||
}
|
||||
set {
|
||||
debugportField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "debug")]
|
||||
public DebugType[] debug {
|
||||
get {
|
||||
return debugField;
|
||||
}
|
||||
set {
|
||||
debugField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "trace")]
|
||||
public TraceType[] trace {
|
||||
get {
|
||||
return traceField;
|
||||
}
|
||||
set {
|
||||
traceField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "debugvars")]
|
||||
public DebugVarsType[] debugvars {
|
||||
get {
|
||||
return debugvarsField;
|
||||
}
|
||||
set {
|
||||
debugvarsField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "sequences")]
|
||||
public SequencesType[] sequences {
|
||||
get {
|
||||
return sequencesField;
|
||||
}
|
||||
set {
|
||||
sequencesField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "variant")]
|
||||
public DeviceTypeVariant[] variant {
|
||||
get {
|
||||
return variantField;
|
||||
}
|
||||
set {
|
||||
variantField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Dname {
|
||||
get {
|
||||
return dnameField;
|
||||
}
|
||||
set {
|
||||
dnameField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,205 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
[XmlType( AnonymousType=true)]
|
||||
public partial class DeviceTypeVariant {
|
||||
|
||||
private ProcessorType[] processorField;
|
||||
|
||||
private DebugConfigType debugconfigField;
|
||||
|
||||
private CompileType[] compileField;
|
||||
|
||||
private MemoryType[] memoryField;
|
||||
|
||||
private AlgorithmType[] algorithmField;
|
||||
|
||||
private BookType[] bookField;
|
||||
|
||||
private DescriptionType[] descriptionField;
|
||||
|
||||
private DeviceFeatureType[] featureField;
|
||||
|
||||
private EnvironmentType[] environmentField;
|
||||
|
||||
private DebugPortType[] debugportField;
|
||||
|
||||
private DebugType[] debugField;
|
||||
|
||||
private TraceType[] traceField;
|
||||
|
||||
private DebugVarsType[] debugvarsField;
|
||||
|
||||
private SequencesType[] sequencesField;
|
||||
|
||||
private string dvariantField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "processor")]
|
||||
public ProcessorType[] processor {
|
||||
get {
|
||||
return processorField;
|
||||
}
|
||||
set {
|
||||
processorField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public DebugConfigType debugconfig {
|
||||
get {
|
||||
return debugconfigField;
|
||||
}
|
||||
set {
|
||||
debugconfigField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "compile")]
|
||||
public CompileType[] compile {
|
||||
get {
|
||||
return compileField;
|
||||
}
|
||||
set {
|
||||
compileField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "memory")]
|
||||
public MemoryType[] memory {
|
||||
get {
|
||||
return memoryField;
|
||||
}
|
||||
set {
|
||||
memoryField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "algorithm")]
|
||||
public AlgorithmType[] algorithm {
|
||||
get {
|
||||
return algorithmField;
|
||||
}
|
||||
set {
|
||||
algorithmField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "book")]
|
||||
public BookType[] book {
|
||||
get {
|
||||
return bookField;
|
||||
}
|
||||
set {
|
||||
bookField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "description")]
|
||||
public DescriptionType[] description {
|
||||
get {
|
||||
return descriptionField;
|
||||
}
|
||||
set {
|
||||
descriptionField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "feature")]
|
||||
public DeviceFeatureType[] feature {
|
||||
get {
|
||||
return featureField;
|
||||
}
|
||||
set {
|
||||
featureField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "environment")]
|
||||
public EnvironmentType[] environment {
|
||||
get {
|
||||
return environmentField;
|
||||
}
|
||||
set {
|
||||
environmentField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "debugport")]
|
||||
public DebugPortType[] debugport {
|
||||
get {
|
||||
return debugportField;
|
||||
}
|
||||
set {
|
||||
debugportField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "debug")]
|
||||
public DebugType[] debug {
|
||||
get {
|
||||
return debugField;
|
||||
}
|
||||
set {
|
||||
debugField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "trace")]
|
||||
public TraceType[] trace {
|
||||
get {
|
||||
return traceField;
|
||||
}
|
||||
set {
|
||||
traceField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "debugvars")]
|
||||
public DebugVarsType[] debugvars {
|
||||
get {
|
||||
return debugvarsField;
|
||||
}
|
||||
set {
|
||||
debugvarsField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "sequences")]
|
||||
public SequencesType[] sequences {
|
||||
get {
|
||||
return sequencesField;
|
||||
}
|
||||
set {
|
||||
sequencesField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Dvariant {
|
||||
get {
|
||||
return dvariantField;
|
||||
}
|
||||
set {
|
||||
dvariantField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,485 @@
|
|||
using System;
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
/// <remarks/>
|
||||
[Serializable( )]
|
||||
public enum DeviceVendorEnum
|
||||
{
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "ABOV Semiconductor:126" )]
|
||||
ABOVSemiconductor126,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Actel:56" )]
|
||||
Actel56,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Altera:85" )]
|
||||
Altera85,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Altium:65" )]
|
||||
Altium65,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Ambiq Micro:120" )]
|
||||
AmbiqMicro120,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Analog Devices:1" )]
|
||||
AnalogDevices1,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "ARM:82" )]
|
||||
ARM82,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "ARM CMSIS:109" )]
|
||||
ARMCMSIS109,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Atmel:3" )]
|
||||
Atmel3,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "CSR:118" )]
|
||||
CSR118,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Cypress:19" )]
|
||||
Cypress19,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Dialog Semiconductor:113" )]
|
||||
DialogSemiconductor113,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Dolphin:57" )]
|
||||
Dolphin57,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Domosys:26" )]
|
||||
Domosys26,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Ember:98" )]
|
||||
Ember98,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Energy Micro:97" )]
|
||||
EnergyMicro97,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "EnOcean:91" )]
|
||||
EnOcean91,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Evatronix:64" )]
|
||||
Evatronix64,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Freescale:78" )]
|
||||
Freescale78,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Generic:5" )]
|
||||
Generic5,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "GigaDevice:123" )]
|
||||
GigaDevice123,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Holtek:106" )]
|
||||
Holtek106,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Hynix Semiconductor:6" )]
|
||||
HynixSemiconductor6,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Hyundai:35" )]
|
||||
Hyundai35,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Infineon:7" )]
|
||||
Infineon7,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Kionix:127" )]
|
||||
Kionix127,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Lapis Semiconductor:10" )]
|
||||
LapisSemiconductor10,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Luminary Micro:76" )]
|
||||
LuminaryMicro76,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Maxim:23" )]
|
||||
Maxim23,
|
||||
|
||||
/// <remarks>
|
||||
/// This is missing from the official schema, but found in the Keil Repository...
|
||||
/// </remarks>
|
||||
[XmlEnum( "MediaTek:129" )]
|
||||
MediaTek129,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "MegaChips:128" )]
|
||||
MegaChips128,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Mentor Graphics Co.:24" )]
|
||||
MentorGraphicsCo24,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Micronas:30" )]
|
||||
Micronas30,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Microsemi:112" )]
|
||||
Microsemi112,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Milandr:99" )]
|
||||
Milandr99,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "NetSilicon:67" )]
|
||||
NetSilicon67,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Nordic Semiconductor:54" )]
|
||||
NordicSemiconductor54,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Nuvoton:18" )]
|
||||
Nuvoton18,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "NXP:11" )]
|
||||
NXP11,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "OKI SEMICONDUCTOR CO.,LTD.:108" )]
|
||||
OKISEMICONDUCTORCOLTD108,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Realtek Semiconductor:124" )]
|
||||
RealtekSemiconductor124,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Redpine Signals:125" )]
|
||||
RedpineSignals125,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Renesas:117" )]
|
||||
Renesas117,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "ROHM:103" )]
|
||||
ROHM103,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Samsung:47" )]
|
||||
Samsung47,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Silicon Labs:21" )]
|
||||
SiliconLabs21,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "SONiX:110" )]
|
||||
SONiX110,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Spansion:100" )]
|
||||
Spansion100,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "STMicroelectronics:13" )]
|
||||
STMicroelectronics13,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Sunrise Micro Devices:121" )]
|
||||
SunriseMicroDevices121,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "TI:16" )]
|
||||
TI16,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Texas Instruments:16" )]
|
||||
TexasInstruments16,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Toshiba:92" )]
|
||||
Toshiba92,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Triad Semiconductor:104" )]
|
||||
TriadSemiconductor104,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "WIZnet:122" )]
|
||||
WIZnet122,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Freescale Semiconductor:78" )]
|
||||
FreescaleSemiconductor78,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "NXP (founded by Philips):11" )]
|
||||
NXPfoundedbyPhilips11,
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[Serializable( )]
|
||||
[XmlType( IncludeInSchema=false)]
|
||||
public enum ItemsChoiceType1 {
|
||||
|
||||
/// <remarks/>
|
||||
category,
|
||||
|
||||
/// <remarks/>
|
||||
component,
|
||||
|
||||
/// <remarks/>
|
||||
keyword,
|
||||
}
|
||||
|
||||
[Serializable( )]
|
||||
public enum DcoreEnum {
|
||||
|
||||
/// <remarks/>
|
||||
SC000,
|
||||
|
||||
/// <remarks/>
|
||||
SC300,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Cortex-M0")]
|
||||
CortexM0,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Cortex-M0+")]
|
||||
CortexM01,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Cortex-M1")]
|
||||
CortexM1,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Cortex-M3")]
|
||||
CortexM3,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Cortex-M4")]
|
||||
CortexM4,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Cortex-M7")]
|
||||
CortexM7,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Cortex-R4")]
|
||||
CortexR4,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Cortex-R5")]
|
||||
CortexR5,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Cortex-A5")]
|
||||
CortexA5,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Cortex-A7")]
|
||||
CortexA7,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Cortex-A8")]
|
||||
CortexA8,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Cortex-A9")]
|
||||
CortexA9,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Cortex-A15")]
|
||||
CortexA15,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Cortex-A17")]
|
||||
CortexA17,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Cortex-A53")]
|
||||
CortexA53,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Cortex-A57")]
|
||||
CortexA57,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Cortex-A72")]
|
||||
CortexA72,
|
||||
|
||||
/// <remarks/>
|
||||
other,
|
||||
}
|
||||
|
||||
[Serializable( )]
|
||||
public enum DfpuEnum {
|
||||
|
||||
/// <remarks/>
|
||||
FPU,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "1")]
|
||||
Item1,
|
||||
|
||||
/// <remarks/>
|
||||
NO_FPU,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "0")]
|
||||
Item0,
|
||||
|
||||
/// <remarks/>
|
||||
SP_FPU,
|
||||
|
||||
/// <remarks/>
|
||||
DP_FPU,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "*")]
|
||||
Item,
|
||||
}
|
||||
|
||||
[Serializable( )]
|
||||
public enum DmpuEnum {
|
||||
|
||||
/// <remarks/>
|
||||
MPU,
|
||||
|
||||
/// <remarks/>
|
||||
NO_MPU,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "0")]
|
||||
Item0,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "1")]
|
||||
Item1,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "*")]
|
||||
Item,
|
||||
}
|
||||
|
||||
[Serializable( )]
|
||||
public enum DendianEnum {
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Little-endian")]
|
||||
Littleendian,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "Big-endian")]
|
||||
Bigendian,
|
||||
|
||||
/// <remarks/>
|
||||
Configurable,
|
||||
|
||||
/// <remarks/>
|
||||
[XmlEnum( "*")]
|
||||
Item,
|
||||
}
|
||||
|
||||
[Serializable( )]
|
||||
public enum DebugProtocolEnum {
|
||||
|
||||
/// <remarks/>
|
||||
jtag,
|
||||
|
||||
/// <remarks/>
|
||||
swd,
|
||||
}
|
||||
|
||||
[Serializable( )]
|
||||
public enum MemoryIDTypeEnum {
|
||||
|
||||
/// <remarks/>
|
||||
IRAM1,
|
||||
|
||||
/// <remarks/>
|
||||
IRAM2,
|
||||
|
||||
/// <remarks/>
|
||||
IRAM3,
|
||||
|
||||
/// <remarks/>
|
||||
IRAM4,
|
||||
|
||||
/// <remarks/>
|
||||
IRAM5,
|
||||
|
||||
/// <remarks/>
|
||||
IRAM6,
|
||||
|
||||
/// <remarks/>
|
||||
IRAM7,
|
||||
|
||||
/// <remarks/>
|
||||
IRAM8,
|
||||
|
||||
/// <remarks/>
|
||||
IROM1,
|
||||
|
||||
/// <remarks/>
|
||||
IROM2,
|
||||
|
||||
/// <remarks/>
|
||||
IROM3,
|
||||
|
||||
/// <remarks/>
|
||||
IROM4,
|
||||
|
||||
/// <remarks/>
|
||||
IROM5,
|
||||
|
||||
/// <remarks/>
|
||||
IROM6,
|
||||
|
||||
/// <remarks/>
|
||||
IROM7,
|
||||
|
||||
/// <remarks/>
|
||||
IROM8,
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[GeneratedCode( "xsd", "4.6.1055.0")]
|
||||
[Serializable( )]
|
||||
public enum DataPatchAccessTypeEnum {
|
||||
|
||||
/// <remarks/>
|
||||
DP,
|
||||
|
||||
/// <remarks/>
|
||||
AP,
|
||||
|
||||
/// <remarks/>
|
||||
Mem,
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class EnvironmentType {
|
||||
|
||||
private System.Xml.XmlElement[] anyField;
|
||||
|
||||
private string nameField;
|
||||
|
||||
private string pnameField;
|
||||
|
||||
private XmlAttribute[] anyAttrField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAnyElement( )]
|
||||
public System.Xml.XmlElement[] Any {
|
||||
get {
|
||||
return anyField;
|
||||
}
|
||||
set {
|
||||
anyField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string name {
|
||||
get {
|
||||
return nameField;
|
||||
}
|
||||
set {
|
||||
nameField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Pname {
|
||||
get {
|
||||
return pnameField;
|
||||
}
|
||||
set {
|
||||
pnameField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAnyAttribute( )]
|
||||
public XmlAttribute[ ] AnyAttr {
|
||||
get {
|
||||
return anyAttrField;
|
||||
}
|
||||
set {
|
||||
anyAttrField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
public class Example
|
||||
{
|
||||
public static Example ParseFrom( XElement element )
|
||||
{
|
||||
return new Example();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
/// <remarks/>
|
||||
[Serializable( )]
|
||||
public partial class ExampleAttributesType
|
||||
{
|
||||
|
||||
private object[] itemsField;
|
||||
|
||||
private ItemsChoiceType1[] itemsElementNameField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "category", typeof(string))]
|
||||
[XmlElement( "component", typeof(ComponentCategoryType))]
|
||||
[XmlElement( "keyword", typeof(string))]
|
||||
[XmlChoiceIdentifier( "ItemsElementName")]
|
||||
public object[] Items {
|
||||
get {
|
||||
return itemsField;
|
||||
}
|
||||
set {
|
||||
itemsField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "ItemsElementName")]
|
||||
[XmlIgnore( )]
|
||||
public ItemsChoiceType1[] ItemsElementName {
|
||||
get {
|
||||
return itemsElementNameField;
|
||||
}
|
||||
set {
|
||||
itemsElementNameField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
/// <remarks/>
|
||||
[Serializable( )]
|
||||
[XmlType( AnonymousType=true)]
|
||||
public partial class ExampleProjectTypeEnvironment {
|
||||
|
||||
private string nameField;
|
||||
|
||||
private string loadField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string name {
|
||||
get {
|
||||
return nameField;
|
||||
}
|
||||
set {
|
||||
nameField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string load {
|
||||
get {
|
||||
return loadField;
|
||||
}
|
||||
set {
|
||||
loadField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,132 @@
|
|||
using System;
|
||||
using System.CodeDom.Compiler;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
/// <remarks/>
|
||||
[GeneratedCode( "xsd", "4.6.1055.0")]
|
||||
[Serializable( )]
|
||||
[DebuggerStepThrough( )]
|
||||
[DesignerCategory( "code")]
|
||||
public partial class ExampleType {
|
||||
|
||||
private string descriptionField;
|
||||
|
||||
private BoardReferenceType[] boardField;
|
||||
|
||||
private ExampleProjectTypeEnvironment[] projectField;
|
||||
|
||||
private ExampleAttributesType attributesField;
|
||||
|
||||
private string nameField;
|
||||
|
||||
private string folderField;
|
||||
|
||||
private string archiveField;
|
||||
|
||||
private string docField;
|
||||
|
||||
private string versionField;
|
||||
|
||||
/// <remarks/>
|
||||
public string description {
|
||||
get {
|
||||
return descriptionField;
|
||||
}
|
||||
set {
|
||||
descriptionField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "board")]
|
||||
public BoardReferenceType[] board {
|
||||
get {
|
||||
return boardField;
|
||||
}
|
||||
set {
|
||||
boardField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlArrayItem( "environment", IsNullable=false)]
|
||||
public ExampleProjectTypeEnvironment[] project {
|
||||
get {
|
||||
return projectField;
|
||||
}
|
||||
set {
|
||||
projectField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ExampleAttributesType attributes {
|
||||
get {
|
||||
return attributesField;
|
||||
}
|
||||
set {
|
||||
attributesField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string name {
|
||||
get {
|
||||
return nameField;
|
||||
}
|
||||
set {
|
||||
nameField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string folder {
|
||||
get {
|
||||
return folderField;
|
||||
}
|
||||
set {
|
||||
folderField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string archive {
|
||||
get {
|
||||
return archiveField;
|
||||
}
|
||||
set {
|
||||
archiveField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string doc {
|
||||
get {
|
||||
return docField;
|
||||
}
|
||||
set {
|
||||
docField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string version {
|
||||
get {
|
||||
return versionField;
|
||||
}
|
||||
set {
|
||||
versionField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,244 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
[XmlType( AnonymousType=true)]
|
||||
public partial class Family {
|
||||
|
||||
private ProcessorType[] processorField;
|
||||
|
||||
private DebugConfigType debugconfigField;
|
||||
|
||||
private CompileType[] compileField;
|
||||
|
||||
private MemoryType[] memoryField;
|
||||
|
||||
private AlgorithmType[] algorithmField;
|
||||
|
||||
private BookType[] bookField;
|
||||
|
||||
private DescriptionType[] descriptionField;
|
||||
|
||||
private DeviceFeatureType[] featureField;
|
||||
|
||||
private EnvironmentType[] environmentField;
|
||||
|
||||
private DebugPortType[] debugportField;
|
||||
|
||||
private DebugType[] debugField;
|
||||
|
||||
private TraceType[] traceField;
|
||||
|
||||
private DebugVarsType[] debugvarsField;
|
||||
|
||||
private SequencesType[] sequencesField;
|
||||
|
||||
private DeviceType[] deviceField;
|
||||
|
||||
private SubFamily[] subFamilyField;
|
||||
|
||||
private string dfamilyField;
|
||||
|
||||
private DeviceVendorEnum dvendorField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "processor")]
|
||||
public ProcessorType[] processor {
|
||||
get {
|
||||
return processorField;
|
||||
}
|
||||
set {
|
||||
processorField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public DebugConfigType debugconfig {
|
||||
get {
|
||||
return debugconfigField;
|
||||
}
|
||||
set {
|
||||
debugconfigField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "compile")]
|
||||
public CompileType[] compile {
|
||||
get {
|
||||
return compileField;
|
||||
}
|
||||
set {
|
||||
compileField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "memory")]
|
||||
public MemoryType[] memory {
|
||||
get {
|
||||
return memoryField;
|
||||
}
|
||||
set {
|
||||
memoryField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "algorithm")]
|
||||
public AlgorithmType[] algorithm {
|
||||
get {
|
||||
return algorithmField;
|
||||
}
|
||||
set {
|
||||
algorithmField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "book")]
|
||||
public BookType[] book {
|
||||
get {
|
||||
return bookField;
|
||||
}
|
||||
set {
|
||||
bookField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "description")]
|
||||
public DescriptionType[] description {
|
||||
get {
|
||||
return descriptionField;
|
||||
}
|
||||
set {
|
||||
descriptionField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "feature")]
|
||||
public DeviceFeatureType[] feature {
|
||||
get {
|
||||
return featureField;
|
||||
}
|
||||
set {
|
||||
featureField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "environment")]
|
||||
public EnvironmentType[] environment {
|
||||
get {
|
||||
return environmentField;
|
||||
}
|
||||
set {
|
||||
environmentField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "debugport")]
|
||||
public DebugPortType[] debugport {
|
||||
get {
|
||||
return debugportField;
|
||||
}
|
||||
set {
|
||||
debugportField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "debug")]
|
||||
public DebugType[] debug {
|
||||
get {
|
||||
return debugField;
|
||||
}
|
||||
set {
|
||||
debugField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "trace")]
|
||||
public TraceType[] trace {
|
||||
get {
|
||||
return traceField;
|
||||
}
|
||||
set {
|
||||
traceField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "debugvars")]
|
||||
public DebugVarsType[] debugvars {
|
||||
get {
|
||||
return debugvarsField;
|
||||
}
|
||||
set {
|
||||
debugvarsField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "sequences")]
|
||||
public SequencesType[] sequences {
|
||||
get {
|
||||
return sequencesField;
|
||||
}
|
||||
set {
|
||||
sequencesField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "device")]
|
||||
public DeviceType[] device {
|
||||
get {
|
||||
return deviceField;
|
||||
}
|
||||
set {
|
||||
deviceField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "subFamily")]
|
||||
public SubFamily[] subFamily {
|
||||
get {
|
||||
return subFamilyField;
|
||||
}
|
||||
set {
|
||||
subFamilyField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Dfamily {
|
||||
get {
|
||||
return dfamilyField;
|
||||
}
|
||||
set {
|
||||
dfamilyField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public DeviceVendorEnum Dvendor {
|
||||
get {
|
||||
return dvendorField;
|
||||
}
|
||||
set {
|
||||
dvendorField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,40 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
enum FileCategory
|
||||
{
|
||||
Doc,
|
||||
Header,
|
||||
Include,
|
||||
Library,
|
||||
Object,
|
||||
Source,
|
||||
SourceC,
|
||||
SourceCPP,
|
||||
SourceAsm,
|
||||
LinkerScript,
|
||||
Utility,
|
||||
Image,
|
||||
Other
|
||||
}
|
||||
|
||||
enum FileAttribute
|
||||
{
|
||||
Config,
|
||||
Template
|
||||
}
|
||||
|
||||
public class File
|
||||
{
|
||||
internal static File ParseFrom( XElement arg )
|
||||
{
|
||||
return new File();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
using System;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
/// <remarks/>
|
||||
[Serializable( )]
|
||||
public enum FileAttributeType {
|
||||
|
||||
/// <remarks/>
|
||||
config,
|
||||
|
||||
/// <remarks/>
|
||||
copy,
|
||||
|
||||
/// <remarks/>
|
||||
template,
|
||||
|
||||
/// <remarks/>
|
||||
@interface,
|
||||
}
|
||||
}
|
|
@ -0,0 +1,50 @@
|
|||
using System;
|
||||
using System.CodeDom.Compiler;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
/// <remarks/>
|
||||
[GeneratedCode( "xsd", "4.6.1055.0")]
|
||||
[Serializable( )]
|
||||
public enum FileCategoryType {
|
||||
|
||||
/// <remarks/>
|
||||
doc,
|
||||
|
||||
/// <remarks/>
|
||||
header,
|
||||
|
||||
/// <remarks/>
|
||||
include,
|
||||
|
||||
/// <remarks/>
|
||||
library,
|
||||
|
||||
/// <remarks/>
|
||||
@object,
|
||||
|
||||
/// <remarks/>
|
||||
source,
|
||||
|
||||
/// <remarks/>
|
||||
sourceC,
|
||||
|
||||
/// <remarks/>
|
||||
sourceCpp,
|
||||
|
||||
/// <remarks/>
|
||||
sourceAsm,
|
||||
|
||||
/// <remarks/>
|
||||
linkerScript,
|
||||
|
||||
/// <remarks/>
|
||||
utility,
|
||||
|
||||
/// <remarks/>
|
||||
image,
|
||||
|
||||
/// <remarks/>
|
||||
other,
|
||||
}
|
||||
}
|
|
@ -0,0 +1,128 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
/// <remarks/>
|
||||
[Serializable( )]
|
||||
public partial class FileType {
|
||||
|
||||
private string conditionField;
|
||||
|
||||
private FileCategoryType categoryField;
|
||||
|
||||
private FileAttributeType attrField;
|
||||
|
||||
private bool attrFieldSpecified;
|
||||
|
||||
private string selectField;
|
||||
|
||||
private string nameField;
|
||||
|
||||
private string copyField;
|
||||
|
||||
private string versionField;
|
||||
|
||||
private string srcField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string condition {
|
||||
get {
|
||||
return conditionField;
|
||||
}
|
||||
set {
|
||||
conditionField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public FileCategoryType category {
|
||||
get {
|
||||
return categoryField;
|
||||
}
|
||||
set {
|
||||
categoryField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public FileAttributeType attr {
|
||||
get {
|
||||
return attrField;
|
||||
}
|
||||
set {
|
||||
attrField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool attrSpecified {
|
||||
get {
|
||||
return attrFieldSpecified;
|
||||
}
|
||||
set {
|
||||
attrFieldSpecified = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string select {
|
||||
get {
|
||||
return selectField;
|
||||
}
|
||||
set {
|
||||
selectField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string name {
|
||||
get {
|
||||
return nameField;
|
||||
}
|
||||
set {
|
||||
nameField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string copy {
|
||||
get {
|
||||
return copyField;
|
||||
}
|
||||
set {
|
||||
copyField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string version {
|
||||
get {
|
||||
return versionField;
|
||||
}
|
||||
set {
|
||||
versionField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string src {
|
||||
get {
|
||||
return srcField;
|
||||
}
|
||||
set {
|
||||
srcField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,374 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class FilterType {
|
||||
|
||||
private string dfamilyField;
|
||||
|
||||
private string dsubFamilyField;
|
||||
|
||||
private string dvariantField;
|
||||
|
||||
private DeviceVendorEnum dvendorField;
|
||||
|
||||
private bool dvendorFieldSpecified;
|
||||
|
||||
private string dnameField;
|
||||
|
||||
private DcoreEnum dcoreField;
|
||||
|
||||
private bool dcoreFieldSpecified;
|
||||
|
||||
private DfpuEnum dfpuField;
|
||||
|
||||
private bool dfpuFieldSpecified;
|
||||
|
||||
private DmpuEnum dmpuField;
|
||||
|
||||
private bool dmpuFieldSpecified;
|
||||
|
||||
private DendianEnum dendianField;
|
||||
|
||||
private bool dendianFieldSpecified;
|
||||
|
||||
private string pnameField;
|
||||
|
||||
private string cvendorField;
|
||||
|
||||
private string cbundleField;
|
||||
|
||||
private string cclassField;
|
||||
|
||||
private string cgroupField;
|
||||
|
||||
private string csubField;
|
||||
|
||||
private string cvariantField;
|
||||
|
||||
private string cversionField;
|
||||
|
||||
private string capiversionField;
|
||||
|
||||
private CompilerEnumType tcompilerField;
|
||||
|
||||
private bool tcompilerFieldSpecified;
|
||||
|
||||
private CompilerOutputType toutputField;
|
||||
|
||||
private bool toutputFieldSpecified;
|
||||
|
||||
private string conditionField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Dfamily {
|
||||
get {
|
||||
return dfamilyField;
|
||||
}
|
||||
set {
|
||||
dfamilyField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string DsubFamily {
|
||||
get {
|
||||
return dsubFamilyField;
|
||||
}
|
||||
set {
|
||||
dsubFamilyField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Dvariant {
|
||||
get {
|
||||
return dvariantField;
|
||||
}
|
||||
set {
|
||||
dvariantField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public DeviceVendorEnum Dvendor {
|
||||
get {
|
||||
return dvendorField;
|
||||
}
|
||||
set {
|
||||
dvendorField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool DvendorSpecified {
|
||||
get {
|
||||
return dvendorFieldSpecified;
|
||||
}
|
||||
set {
|
||||
dvendorFieldSpecified = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Dname {
|
||||
get {
|
||||
return dnameField;
|
||||
}
|
||||
set {
|
||||
dnameField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public DcoreEnum Dcore {
|
||||
get {
|
||||
return dcoreField;
|
||||
}
|
||||
set {
|
||||
dcoreField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool DcoreSpecified {
|
||||
get {
|
||||
return dcoreFieldSpecified;
|
||||
}
|
||||
set {
|
||||
dcoreFieldSpecified = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public DfpuEnum Dfpu {
|
||||
get {
|
||||
return dfpuField;
|
||||
}
|
||||
set {
|
||||
dfpuField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool DfpuSpecified {
|
||||
get {
|
||||
return dfpuFieldSpecified;
|
||||
}
|
||||
set {
|
||||
dfpuFieldSpecified = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public DmpuEnum Dmpu {
|
||||
get {
|
||||
return dmpuField;
|
||||
}
|
||||
set {
|
||||
dmpuField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool DmpuSpecified {
|
||||
get {
|
||||
return dmpuFieldSpecified;
|
||||
}
|
||||
set {
|
||||
dmpuFieldSpecified = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public DendianEnum Dendian {
|
||||
get {
|
||||
return dendianField;
|
||||
}
|
||||
set {
|
||||
dendianField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool DendianSpecified {
|
||||
get {
|
||||
return dendianFieldSpecified;
|
||||
}
|
||||
set {
|
||||
dendianFieldSpecified = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Pname {
|
||||
get {
|
||||
return pnameField;
|
||||
}
|
||||
set {
|
||||
pnameField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public CompilerEnumType Tcompiler {
|
||||
get {
|
||||
return tcompilerField;
|
||||
}
|
||||
set {
|
||||
tcompilerField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool TcompilerSpecified {
|
||||
get {
|
||||
return tcompilerFieldSpecified;
|
||||
}
|
||||
set {
|
||||
tcompilerFieldSpecified = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public CompilerOutputType Toutput {
|
||||
get {
|
||||
return toutputField;
|
||||
}
|
||||
set {
|
||||
toutputField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool ToutputSpecified {
|
||||
get {
|
||||
return toutputFieldSpecified;
|
||||
}
|
||||
set {
|
||||
toutputFieldSpecified = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string condition {
|
||||
get {
|
||||
return conditionField;
|
||||
}
|
||||
set {
|
||||
conditionField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
using System.Xml.Linq;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
public class Generator
|
||||
{
|
||||
internal static Generator ParseFrom( XElement arg )
|
||||
{
|
||||
return new Generator( );
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class GeneratorCommandArgumentType {
|
||||
|
||||
private string switchField;
|
||||
|
||||
private string valueField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string @switch {
|
||||
get {
|
||||
return switchField;
|
||||
}
|
||||
set {
|
||||
switchField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlText( )]
|
||||
public string Value {
|
||||
get {
|
||||
return valueField;
|
||||
}
|
||||
set {
|
||||
valueField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class GeneratorDeviceSelectType {
|
||||
|
||||
private DeviceVendorEnum dvendorField;
|
||||
|
||||
private string dnameField;
|
||||
|
||||
private string dvariantField;
|
||||
|
||||
private string pnameField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public DeviceVendorEnum Dvendor {
|
||||
get {
|
||||
return dvendorField;
|
||||
}
|
||||
set {
|
||||
dvendorField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Dname {
|
||||
get {
|
||||
return dnameField;
|
||||
}
|
||||
set {
|
||||
dnameField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Dvariant {
|
||||
get {
|
||||
return dvariantField;
|
||||
}
|
||||
set {
|
||||
dvariantField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Pname {
|
||||
get {
|
||||
return pnameField;
|
||||
}
|
||||
set {
|
||||
pnameField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class GeneratorFileType {
|
||||
|
||||
private string conditionField;
|
||||
|
||||
private string categoryField;
|
||||
|
||||
private string nameField;
|
||||
|
||||
private string versionField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string condition {
|
||||
get {
|
||||
return conditionField;
|
||||
}
|
||||
set {
|
||||
conditionField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string category {
|
||||
get {
|
||||
return categoryField;
|
||||
}
|
||||
set {
|
||||
categoryField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string name {
|
||||
get {
|
||||
return nameField;
|
||||
}
|
||||
set {
|
||||
nameField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string version {
|
||||
get {
|
||||
return versionField;
|
||||
}
|
||||
set {
|
||||
versionField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,173 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class GeneratorType {
|
||||
|
||||
private string descriptionField;
|
||||
|
||||
private GeneratorDeviceSelectType selectField;
|
||||
|
||||
private string commandField;
|
||||
|
||||
private string workingDirField;
|
||||
|
||||
private GeneratorCommandArgumentType[] argumentsField;
|
||||
|
||||
private GpdscFileType gpdscField;
|
||||
|
||||
private FileType[] project_filesField;
|
||||
|
||||
private GeneratorFileType[] filesField;
|
||||
|
||||
private GeneratorTypeExtensions extensionsField;
|
||||
|
||||
private string idField;
|
||||
|
||||
private string gvendorField;
|
||||
|
||||
private string gtoolField;
|
||||
|
||||
private string gversionField;
|
||||
|
||||
/// <remarks/>
|
||||
public string description {
|
||||
get {
|
||||
return descriptionField;
|
||||
}
|
||||
set {
|
||||
descriptionField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public GeneratorDeviceSelectType select {
|
||||
get {
|
||||
return selectField;
|
||||
}
|
||||
set {
|
||||
selectField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public string command {
|
||||
get {
|
||||
return commandField;
|
||||
}
|
||||
set {
|
||||
commandField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public string workingDir {
|
||||
get {
|
||||
return workingDirField;
|
||||
}
|
||||
set {
|
||||
workingDirField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlArrayItem( "argument", IsNullable=false)]
|
||||
public GeneratorCommandArgumentType[] arguments {
|
||||
get {
|
||||
return argumentsField;
|
||||
}
|
||||
set {
|
||||
argumentsField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public GpdscFileType gpdsc {
|
||||
get {
|
||||
return gpdscField;
|
||||
}
|
||||
set {
|
||||
gpdscField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlArrayItem( "file", IsNullable=false)]
|
||||
public FileType[] project_files {
|
||||
get {
|
||||
return project_filesField;
|
||||
}
|
||||
set {
|
||||
project_filesField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlArrayItem( "file", IsNullable=false)]
|
||||
public GeneratorFileType[] files {
|
||||
get {
|
||||
return filesField;
|
||||
}
|
||||
set {
|
||||
filesField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public GeneratorTypeExtensions extensions {
|
||||
get {
|
||||
return extensionsField;
|
||||
}
|
||||
set {
|
||||
extensionsField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string id {
|
||||
get {
|
||||
return idField;
|
||||
}
|
||||
set {
|
||||
idField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Gvendor {
|
||||
get {
|
||||
return gvendorField;
|
||||
}
|
||||
set {
|
||||
gvendorField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Gtool {
|
||||
get {
|
||||
return gtoolField;
|
||||
}
|
||||
set {
|
||||
gtoolField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Gversion {
|
||||
get {
|
||||
return gversionField;
|
||||
}
|
||||
set {
|
||||
gversionField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
using System;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
[XmlType( AnonymousType=true)]
|
||||
public partial class GeneratorTypeExtensions {
|
||||
|
||||
private System.Xml.XmlElement[] anyField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAnyElement( )]
|
||||
public System.Xml.XmlElement[] Any {
|
||||
get {
|
||||
return anyField;
|
||||
}
|
||||
set {
|
||||
anyField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class GpdscFileType {
|
||||
|
||||
private string nameField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string name {
|
||||
get {
|
||||
return nameField;
|
||||
}
|
||||
set {
|
||||
nameField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
using System;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
[XmlType( IncludeInSchema=false)]
|
||||
public enum ItemsChoiceType {
|
||||
|
||||
/// <remarks/>
|
||||
accept,
|
||||
|
||||
/// <remarks/>
|
||||
deny,
|
||||
|
||||
/// <remarks/>
|
||||
require,
|
||||
}
|
||||
}
|
|
@ -0,0 +1,88 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class JtagType {
|
||||
|
||||
private string tapindexField;
|
||||
|
||||
private string idcodeField;
|
||||
|
||||
private string targetselField;
|
||||
|
||||
private uint irlenField;
|
||||
|
||||
private bool irlenFieldSpecified;
|
||||
|
||||
private XmlAttribute[] anyAttrField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string tapindex {
|
||||
get {
|
||||
return tapindexField;
|
||||
}
|
||||
set {
|
||||
tapindexField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string idcode {
|
||||
get {
|
||||
return idcodeField;
|
||||
}
|
||||
set {
|
||||
idcodeField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string targetsel {
|
||||
get {
|
||||
return targetselField;
|
||||
}
|
||||
set {
|
||||
targetselField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public uint irlen {
|
||||
get {
|
||||
return irlenField;
|
||||
}
|
||||
set {
|
||||
irlenField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool irlenSpecified {
|
||||
get {
|
||||
return irlenFieldSpecified;
|
||||
}
|
||||
set {
|
||||
irlenFieldSpecified = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAnyAttribute( )]
|
||||
public XmlAttribute[ ] AnyAttr {
|
||||
get {
|
||||
return anyAttrField;
|
||||
}
|
||||
set {
|
||||
anyAttrField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
using System.Xml.Linq;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
public class Keyword
|
||||
{
|
||||
internal static string ParseFrom( XElement keyword )
|
||||
{
|
||||
return keyword.Value;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,111 @@
|
|||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class MemoryType {
|
||||
|
||||
private string pnameField;
|
||||
|
||||
private MemoryIDTypeEnum idField;
|
||||
|
||||
private string startField;
|
||||
|
||||
private string sizeField;
|
||||
|
||||
private bool initField;
|
||||
|
||||
private bool defaultField;
|
||||
|
||||
private bool startupField;
|
||||
|
||||
public MemoryType() {
|
||||
initField = false;
|
||||
defaultField = false;
|
||||
startupField = false;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Pname {
|
||||
get {
|
||||
return pnameField;
|
||||
}
|
||||
set {
|
||||
pnameField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public MemoryIDTypeEnum id {
|
||||
get {
|
||||
return idField;
|
||||
}
|
||||
set {
|
||||
idField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string start {
|
||||
get {
|
||||
return startField;
|
||||
}
|
||||
set {
|
||||
startField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string size {
|
||||
get {
|
||||
return sizeField;
|
||||
}
|
||||
set {
|
||||
sizeField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
[DefaultValue( false)]
|
||||
public bool init {
|
||||
get {
|
||||
return initField;
|
||||
}
|
||||
set {
|
||||
initField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
[DefaultValue( false)]
|
||||
public bool @default {
|
||||
get {
|
||||
return defaultField;
|
||||
}
|
||||
set {
|
||||
defaultField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
[DefaultValue( false)]
|
||||
public bool startup {
|
||||
get {
|
||||
return startupField;
|
||||
}
|
||||
set {
|
||||
startupField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,71 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
internal static class ElementNames
|
||||
{
|
||||
internal static XName Package = XName.Get("package");
|
||||
|
||||
internal static XName Taxonomy = XName.Get("taxonomy");
|
||||
internal static XName Vendor = XName.Get("vendor");
|
||||
internal static XName Name = XName.Get("name");
|
||||
internal static XName Description = XName.Get("description");
|
||||
internal static XName Url = XName.Get("url");
|
||||
internal static XName SupportContact = XName.Get("supportContact");
|
||||
internal static XName License = XName.Get("license");
|
||||
|
||||
internal static XName Keywords = XName.Get("keywords");
|
||||
internal static XName Keyword = XName.Get("keyword");
|
||||
|
||||
internal static XName Releases = XName.Get("releases");
|
||||
internal static XName Release = XName.Get("release");
|
||||
|
||||
internal static XName Generators = XName.Get("generators");
|
||||
internal static XName Generator = XName.Get("generator");
|
||||
|
||||
internal static XName Devices = XName.Get("devices");
|
||||
internal static XName Family = XName.Get("family");
|
||||
|
||||
internal static XName Boards = XName.Get("boards");
|
||||
internal static XName Board = XName.Get("board");
|
||||
|
||||
internal static XName Apis = XName.Get("apis");
|
||||
internal static XName Api = XName.Get("api");
|
||||
|
||||
internal static XName Conditions = XName.Get("conditions");
|
||||
internal static XName Condition = XName.Get("condition");
|
||||
|
||||
internal static XName Examples = XName.Get("examples");
|
||||
internal static XName Example = XName.Get("example");
|
||||
|
||||
internal static XName Components = XName.Get("components");
|
||||
internal static XName Component = XName.Get("component");
|
||||
|
||||
internal static XName Files = XName.Get("files");
|
||||
internal static XName File = XName.Get("file");
|
||||
}
|
||||
|
||||
internal static class AttributeNames
|
||||
{
|
||||
internal static XName Description = XName.Get("description");
|
||||
internal static XName ComponentGroup = XName.Get("Cgroup");
|
||||
internal static XName ComponentClass = XName.Get("Cclass");
|
||||
internal static XName Version = XName.Get("version");
|
||||
internal static XName Date = XName.Get("date");
|
||||
internal static XName ComponentApiVersion = XName.Get( "CapiVersion");
|
||||
internal static XName Doc = XName.Get("doc");
|
||||
internal static XName Generator = XName.Get("generator");
|
||||
internal static XName Name = XName.Get("name");
|
||||
internal static XName Category = XName.Get("category");
|
||||
internal static XName Attribute = XName.Get("attr");
|
||||
internal static XName Condition = XName.Get("condition");
|
||||
internal static XName Select = XName.Get("select");
|
||||
internal static XName SourcePath = XName.Get("src");
|
||||
internal static XName Exclusive = XName.Get("exclusive");
|
||||
}
|
||||
}
|
|
@ -1,100 +1,119 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml.Linq;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
// Unfortunately the officially published schema has circular group definitions
|
||||
// that XSD.exe can't handle. Furthermore, some of the officially posted and
|
||||
// "validated" PDSC files don't conform to the schema. In particular, they
|
||||
// have the following issues:
|
||||
// 1) They use DVendor attributes with values that don't match the case
|
||||
// of the official schema XSD and documentation.
|
||||
// 2) They have feature[@n] using a scaled integer notation (i.e. "512K")
|
||||
// 3) Date values are occasionally missing leading 0 digits to match official
|
||||
// XSD:date types. (i.e. "2015-12-1" should be "2015-12-01")
|
||||
//
|
||||
// This class and related classes work around these issues by Manually handling
|
||||
// the deserialization and processing the offending nodes more liberally.
|
||||
public class Package
|
||||
[Serializable( )]
|
||||
[XmlType( AnonymousType=true )]
|
||||
[XmlRoot( Namespace="", ElementName ="package", IsNullable=true)]
|
||||
public partial class Package
|
||||
{
|
||||
public Package( )
|
||||
{
|
||||
Releases = new List<Release>();
|
||||
Keywords = new List<string>();
|
||||
Generators = new List<Generator>();
|
||||
Devices = new List<DeviceFamily>();
|
||||
Boards = new List<Board>();
|
||||
Taxonomy = new List<TaxonomyDescription>();
|
||||
Apis = new List<Api>();
|
||||
Conditions = new List<Condition>();
|
||||
Examples = new List<Example>();
|
||||
Components = new List<Component>();
|
||||
}
|
||||
|
||||
public SemanticVersion SchemaVersion { get; set; }
|
||||
public string Vendor { get; set; }
|
||||
[XmlElement("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "vendor" )]
|
||||
public string Vendor { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "description" )]
|
||||
public string Description { get; set; }
|
||||
public Uri Url {get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "url", DataType ="anyURI")]
|
||||
public string Url { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "supportContact" )]
|
||||
public string SupportContact { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "license" )]
|
||||
public string License { get; set; }
|
||||
|
||||
public IList<Release> Releases { get; }
|
||||
public IList<string> Keywords { get; }
|
||||
public IList<Generator> Generators { get; }
|
||||
public IList<DeviceFamily> Devices { get; }
|
||||
public IList<Board> Boards { get; }
|
||||
public IList<TaxonomyDescription> Taxonomy { get; }
|
||||
public IList<Api> Apis { get; }
|
||||
public IList<Condition> Conditions { get; }
|
||||
public IList<Example> Examples { get; }
|
||||
public IList<Component> Components { get; }
|
||||
/// <remarks/>
|
||||
[XmlArrayItem( "release", IsNullable=false)]
|
||||
[XmlArray( "releases" )]
|
||||
public Release[] Releases { get; set; }
|
||||
|
||||
public static async Task<Package> LoadFromAsync( string uri )
|
||||
/// <remarks/>
|
||||
[XmlArrayItem( "keyword", IsNullable=false)]
|
||||
[XmlArray( "keywords" )]
|
||||
public string[] Keywords { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlArrayItem( "generator", IsNullable=false)]
|
||||
[XmlArray( "generators" )]
|
||||
public GeneratorType[] Generators { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlArrayItem( "family", IsNullable=false)]
|
||||
[XmlArray( "devices" )]
|
||||
public Family[] Devices { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlArrayItem( "board", IsNullable=false)]
|
||||
[XmlArray( "boards" )]
|
||||
public BoardType[] Boards { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlArrayItem( "description", IsNullable=false)]
|
||||
[XmlArray( "taxonomy" )]
|
||||
public TaxonomyDescriptionType[] Taxonomy { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlArrayItem( "api", IsNullable=false)]
|
||||
[XmlArray( "apis" )]
|
||||
public ApiType[] Apis { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlArrayItem( "condition", IsNullable=false)]
|
||||
[XmlArray( "conditions" )]
|
||||
public ConditionType[] Conditions { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlArrayItem( "example", IsNullable=false)]
|
||||
[XmlArray( "examples" )]
|
||||
public ExampleType[] Examples { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlArrayItem( "bundle", typeof( Bundle ) )]
|
||||
[XmlArrayItem( "component", typeof( Component ) )]
|
||||
[XmlArray( "components", IsNullable = false )]
|
||||
public ComponenOrBundleGroup[] Components { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "schemaVersion", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string SchemaVersion { get; set; }
|
||||
|
||||
public static async Task<Package> ParseFromPathAsync( string path )
|
||||
{
|
||||
if( string.IsNullOrWhiteSpace( uri ) )
|
||||
throw new ArgumentException("Path is null or empty", nameof( uri ) );
|
||||
|
||||
var doc = await Task.Run( ()=> XDocument.Load( uri ) );
|
||||
return await ParseFromAsync( doc );
|
||||
}
|
||||
|
||||
public static async Task<Package> ParseFromAsync( string xml )
|
||||
{
|
||||
var doc = await Task.Run( ( ) => XDocument.Parse( xml ) );
|
||||
return await ParseFromAsync( doc );
|
||||
}
|
||||
|
||||
public static Task<Package> ParseFromAsync( XDocument doc )
|
||||
{
|
||||
return Task.Run( ( ) =>
|
||||
using( var rdr = File.OpenText( path ) )
|
||||
{
|
||||
var retVal = new Package( );
|
||||
var pkgElement = doc.Element( ElementNames.Package );
|
||||
return await ParseAsync( rdr );
|
||||
}
|
||||
}
|
||||
|
||||
retVal.Name = pkgElement.Element( ElementNames.Name ).Value;
|
||||
retVal.Vendor = pkgElement.Element( ElementNames.Vendor ).Value;
|
||||
retVal.Description = pkgElement.Element( ElementNames.Description ).Value;
|
||||
retVal.Url = new Uri( pkgElement.Element( ElementNames.Url ).Value );
|
||||
retVal.SupportContact = pkgElement.Element( ElementNames.SupportContact )?.Value;
|
||||
retVal.License = pkgElement.Element( ElementNames.License )?.Value;
|
||||
public static async Task<Package> ParseAsync( string xmlContent )
|
||||
{
|
||||
using( var rdr = new StringReader( xmlContent ) )
|
||||
{
|
||||
return await ParseAsync( rdr );
|
||||
}
|
||||
}
|
||||
|
||||
pkgElement.Element( ElementNames.Releases ).ParseCollectionElements( ElementNames.Release , retVal.Releases , Release.ParseFrom );
|
||||
pkgElement.Element( ElementNames.Keywords ).ParseCollectionElements( ElementNames.Keyword , retVal.Keywords , Keyword.ParseFrom );
|
||||
pkgElement.Element( ElementNames.Generators ).ParseCollectionElements( ElementNames.Generator , retVal.Generators, Generator.ParseFrom );
|
||||
pkgElement.Element( ElementNames.Devices ).ParseCollectionElements( ElementNames.Family , retVal.Devices , DeviceFamily.ParseFrom );
|
||||
pkgElement.Element( ElementNames.Boards ).ParseCollectionElements( ElementNames.Board , retVal.Boards , Board.ParseFrom );
|
||||
pkgElement.Element( ElementNames.Taxonomy ).ParseCollectionElements( ElementNames.Description, retVal.Taxonomy , TaxonomyDescription.ParseFrom );
|
||||
pkgElement.Element( ElementNames.Apis ).ParseCollectionElements( ElementNames.Api , retVal.Apis , Api.ParseFrom );
|
||||
pkgElement.Element( ElementNames.Conditions ).ParseCollectionElements( ElementNames.Condition , retVal.Conditions, Condition.ParseFrom );
|
||||
pkgElement.Element( ElementNames.Examples ).ParseCollectionElements( ElementNames.Example , retVal.Examples , Example.ParseFrom );
|
||||
pkgElement.Element( ElementNames.Components ).ParseCollectionElements( ElementNames.Component , retVal.Components, Component.ParseFrom );
|
||||
// TODO: figure out plan to deal with multiple child element types in components element (component, bundle)
|
||||
|
||||
return retVal;
|
||||
} );
|
||||
public static async Task<Package> ParseAsync( TextReader textReader )
|
||||
{
|
||||
var ser = new XmlSerializer( typeof( Package ) );
|
||||
// force ignoring of comments as they are commonly placed in
|
||||
// locations that the serializer can't handle
|
||||
using( var rdr = XmlReader.Create( textReader, new XmlReaderSettings( ) { IgnoreComments = true } ) )
|
||||
{
|
||||
return await Task.Run( ( ) => ( Package )ser.Deserialize( rdr ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -13,29 +13,18 @@ namespace CMSIS.Pack.PackDescription
|
|||
select int.Parse( value );
|
||||
}
|
||||
|
||||
// Official W3C XSD specs require 2 digits for the month and day
|
||||
// However, many PDSC files in the wild only have one, thus this
|
||||
// parser handles the incorrectly formed dates
|
||||
internal static Parser<DateTime> DateTime = from year in Integer( 4, 4 )
|
||||
from sep in Parse.Char( '-' )
|
||||
from month in Integer( 1, 2 )
|
||||
from sep2 in Parse.Char( '-' )
|
||||
from day in Integer( 1, 2 )
|
||||
select new DateTime( year, month, day );
|
||||
internal static Parser<decimal> Double = from value in Parse.Decimal
|
||||
select decimal.Parse( value, CultureInfo.CurrentCulture );
|
||||
|
||||
internal static Parser<double> Double = from value in Parse.Decimal
|
||||
select double.Parse( value, CultureInfo.CurrentCulture );
|
||||
|
||||
internal static Parser<double> ScaledInteger = from value in Parse.Digit.AtLeastOnce( ).Text( )
|
||||
from scale in ScaledIntMultiplier
|
||||
select ( double )int.Parse( value ) * scale;
|
||||
internal static Parser<decimal> ScaledDecimal = from signMul in Parse.Char('-').Return(-1).Or( Parse.Return( 1 ))
|
||||
from value in Parse.Digit.AtLeastOnce( ).Text( )
|
||||
from scale in ScaledIntMultiplier
|
||||
select signMul * decimal.Parse( value ) * scale;
|
||||
|
||||
internal static Parser<int> ScaledIntMultiplier = Parse.Chars( 'k', 'K' ).Return( 1024 )
|
||||
.Or( Parse.Chars( 'm', 'M' ).Return( 1024 * 1024 ) )
|
||||
.Or( Parse.Return( 1 ) );
|
||||
|
||||
internal static Parser<double> NonConformantDecimal = ScaledInteger.Or( Double );
|
||||
|
||||
internal static bool IsIntegerScaleChar( char arg )
|
||||
{
|
||||
return arg == 'k'
|
||||
|
@ -43,6 +32,5 @@ namespace CMSIS.Pack.PackDescription
|
|||
|| arg == 'm'
|
||||
|| arg == 'M';
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,166 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class ProcessorType {
|
||||
|
||||
private string pnameField;
|
||||
|
||||
private DcoreEnum dcoreField;
|
||||
|
||||
private bool dcoreFieldSpecified;
|
||||
|
||||
private DfpuEnum dfpuField;
|
||||
|
||||
private bool dfpuFieldSpecified;
|
||||
|
||||
private DmpuEnum dmpuField;
|
||||
|
||||
private bool dmpuFieldSpecified;
|
||||
|
||||
private DendianEnum dendianField;
|
||||
|
||||
private bool dendianFieldSpecified;
|
||||
|
||||
private uint dclockField;
|
||||
|
||||
private bool dclockFieldSpecified;
|
||||
|
||||
private string dcoreVersionField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Pname {
|
||||
get {
|
||||
return pnameField;
|
||||
}
|
||||
set {
|
||||
pnameField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public DcoreEnum Dcore {
|
||||
get {
|
||||
return dcoreField;
|
||||
}
|
||||
set {
|
||||
dcoreField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool DcoreSpecified {
|
||||
get {
|
||||
return dcoreFieldSpecified;
|
||||
}
|
||||
set {
|
||||
dcoreFieldSpecified = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public DfpuEnum Dfpu {
|
||||
get {
|
||||
return dfpuField;
|
||||
}
|
||||
set {
|
||||
dfpuField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool DfpuSpecified {
|
||||
get {
|
||||
return dfpuFieldSpecified;
|
||||
}
|
||||
set {
|
||||
dfpuFieldSpecified = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public DmpuEnum Dmpu {
|
||||
get {
|
||||
return dmpuField;
|
||||
}
|
||||
set {
|
||||
dmpuField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool DmpuSpecified {
|
||||
get {
|
||||
return dmpuFieldSpecified;
|
||||
}
|
||||
set {
|
||||
dmpuFieldSpecified = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public DendianEnum Dendian {
|
||||
get {
|
||||
return dendianField;
|
||||
}
|
||||
set {
|
||||
dendianField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool DendianSpecified {
|
||||
get {
|
||||
return dendianFieldSpecified;
|
||||
}
|
||||
set {
|
||||
dendianFieldSpecified = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public uint Dclock {
|
||||
get {
|
||||
return dclockField;
|
||||
}
|
||||
set {
|
||||
dclockField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool DclockSpecified {
|
||||
get {
|
||||
return dclockFieldSpecified;
|
||||
}
|
||||
set {
|
||||
dclockFieldSpecified = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string DcoreVersion {
|
||||
get {
|
||||
return dcoreVersionField;
|
||||
}
|
||||
set {
|
||||
dcoreVersionField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,27 +1,69 @@
|
|||
using System;
|
||||
using System.Xml.Linq;
|
||||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
using Sprache;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
public class Release
|
||||
/// <remarks/>
|
||||
[Serializable( )]
|
||||
public partial class Release
|
||||
{
|
||||
public SemanticVersion Version { get; set; }
|
||||
public string Description { get; set; }
|
||||
public DateTime Date { get; set; }
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "version", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Version { get; set; }
|
||||
|
||||
[XmlIgnore]
|
||||
public DateTime? Date { get; set; }
|
||||
|
||||
public static Release ParseFrom( XElement release )
|
||||
/// <remarks>
|
||||
/// Some officially validated published PDSC files contain dates that
|
||||
/// do not conform to a proper XML specified DateTime string so this
|
||||
/// gets around it with a custom parser. The actual value is stored in
|
||||
/// the <see cref="Date"/> property.
|
||||
/// </remarks>
|
||||
[XmlAttribute("date", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string RawDateString
|
||||
{
|
||||
var retVal = new Release()
|
||||
{ Version = SemanticVersion.Parse( release.Attribute( AttributeNames.Version ).Value )
|
||||
, Description = release.Value
|
||||
};
|
||||
get
|
||||
{
|
||||
return this.Date?.ToString("yyyy-MM-dd");
|
||||
}
|
||||
|
||||
var dateString = release.Attribute( AttributeNames.Date )?.Value;
|
||||
if( !string.IsNullOrWhiteSpace( dateString ) )
|
||||
retVal.Date = Parsers.DateTime.Parse( dateString );
|
||||
|
||||
return retVal;
|
||||
set
|
||||
{
|
||||
Date = DateTime.Parse( value );
|
||||
}
|
||||
}
|
||||
|
||||
[XmlIgnore]
|
||||
public DateTime? Deprecated { get; set; }
|
||||
|
||||
/// <remarks>
|
||||
/// Some officially validated published PDSC files contain dates that
|
||||
/// do not conform to a proper XML specified DateTime string so this
|
||||
/// gets around it with a custom parser. The actual value is stored in
|
||||
/// the <see cref="Date"/> property.
|
||||
/// </remarks>
|
||||
[XmlAttribute( "deprecated", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string RawDeprecatedString
|
||||
{
|
||||
get
|
||||
{
|
||||
return Deprecated?.ToString( "yyyy-MM-dd");
|
||||
}
|
||||
set
|
||||
{
|
||||
Deprecated = DateTime.Parse( value );
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( "replacement", Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Replacement { get; set; }
|
||||
|
||||
/// <remarks/>
|
||||
[XmlText]
|
||||
public string Value { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,75 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class SequenceBlockType {
|
||||
|
||||
private bool atomicField;
|
||||
|
||||
private bool atomicFieldSpecified;
|
||||
|
||||
private string infoField;
|
||||
|
||||
private XmlAttribute[] anyAttrField;
|
||||
|
||||
private string valueField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public bool atomic {
|
||||
get {
|
||||
return atomicField;
|
||||
}
|
||||
set {
|
||||
atomicField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool atomicSpecified {
|
||||
get {
|
||||
return atomicFieldSpecified;
|
||||
}
|
||||
set {
|
||||
atomicFieldSpecified = 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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlText( )]
|
||||
public string Value {
|
||||
get {
|
||||
return valueField;
|
||||
}
|
||||
set {
|
||||
valueField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,114 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class SequenceControlType {
|
||||
|
||||
private SequenceBlockType[] blockField;
|
||||
|
||||
private SequenceControlType[] controlField;
|
||||
|
||||
private string ifField;
|
||||
|
||||
private string whileField;
|
||||
|
||||
private uint timeoutField;
|
||||
|
||||
private bool timeoutFieldSpecified;
|
||||
|
||||
private string infoField;
|
||||
|
||||
private XmlAttribute[] anyAttrField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "block")]
|
||||
public SequenceBlockType[] block {
|
||||
get {
|
||||
return blockField;
|
||||
}
|
||||
set {
|
||||
blockField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "control")]
|
||||
public SequenceControlType[] control {
|
||||
get {
|
||||
return controlField;
|
||||
}
|
||||
set {
|
||||
controlField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string @if {
|
||||
get {
|
||||
return ifField;
|
||||
}
|
||||
set {
|
||||
ifField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string @while {
|
||||
get {
|
||||
return whileField;
|
||||
}
|
||||
set {
|
||||
whileField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public uint timeout {
|
||||
get {
|
||||
return timeoutField;
|
||||
}
|
||||
set {
|
||||
timeoutField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool timeoutSpecified {
|
||||
get {
|
||||
return timeoutFieldSpecified;
|
||||
}
|
||||
set {
|
||||
timeoutFieldSpecified = 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,114 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class SequenceType {
|
||||
|
||||
private SequenceBlockType[] blockField;
|
||||
|
||||
private SequenceControlType[] controlField;
|
||||
|
||||
private string nameField;
|
||||
|
||||
private string pnameField;
|
||||
|
||||
private bool disableField;
|
||||
|
||||
private bool disableFieldSpecified;
|
||||
|
||||
private string infoField;
|
||||
|
||||
private XmlAttribute[] anyAttrField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "block")]
|
||||
public SequenceBlockType[] block {
|
||||
get {
|
||||
return blockField;
|
||||
}
|
||||
set {
|
||||
blockField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "control")]
|
||||
public SequenceControlType[] control {
|
||||
get {
|
||||
return controlField;
|
||||
}
|
||||
set {
|
||||
controlField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string name {
|
||||
get {
|
||||
return nameField;
|
||||
}
|
||||
set {
|
||||
nameField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Pname {
|
||||
get {
|
||||
return pnameField;
|
||||
}
|
||||
set {
|
||||
pnameField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public bool disable {
|
||||
get {
|
||||
return disableField;
|
||||
}
|
||||
set {
|
||||
disableField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlIgnore( )]
|
||||
public bool disableSpecified {
|
||||
get {
|
||||
return disableFieldSpecified;
|
||||
}
|
||||
set {
|
||||
disableFieldSpecified = 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,36 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class SequencesType {
|
||||
|
||||
private SequenceType[] sequenceField;
|
||||
|
||||
private XmlAttribute[] anyAttrField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "sequence")]
|
||||
public SequenceType[] sequence {
|
||||
get {
|
||||
return sequenceField;
|
||||
}
|
||||
set {
|
||||
sequenceField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAnyAttribute( )]
|
||||
public XmlAttribute[ ] AnyAttr {
|
||||
get {
|
||||
return anyAttrField;
|
||||
}
|
||||
set {
|
||||
anyAttrField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class SerialWireType {
|
||||
|
||||
private XmlAttribute[] anyAttrField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAnyAttribute( )]
|
||||
public XmlAttribute[ ] AnyAttr {
|
||||
get {
|
||||
return anyAttrField;
|
||||
}
|
||||
set {
|
||||
anyAttrField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,218 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
[XmlType( AnonymousType=true)]
|
||||
public partial class SubFamily {
|
||||
|
||||
private ProcessorType[] processorField;
|
||||
|
||||
private DebugConfigType debugconfigField;
|
||||
|
||||
private CompileType[] compileField;
|
||||
|
||||
private MemoryType[] memoryField;
|
||||
|
||||
private AlgorithmType[] algorithmField;
|
||||
|
||||
private BookType[] bookField;
|
||||
|
||||
private DescriptionType[] descriptionField;
|
||||
|
||||
private DeviceFeatureType[] featureField;
|
||||
|
||||
private EnvironmentType[] environmentField;
|
||||
|
||||
private DebugPortType[] debugportField;
|
||||
|
||||
private DebugType[] debugField;
|
||||
|
||||
private TraceType[] traceField;
|
||||
|
||||
private DebugVarsType[] debugvarsField;
|
||||
|
||||
private SequencesType[] sequencesField;
|
||||
|
||||
private DeviceType[] deviceField;
|
||||
|
||||
private string dsubFamilyField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "processor")]
|
||||
public ProcessorType[] processor {
|
||||
get {
|
||||
return processorField;
|
||||
}
|
||||
set {
|
||||
processorField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public DebugConfigType debugconfig {
|
||||
get {
|
||||
return debugconfigField;
|
||||
}
|
||||
set {
|
||||
debugconfigField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "compile")]
|
||||
public CompileType[] compile {
|
||||
get {
|
||||
return compileField;
|
||||
}
|
||||
set {
|
||||
compileField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "memory")]
|
||||
public MemoryType[] memory {
|
||||
get {
|
||||
return memoryField;
|
||||
}
|
||||
set {
|
||||
memoryField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "algorithm")]
|
||||
public AlgorithmType[] algorithm {
|
||||
get {
|
||||
return algorithmField;
|
||||
}
|
||||
set {
|
||||
algorithmField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "book")]
|
||||
public BookType[] book {
|
||||
get {
|
||||
return bookField;
|
||||
}
|
||||
set {
|
||||
bookField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "description")]
|
||||
public DescriptionType[] description {
|
||||
get {
|
||||
return descriptionField;
|
||||
}
|
||||
set {
|
||||
descriptionField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "feature")]
|
||||
public DeviceFeatureType[] feature {
|
||||
get {
|
||||
return featureField;
|
||||
}
|
||||
set {
|
||||
featureField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "environment")]
|
||||
public EnvironmentType[] environment {
|
||||
get {
|
||||
return environmentField;
|
||||
}
|
||||
set {
|
||||
environmentField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "debugport")]
|
||||
public DebugPortType[] debugport {
|
||||
get {
|
||||
return debugportField;
|
||||
}
|
||||
set {
|
||||
debugportField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "debug")]
|
||||
public DebugType[] debug {
|
||||
get {
|
||||
return debugField;
|
||||
}
|
||||
set {
|
||||
debugField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "trace")]
|
||||
public TraceType[] trace {
|
||||
get {
|
||||
return traceField;
|
||||
}
|
||||
set {
|
||||
traceField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "debugvars")]
|
||||
public DebugVarsType[] debugvars {
|
||||
get {
|
||||
return debugvarsField;
|
||||
}
|
||||
set {
|
||||
debugvarsField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "sequences")]
|
||||
public SequencesType[] sequences {
|
||||
get {
|
||||
return sequencesField;
|
||||
}
|
||||
set {
|
||||
sequencesField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "device")]
|
||||
public DeviceType[] device {
|
||||
get {
|
||||
return deviceField;
|
||||
}
|
||||
set {
|
||||
deviceField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string DsubFamily {
|
||||
get {
|
||||
return dsubFamilyField;
|
||||
}
|
||||
set {
|
||||
dsubFamilyField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,49 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class SwdType {
|
||||
|
||||
private string idcodeField;
|
||||
|
||||
private string targetselField;
|
||||
|
||||
private XmlAttribute[] anyAttrField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string idcode {
|
||||
get {
|
||||
return idcodeField;
|
||||
}
|
||||
set {
|
||||
idcodeField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string targetsel {
|
||||
get {
|
||||
return targetselField;
|
||||
}
|
||||
set {
|
||||
targetselField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAnyAttribute( )]
|
||||
public XmlAttribute[ ] AnyAttr {
|
||||
get {
|
||||
return anyAttrField;
|
||||
}
|
||||
set {
|
||||
anyAttrField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
using System.Xml.Linq;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
public class TaxonomyDescription
|
||||
{
|
||||
public string ComponentClass { get; set; }
|
||||
public string ComponentGroup { get; set; }
|
||||
public string DocumentationPath { get; set; }
|
||||
public string Generator { get; set; }
|
||||
|
||||
internal static TaxonomyDescription ParseFrom( XElement element )
|
||||
{
|
||||
return new TaxonomyDescription()
|
||||
{ ComponentClass = element.Attribute( AttributeNames.ComponentClass ).Value
|
||||
, ComponentGroup = element.Attribute( AttributeNames.ComponentGroup )?.Value
|
||||
, DocumentationPath = element.Attribute( AttributeNames.Doc )?.Value
|
||||
, Generator = element.Attribute( AttributeNames.Generator )?.Value
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,75 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class TaxonomyDescriptionType {
|
||||
|
||||
private string cclassField;
|
||||
|
||||
private string cgroupField;
|
||||
|
||||
private string docField;
|
||||
|
||||
private string generatorField;
|
||||
|
||||
private string valueField;
|
||||
|
||||
/// <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 doc {
|
||||
get {
|
||||
return docField;
|
||||
}
|
||||
set {
|
||||
docField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string generator {
|
||||
get {
|
||||
return generatorField;
|
||||
}
|
||||
set {
|
||||
generatorField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlText( )]
|
||||
public string Value {
|
||||
get {
|
||||
return valueField;
|
||||
}
|
||||
set {
|
||||
valueField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,49 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class TraceBufferType {
|
||||
|
||||
private string startField;
|
||||
|
||||
private string sizeField;
|
||||
|
||||
private XmlAttribute[] anyAttrField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string start {
|
||||
get {
|
||||
return startField;
|
||||
}
|
||||
set {
|
||||
startField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string size {
|
||||
get {
|
||||
return sizeField;
|
||||
}
|
||||
set {
|
||||
sizeField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAnyAttribute( )]
|
||||
public XmlAttribute[ ] AnyAttr {
|
||||
get {
|
||||
return anyAttrField;
|
||||
}
|
||||
set {
|
||||
anyAttrField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class TracePortType {
|
||||
|
||||
private string widthField;
|
||||
|
||||
private XmlAttribute[] anyAttrField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string width {
|
||||
get {
|
||||
return widthField;
|
||||
}
|
||||
set {
|
||||
widthField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAnyAttribute( )]
|
||||
public XmlAttribute[ ] AnyAttr {
|
||||
get {
|
||||
return anyAttrField;
|
||||
}
|
||||
set {
|
||||
anyAttrField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,75 @@
|
|||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
[Serializable( )]
|
||||
public partial class TraceType {
|
||||
|
||||
private SerialWireType[] serialwireField;
|
||||
|
||||
private TracePortType[] traceportField;
|
||||
|
||||
private TraceBufferType[] tracebufferField;
|
||||
|
||||
private string pnameField;
|
||||
|
||||
private XmlAttribute[] anyAttrField;
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "serialwire")]
|
||||
public SerialWireType[] serialwire {
|
||||
get {
|
||||
return serialwireField;
|
||||
}
|
||||
set {
|
||||
serialwireField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "traceport")]
|
||||
public TracePortType[] traceport {
|
||||
get {
|
||||
return traceportField;
|
||||
}
|
||||
set {
|
||||
traceportField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlElement( "tracebuffer")]
|
||||
public TraceBufferType[] tracebuffer {
|
||||
get {
|
||||
return tracebufferField;
|
||||
}
|
||||
set {
|
||||
tracebufferField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAttribute( Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
||||
public string Pname {
|
||||
get {
|
||||
return pnameField;
|
||||
}
|
||||
set {
|
||||
pnameField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[XmlAnyAttribute( )]
|
||||
public XmlAttribute[ ] AnyAttr {
|
||||
get {
|
||||
return anyAttrField;
|
||||
}
|
||||
set {
|
||||
anyAttrField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,23 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace CMSIS.Pack.PackDescription
|
||||
{
|
||||
internal static class XElementExtensions
|
||||
{
|
||||
internal static void ParseCollectionElements<T>( this XElement containerElement, XName descendantName, IList<T> list, Func<XElement, T> parser )
|
||||
{
|
||||
if( containerElement == null )
|
||||
return;
|
||||
|
||||
foreach( var element in containerElement.Descendants( descendantName ) )
|
||||
{
|
||||
list.Add( parser( element ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -98,7 +98,7 @@ namespace CMSIS.Pack
|
|||
public async Task<Package> GetPackageDescriptionAsync( )
|
||||
{
|
||||
var xml = await GetPackageDescriptionDocumentAsync( );
|
||||
return await Package.ParseFromAsync( xml );
|
||||
return await Package.ParseAsync( xml );
|
||||
}
|
||||
|
||||
private static Uri CreateUriWithTrailingSeperator( string descriptorUri )
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
using System;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CMSIS.Pack
|
||||
{
|
||||
public struct PackInstallProgress
|
||||
|
|
|
@ -1,26 +1,25 @@
|
|||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("CMSIS.Pack")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("CMSIS.Pack")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2015")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
[assembly: AssemblyTitle( "CMSIS.Pack" )]
|
||||
[assembly: AssemblyDescription( "" )]
|
||||
[assembly: AssemblyConfiguration( "" )]
|
||||
[assembly: AssemblyCompany( "" )]
|
||||
[assembly: AssemblyProduct( "CMSIS.Pack" )]
|
||||
[assembly: AssemblyCopyright( "Copyright © 2015" )]
|
||||
[assembly: AssemblyTrademark( "" )]
|
||||
[assembly: AssemblyCulture( "" )]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
[assembly: ComVisible( false )]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("0fc7a2b0-1a23-456b-b17e-0afbc0034a67")]
|
||||
[assembly: Guid( "0fc7a2b0-1a23-456b-b17e-0afbc0034a67" )]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
|
@ -32,5 +31,5 @@ using System.Runtime.InteropServices;
|
|||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
[assembly: AssemblyVersion( "1.0.0.0" )]
|
||||
[assembly: AssemblyFileVersion( "1.0.0.0" )]
|
||||
|
|
|
@ -48,7 +48,7 @@ namespace CMSIS.Pack
|
|||
public async Task<Package> GetPackageDescriptionAsync( )
|
||||
{
|
||||
string content = await GetPackageDescriptionDocumentAsync( );
|
||||
return await Package.ParseFromAsync( content );
|
||||
return await Package.ParseAsync( content );
|
||||
}
|
||||
|
||||
public async Task Download( IProgress<FileDownloadProgress> progressSink )
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
using System;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CMSIS.Pack
|
||||
{
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Microsoft.CodeAnalysis.Analyzers" version="1.1.0" targetFramework="net45" />
|
||||
<package id="Sprache.JetBrains" version="2.0.0.44" targetFramework="net45" />
|
||||
</packages>
|
|
@ -1,6 +1,5 @@
|
|||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using CMSIS.Pack;
|
||||
|
||||
namespace NetmfPackInstaller
|
||||
{
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using System.Reflection;
|
||||
using System.Resources;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Windows;
|
||||
|
||||
|
@ -33,11 +31,11 @@ using System.Windows;
|
|||
|
||||
[assembly: ThemeInfo(
|
||||
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
|
||||
//(used if a resource is not found in the page,
|
||||
// or application resource dictionaries)
|
||||
//(used if a resource is not found in the page,
|
||||
// or application resource dictionaries)
|
||||
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
|
||||
//(used if a resource is not found in the page,
|
||||
// app, or any theme specific resource dictionaries)
|
||||
//(used if a resource is not found in the page,
|
||||
// app, or any theme specific resource dictionaries)
|
||||
)]
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
|
|
Загрузка…
Ссылка в новой задаче