forked from vectorgrp/XCPlite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCANape.aml
More file actions
169 lines (141 loc) · 5.41 KB
/
CANape.aml
File metadata and controls
169 lines (141 loc) · 5.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
/begin A2ML
block "IF_DATA" taggedunion if_data {
"CANAPE_EXT" struct {
int; /* version number */
taggedstruct {
"LINK_MAP" struct {
char[256]; /* segment name */
long; /* base address of the segment */
uint; /* address extension of the segment */
uint; /* flag: address is relative to DS */
long; /* offset of the segment address */
uint; /* datatypValid */
uint; /* enum datatyp */
uint; /* bit offset of the segment */
};
"DISPLAY" struct {
long; /* display color */
double; /* minimal display value (phys)*/
double; /* maximal display value (phys)*/
};
"VIRTUAL_CONVERSION" struct {
char[256]; /* name of the conversion formula */
};
"STEPSIZE_W" uint; /* step size for FNC_VALUES in referenced record layout */
"STEPSIZE_X" uint; /* step size for AXIS_PTS_X in referenced record layout */
"STEPSIZE_Y" uint; /* step size for AXIS_PTS_Y in referenced record layout */
};
};
"CANAPE_ADDRESS_UPDATE" taggedstruct {
("EPK_ADDRESS" struct {
char[1024]; /* name of the corresponding symbol in MAP file*/
long; /* optional address offset*/
})*;
"ECU_CALIBRATION_OFFSET" struct {
char[1024]; /* name of the corresponding symbol in MAP file*/
long; /* optional address offset*/
};
(block "CALIBRATION_METHOD" taggedunion {
"AUTOSAR_SINGLE_POINTERED" struct {
char[1024]; /* MAP symbol name for pointer table in RAM*/
long; /* optional address offset*/
taggedstruct {
"ORIGINAL_POINTER_TABLE" struct {
char[1024]; /* MAP symbol name for pointer table in FLASH */
long; /* optional address offset */
};
};
};
"InCircuit2" struct {
char[1024]; /* MAP symbol name for pointer table in RAM */
long; /* optional address offset */
taggedstruct {
"ORIGINAL_POINTER_TABLE" struct {
char[1024]; /* MAP symbol name for pointer table in FLASH*/
long; /* optional address offset*/
};
"FLASH_SECTION" struct {
ulong; /* start address of flash section */
ulong; /* length of flash section */
};
};
};
})*;
block "MAP_SYMBOL" taggedstruct {
"FIRST" struct {
char[1024]; /* symbol name of the corresponding segment in MAP file*/
long; /* offset;*/
};
"LAST" struct {
char[1024]; /* symbol name of the corresponding segment in MAP file*/
long; /* offset;*/
};
("ADDRESS_MAPPING_XCP" struct {
char[1024]; /* symbol name of source range in MAP file*/
char[1024]; /* symbol name of destination range in MAP file*/
})*;
};
(block "MEMORY_SEGMENT" struct {
char[1024]; /* name of the memory segment*/
taggedstruct {
"FIRST" struct {
char[1024]; /* symbol name of the corresponding segment in MAP file*/
long; /* offset;*/
};
"LAST" struct {
char[1024]; /* symbol name of the corresponding segment in MAP file*/
long; /* offset;*/
};
("ADDRESS_MAPPING_XCP" struct {
char[1024]; /* symbol name of source range in MAP file*/
char[1024]; /* symbol name of destination range in MAP file*/
})*;
};
})*;
};
"CANAPE_GROUP" taggedstruct {
block "STRUCTURE_LIST" (char[1024])*;
};
"CANAPE_CAL_METHOD" taggedstruct {
(block "CAL_PARAM_GROUP" taggedstruct {
"NAME" char[1024];
"ADDRESS" ulong;
"SIZE" ulong;
"COMMENT" char[1024];
"LINK_MAP" struct {
char[256]; /* symbol name */
ulong; /* base address of the symbol */
uint; /* address extension of the symbol */
uint; /* flag: address is relative to DS */
long; /* offset of the symbol address */
};
})*;
};
"CNP_CREATE_INI" taggedstruct {
block "TP_BLOB" struct {
uint; /* version */
taggedstruct {
("PARAMETER" struct {
char[256]; /* file name */
char[50]; /* Section - $CNP_DVC_SCTN$ defines the Device-Section entry */
char[50]; /* parameter name */
char[256]; /* parameter value */
})*;
};
};
};
"CANAPE_MODULE" struct {
taggedstruct {
("RECORD_LAYOUT_STEPSIZE" struct {
char[256]; /* name of record layout*/
uint; /* stepsize for FNC_VALUES */
uint; /* stepsize for AXIS_PTS_X */
uint; /* stepsize for AXIS_PTS_Y */
uint; /* stepsize for AXIS_PTS_Z */
uint; /* stepsize for AXIS_PTS_4 */
uint; /* stepsize for AXIS_PTS_5 */
})*;
};
};
}; // block "IF_DATA"
/end A2ML