Documentation
¶
Index ¶
- Constants
- type A2L
- type Characteristic
- type DependentCharacteristic
- type DisplayIdentifier
- type FncValues
- type Formula
- type FunctionList
- type IfData
- type LeftShift
- type MapList
- type MaxGrad
- type MaxRefresh
- type Module
- type Monotony
- type Number
- type Project
- type RecordLayout
- type RightShift
- type SignExtendKeyword
- type StepSize
- type SystemConstant
- type VirtualCharacteristic
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 PLONGLONG addrTypeEnum = plonLongToken /*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 ( //String value in ASCII format. ASCII typeEnum = asciiToken //Curve Datatype of a characteristic is like an array for the y axis plus an axis description on the x axis Curve typeEnum = curveToken //Map defines a two dimensional array Map typeEnum = mapToken //Cuboid defines a three dimensional array mostly represented as an array of Maps Cuboid typeEnum = cuboidToken //Value Block is a a array with one, two or up to three dimensions. ValBlk typeEnum = valBlkToken //Value is used in characteristics that only have one value like e.g. "1.0" Value typeEnum = valueToken )
View Source
const ( //Identical defines a OneToOne conversion from hex to decimal Identical conversionTypeEnum = identicalToken Form conversionTypeEnum = formToken Linear conversionTypeEnum = linearToken RatFunc conversionTypeEnum = ratFuncToken TabIntp conversionTypeEnum = tabIntpToken TabNointp conversionTypeEnum = tabNointpToken //Tab Verb is a table to convert numeric values into strings. e.g.: 1 -> "True" TabVerb conversionTypeEnum = tabVerbToken )
View Source
const ( /* curves which share a common axis are deposited in columns; each row of memory contains values for all the shared axis curves at a given axis breakpoint. Required in order to represent characteristics which correspond to arrays of structures in ECU program code.*/ AlternateCurves indexModeEnum = alternateCurvesToken /*AlternateWithX defines that values of a map are stored in columns and the columns of table values alternate with the respective X-coordinates. A map of format 9 8 7 [0 1 2 3 4 5 6 7 8] could be stored within the hex file as an array of format [9,0,3,6,8,1,4,7,7,2,5,8] The order of axis points and table values can be defined differently by the position statement in the FNC_VALUE In case of a curve the values of x-Axis and values alternate.*/ AlternateWithX indexModeEnum = alternateWithXToken /*AlternateWithY defines that values of a map are deposited in rows, the rows of table values alternate with the respective Y-coordinates. A map of format 9 [0 1 2 8 3 4 5 7 6 7 8] could be within the hex file as an array of format [9,0,1,2,8,3,4,5,7,6,7,8] The order of axis points and table values can be defined differently by the position statement in the FNC_VALUE Only applicable to maps*/ AlternateWithY indexModeEnum = alternateWithYToken /*Column Direction defines that values of a map [0 1 2 3 4 5 6 7 8] are stored within the hex file as an array of format [0,3,6,1,4,7,2,5,8] */ ColumnDir indexModeEnum = columnDirToken /*Row Direction defines that values of a map [0 1 2 3 4 5 6 7 8] are stored within the hex file as an array of format [0,1,2,3,4,5,6,7,8] */ 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 ¶
ParseFromFile is the main exported function to be called from a2l package. it takes an .a2l file and parses it
type Characteristic ¶
type DependentCharacteristic ¶
type DependentCharacteristic struct {
// contains filtered or unexported fields
}
type DisplayIdentifier ¶
type DisplayIdentifier struct {
// contains filtered or unexported fields
}
type FncValues ¶ added in v0.9.9
type FncValues struct {
//Position of table values (function values) in the deposit structure (description of sequence of elements in the data record).
Position uint16
PositionSet bool
//Datatype of the table values
Datatype dataTypeEnum
DatatypeSet bool
/*IndexMode for characteristic maps, curves and value blocks,
this field is used to describe how the 2-dimensional table values
are mapped onto the 1-dimensional address space*/
IndexMode indexModeEnum
IndexModeSet bool
/*Addresstype defines the addressing of the table values:
Enumeration for description of the addressing of table
values or axis point values:
PBYTE: The relevant memory location has a 1 byte pointer
to this table value or axis point value.
PWORD: The relevant memory location has a 2 byte pointer
to this table value or axis point value.
PLONG: The relevant memory location has a 4 byte pointer
to this table value or axis point value.
DIRECT: The relevant memory location has the first table value
or axis point value, all others follow with incrementing address. */
Addresstype addrTypeEnum
AddresstypeSet bool
}
FncValues defines the way the data of a specific record layout is stored within the hex file.
type FunctionList ¶
type FunctionList struct {
// contains filtered or unexported fields
}
type MaxRefresh ¶
type MaxRefresh struct {
// contains filtered or unexported fields
}
type Module ¶ added in v0.9.9
type Module struct {
Name string
AxisPts map[string]axisPts
Characteristics map[string]Characteristic
CompuMethods map[string]compuMethod
CompuTabs map[string]compuTab
CompuVTabs map[string]compuVTab
CompuVTabRanges map[string]compuVTabRange
Functions map[string]function
Groups map[string]group
Measurements map[string]measurement
ModCommon modCommon
ModPar modPar
RecordLayouts map[string]RecordLayout
Units map[string]unit
// contains filtered or unexported fields
}
type RecordLayout ¶ added in v0.9.9
type RecordLayout struct {
Name string
NameSet bool
AlignmentByte alignmentByte
AlignmentFloat16Ieee alignmentFloat16Ieee
AlignmentFloat32Ieee alignmentFloat32Ieee
AlignmentFloat64Ieee alignmentFloat64Ieee
AlignmentInt64 alignmentInt64
AlignmentLong alignmentLong
AlignmentWord alignmentWord
AxisPtsX axisPtsX
AxisPtsY axisPtsY
AxisPtsZ axisPtsZ
AxisPts4 axisPts4
AxisPts5 axisPts5
AxisRescaleX axisRescaleX
DistOpX distOpX
DistOpY distOpY
DistOpZ distOpZ
DistOp4 distOp4
DistOp5 distOp5
FixNoAxisPtsX fixNoAxisPtsX
FixNoAxisPtsY fixNoAxisPtsY
FixNoAxisPtsZ fixNoAxisPtsZ
FixNoAxisPts4 fixNoAxisPts4
FixNoAxisPts5 fixNoAxisPts5
FncValues FncValues
Identification identification
NoAxisPtsX noAxisPtsX
NoAxisPtsY noAxisPtsY
NoAxisPtsZ noAxisPtsZ
NoAxisPts4 noAxisPts4
NoAxisPts5 noAxisPts5
NoRescaleX noRescaleX
OffsetX offsetX
OffsetY offsetY
OffsetZ offsetZ
Offset4 offset4
Offset5 offset5
Reserved reserved
RipAddrW ripAddrW
RipAddrX ripAddrX
RipAddrY ripAddrY
RipAddrZ ripAddrZ
RipAddr4 ripAddr4
RipAddr5 ripAddr5
SrcAddrX srcAddrX
SrcAddrY srcAddrY
SrcAddrZ srcAddrZ
SrcAddr4 srcAddr4
SrcAddr5 srcAddr5
ShiftOpX shiftOpX
ShiftOpY shiftOpY
ShiftOpZ shiftOpZ
ShiftOp4 shiftOp4
ShiftOp5 shiftOp5
StaticRecordLayout staticRecordLayoutKeyword
StaticAddressOffsets staticAddressOffsetsKeyword
}
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 SystemConstant ¶ added in v0.9.9
type VirtualCharacteristic ¶
type VirtualCharacteristic struct {
// contains filtered or unexported fields
}
Source Files
¶
- a2l.go
- a2ml.go
- a2ml_version.go
- addr_epk.go
- alignment_byte.go
- alignment_float16_ieee.go
- alignment_float32_ieee.go
- alignment_float64_ieee.go
- alignment_int64.go
- alignment_long.go
- alignment_word.go
- annotation.go
- annotation_label.go
- annotation_origin.go
- annotation_text.go
- ar_component.go
- ar_prototype_of.go
- array_size.go
- asap2_version.go
- axis_descr.go
- axis_pts.go
- axis_pts_4.go
- axis_pts_5.go
- axis_pts_ref.go
- axis_pts_x.go
- axis_pts_y.go
- axis_pts_z.go
- axis_rescale_x.go
- bit_mask.go
- bit_operation.go
- blob.go
- byte_order.go
- calibration_handle.go
- calibration_handle_text.go
- calibration_method.go
- characteristic.go
- coeffs.go
- coeffs_linear.go
- comparison_quantity.go
- compu_method.go
- compu_tab.go
- compu_tab_ref.go
- compu_vtab.go
- compu_vtab_range.go
- consistent_exchange.go
- cpu_type.go
- curve_axis_ref.go
- customer.go
- customer_no.go
- data_size.go
- def_characteristic.go
- default_value.go
- default_value_numeric.go
- dependent_characteristic.go
- deposit.go
- discrete.go
- display_identifier.go
- dist_op_4.go
- dist_op_5.go
- dist_op_x.go
- dist_op_y.go
- dist_op_z.go
- ecu.go
- ecu_address.go
- ecu_address_extension.go
- ecu_calibration_offset.go
- enums.go
- epk.go
- error_mask.go
- extended_limits.go
- fix_axis_par.go
- fix_axis_par_dist.go
- fix_axis_par_list.go
- fix_no_axis_pts_4.go
- fix_no_axis_pts_5.go
- fix_no_axis_pts_x.go
- fix_no_axis_pts_y.go
- fix_no_axis_pts_z.go
- fnc_values.go
- format.go
- formula.go
- formula_inv.go
- frame.go
- frame_measurement.go
- function.go
- function_list.go
- function_version.go
- group.go
- guard_rails.go
- header.go
- identification.go
- if_data.go
- in_measurement.go
- instance.go
- layout.go
- left_shift.go
- limits.go
- loc_measurement.go
- map_list.go
- matrix_dim.go
- max_grad.go
- max_refresh.go
- measurement.go
- memory_layout.go
- memory_segment.go
- mod_common.go
- mod_par.go
- model_link.go
- module.go
- monotony.go
- no_axis_pts_4.go
- no_axis_pts_5.go
- no_axis_pts_x.go
- no_axis_pts_y.go
- no_axis_pts_z.go
- no_of_interfaces.go
- no_rescale_x.go
- number.go
- offset_4.go
- offset_5.go
- offset_x.go
- offset_y.go
- offset_z.go
- out_measurement.go
- overwrite.go
- phone_no.go
- phys_unit.go
- project.go
- project_no.go
- read_only.go
- read_write.go
- record_layout.go
- ref_characteristic.go
- ref_group.go
- ref_measurement.go
- ref_memory_segment.go
- ref_unit.go
- reserved.go
- right_shift.go
- rip_addr_4.go
- rip_addr_5.go
- rip_addr_w.go
- rip_addr_x.go
- rip_addr_y.go
- rip_addr_z.go
- root.go
- shift_op_4.go
- shift_op_5.go
- shift_op_x.go
- shift_op_y.go
- shift_op_z.go
- si_exponents.go
- sign_extend.go
- src_addr_4.go
- src_addr_5.go
- src_addr_x.go
- src_addr_y.go
- src_addr_z.go
- static_address_offsets.go
- static_record_layout.go
- status_string_ref.go
- step_size.go
- structure_component.go
- sub_function.go
- sub_group.go
- supplier.go
- symbol_link.go
- symbol_type_link.go
- system_constant.go
- token_generator.go
- tokens.go
- transformer.go
- transformer_in_object.go
- transformer_out_object.go
- type_def_axis.go
- type_def_blob.go
- type_def_characteristic.go
- type_def_measurement.go
- type_def_structure.go
- unit.go
- unit_conversion.go
- user.go
- user_rights.go
- var_address.go
- var_characteristic.go
- var_criterion.go
- var_forbidden_comb.go
- var_measurement.go
- var_naming.go
- var_selection_characteristic.go
- var_separator.go
- variant_coding.go
- version.go
- virtual.go
- virtual_characteristic.go
Click to show internal directories.
Click to hide internal directories.