a2l

package
v0.9.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UTF8  encodingEnum = "UTF8"
	UTF16 encodingEnum = "UTF16"
	UTF32 encodingEnum = "UTF32"
)
View Source
const (
	UBYTE dataTypeEnum = ubyteToken
	SBYTE dataTypeEnum = sbyteToken
	UWORD dataTypeEnum = uwordToken
	SWORD dataTypeEnum = swordToken
	ULONG dataTypeEnum = ulongToken
	SLONG dataTypeEnum = slongToken
)
View Source
const (
	BYTE dataSizeEnum = byteToken
	WORD dataSizeEnum = wordToken
	LONG dataSizeEnum = longToken
)
View Source
const (
	PBYTE addrTypeEnum = pbyteToken
	PWORD addrTypeEnum = pwordToken
	PLONG addrTypeEnum = plongToken
	/*DIRECT: If an adjustable or measurable object is defined with indirect addressing
	(ADDRESS_TYPE is not DIRECT) and if the used interface does not support indirect
	addressing, it is the responsibility of the MC-System to dereference the object’s
	address before accessing the data or configuring measurement lists.*/
	DIRECT addrTypeEnum = directToken
)
View Source
const (
	INTERN attributeEnum = internToken
	EXTERN attributeEnum = externToken
)
View Source
const (
	Ascii  typeEnum = asciiToken
	Curve  typeEnum = curveToken
	Map    typeEnum = mapToken
	Cuboid typeEnum = cuboidToken

	ValBlk typeEnum = valBlkToken
	Value  typeEnum = valueToken
)
View Source
const (
	Identical conversionTypeEnum = identicalToken
	Form      conversionTypeEnum = formToken
	Linear    conversionTypeEnum = linearToken
	RatFunc   conversionTypeEnum = ratFuncToken
	TabIntp   conversionTypeEnum = tabIntpToken
	TabNointp conversionTypeEnum = tabNointpToken
	TabVerb   conversionTypeEnum = tabVerbToken
)
View Source
const (
	ColumnDir indexModeEnum = columnDirToken
	RowDir    indexModeEnum = rowDirToken
)
View Source
const (
	Absolute   modeEnum = absoluteToken
	Difference modeEnum = differenceToken
)

Variables

This section is empty.

Functions

This section is empty.

Types

type A2L

type A2L struct {
	Asap2Version asap2Version
	A2mlVersion  a2mlVersion
	Project      Project
}

A2L is the main struct returned by the a2l package. it contains all datatypes parsed from the .a2l file

func ParseFromFile

func ParseFromFile(filepath string) (A2L, error)

ParseFromFile is the main exported function to be called from a2l package. it takes an .a2l file and parses it

type Characteristic

type Characteristic struct {
	Name string

	LongIdentifier string

	Type    typeEnum
	TypeSet bool
	Address string
	// contains filtered or unexported fields
}

type DependentCharacteristic

type DependentCharacteristic struct {
	// contains filtered or unexported fields
}

type DisplayIdentifier

type DisplayIdentifier struct {
	// contains filtered or unexported fields
}

type Formula

type Formula struct {
	// contains filtered or unexported fields
}

type FunctionList

type FunctionList struct {
	// contains filtered or unexported fields
}

type GuardRails

type GuardRails struct {
	// contains filtered or unexported fields
}

type IfData

type IfData struct {
	// contains filtered or unexported fields
}

type LeftShift

type LeftShift struct {
	// contains filtered or unexported fields
}

type MapList

type MapList struct {
	// contains filtered or unexported fields
}

type MaxGrad

type MaxGrad struct {
	// contains filtered or unexported fields
}

type MaxRefresh

type MaxRefresh struct {
	// contains filtered or unexported fields
}

type Monotony

type Monotony struct {
	// contains filtered or unexported fields
}

type Number

type Number struct {
	// contains filtered or unexported fields
}

type Project

type Project struct {
	Name string

	Modules []module
	// contains filtered or unexported fields
}

type RightShift

type RightShift struct {
	// contains filtered or unexported fields
}

type SignExtendKeyword added in v0.9.3

type SignExtendKeyword struct {
	// contains filtered or unexported fields
}

type StepSize

type StepSize struct {
	// contains filtered or unexported fields
}

type VirtualCharacteristic

type VirtualCharacteristic struct {
	// contains filtered or unexported fields
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL