Documentation
¶
Index ¶
- Variables
- type AddressBlock
- type BitRangeLSBMSB
- type BitRangeOffsetWidth
- type CPU
- type Cluster
- type Device
- type DimElementGroup
- type EnumeratedValue
- type EnumeratedValues
- type Field
- type Int
- type Interrupt
- type Peripheral
- type Range
- type Register
- type RegisterPropertiesGroup
- type Uint
- type Uint64
- type WriteConstraint
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNilValue = errors.New("nil value")
Functions ¶
This section is empty.
Types ¶
type AddressBlock ¶
type BitRangeLSBMSB ¶
type BitRangeOffsetWidth ¶
type CPU ¶
type CPU struct {
Name string `xml:"name"`
Revision string `xml:"revision"`
Endian string `xml:"endian"`
MPUPresent bool `xml:"mpuPresent"`
FPUPresent bool `xml:"fpuPresent"`
FPUDP *bool `xml:"fpuDP"`
DSPPresent *bool `xml:"dspPresent"`
IcachePresent *bool `xml:"icachePresent"`
DcachePresent *bool `xml:"dcachePresent"`
ITCMPresent *bool `xml:"itcmPresent"`
DTCMPresent *bool `xml:"dtcmPresent"`
VTORPresent *bool `xml:"vtorPresent"`
NVICPrioBits Uint `xml:"nvicPrioBits"`
VendorSystickConfig bool `xml:"vendorSystickConfig"`
DeviceNumInterrupts *Uint `xml:"deviceNumInterrupts"`
SAUNumRegions *Uint `xml:"sauNumRegions"`
}
type Cluster ¶
type Cluster struct {
DerivedFrom *string `xml:"derivedFrom,attr"`
DimElementGroup
Name string `xml:"name"`
Description *string `xml:"description"`
AlternateCluster *string `xml:"alternateCluster"`
HeaderStructName *string `xml:"headerStructName"`
AddressOffset Uint64 `xml:"addressOffset"`
*RegisterPropertiesGroup
Registers []*Register `xml:"register"`
Clusters []*Cluster `xml:"cluster"`
}
type Device ¶
type Device struct {
Vendor *string `xml:"vendor"`
VendorID *string `xml:"vendorID"`
Name string `xml:"name"`
Series *string `xml:"series"`
Version string `xml:"version"`
Description string `xml:"description"`
LicenseText *string `xml:"licenseText"`
CPU *CPU `xml:"cpu"`
HeaderSystemFilename *string `xml:"headerSystemFilename"`
HeaderDefinitionsPrefix *string `xml:"headerDefinitionsPrefix"`
AddressUnitBits Uint `xml:"addressUnitBits"`
Width Uint `xml:"width"`
*RegisterPropertiesGroup
Peripherals []*Peripheral `xml:"peripherals>peripheral"`
}
type DimElementGroup ¶
type EnumeratedValue ¶
type EnumeratedValue struct {
Name *string `xml:"name"`
Description *string `xml:"description"`
Value *string `xml:"value"`
IsDefault *bool `xml:"isDefault"`
}
func (*EnumeratedValue) Val ¶ added in v0.1.8
func (ev *EnumeratedValue) Val() (uint64, error)
type EnumeratedValues ¶
type EnumeratedValues struct {
DerivedFrom *string `xml:"derivedFrom,attr"`
Name *string `xml:"name"`
HeaderEnumName *string `xml:"headerEnumName"`
Usage *string `xml:"usage"`
EnumeratedValue []*EnumeratedValue `xml:"enumeratedValue"`
}
type Field ¶
type Field struct {
DerivedFrom *string `xml:"derivedFrom,attr"`
DimElementGroup
Name string `xml:"name"`
Description *string `xml:"description"`
*BitRangeOffsetWidth
*BitRangeLSBMSB
BitRangePattern *string `xml:"bitRange"`
Access *string `xml:"access"`
ModifiedWriteValues *string `xml:"modifiedWriteValues"`
WriteConstraint *WriteConstraint `xml:"writeConstraint"`
ReadAction *string `xml:"readAction"`
EnumeratedValues []*EnumeratedValues `xml:"enumeratedValues"`
}
type Peripheral ¶
type Peripheral struct {
DerivedFrom *string `xml:"derivedFrom,attr"`
*DimElementGroup
Name string `xml:"name"`
Version *string `xml:"version"`
Description *string `xml:"description"`
AlternatePeripheral *string `xml:"alternatePeripheral"`
GroupName *string `xml:"groupName"`
PrependToName *string `xml:"prependToName"`
AppendToName *string `xml:"appendToName"`
HeaderStructName *string `xml:"headerStructName"`
DisableCondition *string `xml:"disableCondition"`
BaseAddress Uint64 `xml:"baseAddress"`
*RegisterPropertiesGroup
AddressBlock []*AddressBlock `xml:"addressBlock"`
Interrupts []*Interrupt `xml:"interrupt"`
Registers []*Register `xml:"registers>register"`
Clusters []*Cluster `xml:"registers>cluster"`
}
type Register ¶
type Register struct {
DerivedFrom *string `xml:"derivedFrom,attr"`
DimElementGroup
Name string `xml:"name"`
DisplayName *string `xml:"displayName"`
Description *string `xml:"description"`
AlternateGroup *string `xml:"alternateGroup"`
AlternateRegister *string `xml:"alternateRegister"`
AddressOffset Uint64 `xml:"addressOffset"`
*RegisterPropertiesGroup
DataType *string `xml:"dataType"`
ModifiedWriteValues *string `xml:"modifiedWriteValues"`
WriteConstraint *WriteConstraint `xml:"writeConstraint"`
ReadAction *string `xml:"readAction"`
Fields []*Field `xml:"fields>field"`
}
type RegisterPropertiesGroup ¶
type WriteConstraint ¶
Click to show internal directories.
Click to hide internal directories.