a2l

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: MIT Imports: 10 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

	VALUE   typeEnum = valueToken
	DERIVED typeEnum = derivedToken
)
View Source
const (
	IDENTICAL conversionTypeEnum = identicalToken
	FORM      conversionTypeEnum = formToken
	LINEAR    conversionTypeEnum = linearToken
)
View Source
const (
	ABSOLUTE   modeEnum = absoluteToken
	DIFFERENCE modeEnum = differenceToken
)
View Source
const (
	CODE prgTypeEnum = codeToken
	DATA prgTypeEnum = dataToken

	RESERVED2 prgTypeEnum = reservedToken
	SERAM     prgTypeEnum = seramToken
	VARIABLES prgTypeEnum = variablesToken
)
View Source
const (
	EEPROM   memoryTypeEnum = eepromToken
	EPROM    memoryTypeEnum = epromToken
	FLASH    memoryTypeEnum = flashToken
	RAM      memoryTypeEnum = ramToken
	ROM      memoryTypeEnum = romToken
	REGISTER memoryTypeEnum = registerToken
)
View Source
const (
	OnChange      triggerEnum = onChangeToken
	OnUserRequest triggerEnum = onUserRequestToken
)
View Source
const (
	CALIBRATION calibrationAccessEnum = calibrationToken
)
View Source
const (
	MONOTONOUS monotonyTypeEnum = monotonousToken
)
View Source
const (
	NUMERIC tagEnum = numericToken
)

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 SignExtend

type SignExtend 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