Challenge

Project 2-Highway Assistant-Lane Changing Assistant

Highway Assistant – Lane Changing Assistant

Introduction to the Feature:

The Highway Assistant supports the driver and takes over the longitudinal and lateral guidance of the vehicle in monotonous driving situations on highways. The partially automated function can automatically start, accelerate, brake as well as steer the vehicle to a certain extent. The driver has to permanently supervise the system and be ready to take over the complete control of the vehicle at any time.

Drivers are taught to assess surrounding traffic before changing lanes by checking their rearview and side mirrors and looking over each shoulder. However, even for those who follow this sequence of checks, the vehicle's blind spot – the area alongside and just behind the vehicle – is a constant source of danger and often the cause of serious accidents. Even vehicles approaching quickly from behind can pose a risk. To make changing lanes safer, this feature has been developed.

Basic Working Principle:

Highway Assistant is a partially automated driving function for a speed range of up to 180 km/h (112 mph) on highways. It combines the radar-based longitudinal guidance of Adaptive Cruise Control (ACC) with the video-based lateral guidance of lane keeping support in one system. Highway Assistant can be supplemented by an automatic lane change initiated and monitored by the driver in a speed range of 60 – 130 km/h (35 – 80 mph).

The lane Change Assistant works by using two mid-range radar sensors that are concealed in the rear bumper – one on the left, one on the right. These two sensors monitor the area alongside and behind the car. Powerful control software collates the sensor information to create a complete picture of all traffic in the area behind the vehicle.Whenever another vehicle approaches at speed from behind or is already present in the blind spot, a signal such as a warning light in the side mirror alerts the driver to the hazard. Should the driver still activate the turn signal with the intention of changing lanes, the system issues an additional acoustic and/or haptic warning.

Requirement No 1 [Highway_DisplayUnit]:

Inputs to this particular subsystem are “Highway_Input_Signal”, “Enable_Display”, “Input_Switch”. These three input signals, when assigned to a particular value will give output signals of specific value. The output signals are “Highway_Display_Mode_1”, “Highway_Display_Mode_2”, “Highway_Display_Mode_3”, “Highway_Display_Mode_4”. The requirement must be implemented in the form of a Stateflow logic.

Condition

Action

Highway_Input_Signal = 1

Enable_Display = off

Input_Switch = on

Highway_Display_Mode_1 = 232

Highway_Display_Mode_2 = 183

Highway_Display_Mode_3 = 41

Highway_Display_Mode_4 = 94

Highway_Input_Signal = 1

Enable_Display = on

Input_Switch = on

Highway_Display_Mode_1 = 213

Highway_Display_Mode_2 = 183

Highway_Display_Mode_3 = 9

Highway_Display_Mode_4 = 94

Requirement No 2 [Lane_DisplayUnit]:

Inputs to this particular subsystem are “Enable_Display”, “Input_Switch”, “Lane_Input_Signal”. These three input signals, when assigned to a particular value will give output signals of specific value. The output signals are “Lane_Display_Mode_1”, “Lane_Display_Mode_2”, “Lane_Display_Mode_3”, “Lane_Display_Mode_4”. The requirement must be implemented in the form of Stateflow logic.

Condition

Action

Lane_Input_Signal= 6

Enable_Display = off

Input_Switch = on

Lane_Display_Mode_1 = 132

Lane_Display_Mode_2 = 185

Lane_Display_Mode_3 = 54

Lane_Display_Mode_4 = 67

Lane_Input_Signal= 6

Enable_Display = on

Input_Switch = on

Lane_Display_Mode_1 = 127

Lane_Display_Mode_2 = 248

Lane_Display_Mode_3 = 186

Lane_Display_Mode_4 = 84

c

File: Highway_Assitant.c

1 /*
2 * File: Highway_Assitant.c
3 *
4 * Code generated for Simulink model 'Highway_Assitant'.
5 *
6 * Model version : 1.16
7 * Simulink Coder version : 9.5 (R2021a) 14-Nov-2020
8 * C/C++ source code generated on : Sat Jan 15 21:21:32 2022
9 *
10 * Target selection: autosar.tlc
11 * Embedded hardware selection: Intel->x86-64 (Windows64)
12 * Code generation objectives: Unspecified
13 * Validation result: Not run
14 */
15
16 #include "Highway_Assitant.h"
17 #include "Highway_Assitant_private.h"
18
19 /* Named constants for Chart: '<S2>/Chart' */
20 #define Highway_Assi_IN_NO_ACTIVE_CHILD ((uint8)0U)
21 #define Highway_Assitant_IN_Condition_1 ((uint8)1U)
22 #define Highway_Assitant_IN_Condition_2 ((uint8)2U)
23
24 /* Named constants for Chart: '<S3>/Chart' */
25 #define Highway_Assita_IN_Condition_1_j ((uint8)2U)
26 #define Highway_Assitant_IN_Conditin_2 ((uint8)1U)
27
28 /* Block states (default storage) */
29 DW_Highway_Assitant_T Highway_Assitant_DW;
30
31 /* Model step function */
32 void Highway_Assitant_Step(void)
33 {
34 sint32 rtb_Highway_Display_Mode_1;
35 sint32 rtb_Highway_Display_Mode_3;
36 sint32 rtb_Lane_Display_Mode_1;
37 sint32 rtb_Lane_Display_Mode_2;
38 sint32 rtb_Lane_Display_Mode_3;
39 sint32 rtb_Lane_Display_Mode_4;
40 sint32 tmp;
41
42 /* Chart: '<S2>/Chart' incorporates:
43 * Inport: '<Root>/Enable_Display'
44 * Inport: '<Root>/Highway_Input_Signal'
45 * Inport: '<Root>/Input_Switch'
46 */
47 if (((uint32)Highway_Assitant_DW.is_active_c3_Highway_Assitant) == 0U) {
48 Highway_Assitant_DW.is_active_c3_Highway_Assitant = 1U;
49 Highway_Assitant_DW.is_c3_Highway_Assitant = Highway_Assitant_IN_Condition_1;
50 rtb_Highway_Display_Mode_1 = 232;
51 rtb_Highway_Display_Mode_3 = 41;
52 } else if (((uint32)Highway_Assitant_DW.is_c3_Highway_Assitant) ==
53 Highway_Assitant_IN_Condition_1) {
54 if (((((sint32)
55 Rte_IRead_Highway_Assitant_Step_Rp_Highway_Input_Signal_DE_Highway_Input_Signal
56 ()) == 1) && (((sint32)
57 Rte_IRead_Highway_Assitant_Step_Rp_Enable_Display_DE_Enable_Display
58 ()) == 1)) && (((sint32)
59 Rte_IRead_Highway_Assitant_Step_Rp_Input_Switch_DE_Input_Switch
60 ()) == 1)) {
61 Highway_Assitant_DW.is_c3_Highway_Assitant =
62 Highway_Assitant_IN_Condition_2;
63 rtb_Highway_Display_Mode_1 = 213;
64 rtb_Highway_Display_Mode_3 = 9;
65 } else {
66 rtb_Highway_Display_Mode_1 = 232;
67 rtb_Highway_Display_Mode_3 = 41;
68 }
69
70 /* case IN_Condition_2: */
71 } else if (((((sint32)
72 Rte_IRead_Highway_Assitant_Step_Rp_Highway_Input_Signal_DE_Highway_Input_Signal
73 ()) == 1) && (((sint32)
74 Rte_IRead_Highway_Assitant_Step_Rp_Enable_Display_DE_Enable_Display
75 ()) == 0)) && (((sint32)
76 Rte_IRead_Highway_Assitant_Step_Rp_Input_Switch_DE_Input_Switch
77 ()) == 1)) {
78 Highway_Assitant_DW.is_c3_Highway_Assitant = Highway_Assitant_IN_Condition_1;
79 rtb_Highway_Display_Mode_1 = 232;
80 rtb_Highway_Display_Mode_3 = 41;
81 } else {
82 rtb_Highway_Display_Mode_1 = 213;
83 rtb_Highway_Display_Mode_3 = 9;
84 }
85
86 /* End of Chart: '<S2>/Chart' */
87
88 /* Chart: '<S3>/Chart' incorporates:
89 * Inport: '<Root>/Enable_Display'
90 * Inport: '<Root>/Input_Switch'
91 * Inport: '<Root>/Lane_Input_Signal'
92 */
93 if (((uint32)Highway_Assitant_DW.is_active_c1_Highway_Assitant) == 0U) {
94 Highway_Assitant_DW.is_active_c1_Highway_Assitant = 1U;
95 Highway_Assitant_DW.is_c1_Highway_Assitant = Highway_Assita_IN_Condition_1_j;
96 rtb_Lane_Display_Mode_1 = 132;
97 rtb_Lane_Display_Mode_2 = 185;
98 rtb_Lane_Display_Mode_3 = 54;
99 rtb_Lane_Display_Mode_4 = 67;
100 } else if (((uint32)Highway_Assitant_DW.is_c1_Highway_Assitant) ==
101 Highway_Assitant_IN_Conditin_2) {
102 if (((((sint32)
103 Rte_IRead_Highway_Assitant_Step_Rp_Lane_Input_Signal_DE_Lane_Input_Signal
104 ()) == 6) && (((sint32)
105 Rte_IRead_Highway_Assitant_Step_Rp_Enable_Display_DE_Enable_Display
106 ()) == 0)) && (((sint32)
107 Rte_IRead_Highway_Assitant_Step_Rp_Input_Switch_DE_Input_Switch
108 ()) == 1)) {
109 Highway_Assitant_DW.is_c1_Highway_Assitant =
110 Highway_Assita_IN_Condition_1_j;
111 rtb_Lane_Display_Mode_1 = 132;
112 rtb_Lane_Display_Mode_2 = 185;
113 rtb_Lane_Display_Mode_3 = 54;
114 rtb_Lane_Display_Mode_4 = 67;
115 } else {
116 rtb_Lane_Display_Mode_1 = 127;
117 rtb_Lane_Display_Mode_2 = 248;
118 rtb_Lane_Display_Mode_3 = 186;
119 rtb_Lane_Display_Mode_4 = 84;
120 }
121
122 /* case IN_Condition_1: */
123 } else if (((((sint32)
124 Rte_IRead_Highway_Assitant_Step_Rp_Lane_Input_Signal_DE_Lane_Input_Signal
125 ()) == 6) && (((sint32)
126 Rte_IRead_Highway_Assitant_Step_Rp_Enable_Display_DE_Enable_Display
127 ()) == 1)) && (((sint32)
128 Rte_IRead_Highway_Assitant_Step_Rp_Input_Switch_DE_Input_Switch
129 ()) == 1)) {
130 Highway_Assitant_DW.is_c1_Highway_Assitant = Highway_Assitant_IN_Conditin_2;
131 rtb_Lane_Display_Mode_1 = 127;
132 rtb_Lane_Display_Mode_2 = 248;
133 rtb_Lane_Display_Mode_3 = 186;
134 rtb_Lane_Display_Mode_4 = 84;
135 } else {
136 rtb_Lane_Display_Mode_1 = 132;
137 rtb_Lane_Display_Mode_2 = 185;
138 rtb_Lane_Display_Mode_3 = 54;
139 rtb_Lane_Display_Mode_4 = 67;
140 }
141
142 /* End of Chart: '<S3>/Chart' */
143
144 /* Switch: '<S1>/Switch' incorporates:
145 * Inport: '<Root>/Highway_Input_Signal'
146 * Switch: '<S1>/Switch1'
147 * Switch: '<S1>/Switch2'
148 */
149 tmp = (sint32)
150 Rte_IRead_Highway_Assitant_Step_Rp_Highway_Input_Signal_DE_Highway_Input_Signal
151 ();
152 if (tmp != 0) {
153 /* Outport: '<Root>/Display_Mode_1' */
154 Rte_IWrite_Highway_Assitant_Step_Pp_Display_Mode_1_DE_Display_Mode_1
155 ((float64)rtb_Highway_Display_Mode_1);
156 rtb_Lane_Display_Mode_2 = 183;
157 } else {
158 /* Outport: '<Root>/Display_Mode_1' */
159 Rte_IWrite_Highway_Assitant_Step_Pp_Display_Mode_1_DE_Display_Mode_1
160 ((float64)rtb_Lane_Display_Mode_1);
161 }
162
163 /* End of Switch: '<S1>/Switch' */
164
165 /* Outport: '<Root>/Display_Mode_2' */
166 Rte_IWrite_Highway_Assitant_Step_Pp_Display_Mode_2_DE_Display_Mode_2((float64)
167 rtb_Lane_Display_Mode_2);
168
169 /* Switch: '<S1>/Switch2' incorporates:
170 * Switch: '<S1>/Switch3'
171 */
172 if (tmp != 0) {
173 /* Outport: '<Root>/Display_Mode_3' */
174 Rte_IWrite_Highway_Assitant_Step_Pp_Display_Mode_3_DE_Display_Mode_3
175 ((float64)rtb_Highway_Display_Mode_3);
176 rtb_Lane_Display_Mode_4 = 94;
177 } else {
178 /* Outport: '<Root>/Display_Mode_3' */
179 Rte_IWrite_Highway_Assitant_Step_Pp_Display_Mode_3_DE_Display_Mode_3
180 ((float64)rtb_Lane_Display_Mode_3);
181 }
182
183 /* Outport: '<Root>/Display_Mode_4' */
184 Rte_IWrite_Highway_Assitant_Step_Pp_Display_Mode_4_DE_Display_Mode_4
185 ((float64)rtb_Lane_Display_Mode_4);
186 }
187
188 /* Model initialize function */
189 void Highway_Assitant_Init(void)
190 {
191 /* Registration code */
192
193 /* states (dwork) */
194 (void) memset((void *)&Highway_Assitant_DW, 0,
195 sizeof(DW_Highway_Assitant_T));
196
197 /* SystemInitialize for Chart: '<S2>/Chart' */
198 Highway_Assitant_DW.is_active_c3_Highway_Assitant = 0U;
199 Highway_Assitant_DW.is_c3_Highway_Assitant = Highway_Assi_IN_NO_ACTIVE_CHILD;
200
201 /* SystemInitialize for Chart: '<S3>/Chart' */
202 Highway_Assitant_DW.is_active_c1_Highway_Assitant = 0U;
203 Highway_Assitant_DW.is_c1_Highway_Assitant = Highway_Assi_IN_NO_ACTIVE_CHILD;
204 }
205
206 /*
207 * File trailer for generated code.
208 *
209 * [EOF]
210 */
211

File: Highway_Assitant.h

1 /*
2 * File: Highway_Assitant.h
3 *
4 * Code generated for Simulink model 'Highway_Assitant'.
5 *
6 * Model version : 1.16
7 * Simulink Coder version : 9.5 (R2021a) 14-Nov-2020
8 * C/C++ source code generated on : Sat Jan 15 21:21:32 2022
9 *
10 * Target selection: autosar.tlc
11 * Embedded hardware selection: Intel->x86-64 (Windows64)
12 * Code generation objectives: Unspecified
13 * Validation result: Not run
14 */
15
16 #ifndef RTW_HEADER_Highway_Assitant_h_
17 #define RTW_HEADER_Highway_Assitant_h_
18 #include <string.h>
19 #ifndef Highway_Assitant_COMMON_INCLUDES_
20 #define Highway_Assitant_COMMON_INCLUDES_
21 #include "rtwtypes.h"
22 #include "Rte_Highway_Assitant.h"
23 #endif /* Highway_Assitant_COMMON_INCLUDES_ */
24
25 #include "Highway_Assitant_types.h"
26
27 /* Macros for accessing real-time model data structure */
28
29 /* Block states (default storage) for system '<Root>' */
30 typedef struct tag_DW_Highway_Assitant_T {
31 uint8 is_active_c1_Highway_Assitant; /* '<S3>/Chart' */
32 uint8 is_c1_Highway_Assitant; /* '<S3>/Chart' */
33 uint8 is_active_c3_Highway_Assitant; /* '<S2>/Chart' */
34 uint8 is_c3_Highway_Assitant; /* '<S2>/Chart' */
35 } DW_Highway_Assitant_T;
36
37 /* Block states (default storage) */
38 extern DW_Highway_Assitant_T Highway_Assitant_DW;
39
40 /*-
41 * The generated code includes comments that allow you to trace directly
42 * back to the appropriate location in the model. The basic format
43 * is <system>/block_name, where system is the system number (uniquely
44 * assigned by Simulink) and block_name is the name of the block.
45 *
46 * Use the MATLAB hilite_system command to trace the generated code back
47 * to the model. For example,
48 *
49 * hilite_system('<S3>') - opens system 3
50 * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
51 *
52 * Here is the system hierarchy for this model
53 *
54 * '<Root>' : 'Highway_Assitant'
55 * '<S1>' : 'Highway_Assitant/Highway_Assistant_Lane_Changing_Assistant'
56 * '<S2>' : 'Highway_Assitant/Highway_Assistant_Lane_Changing_Assistant/Highway_DisplayUnit'
57 * '<S3>' : 'Highway_Assitant/Highway_Assistant_Lane_Changing_Assistant/Lane_DisplayUnit'
58 * '<S4>' : 'Highway_Assitant/Highway_Assistant_Lane_Changing_Assistant/Highway_DisplayUnit/Chart'
59 * '<S5>' : 'Highway_Assitant/Highway_Assistant_Lane_Changing_Assistant/Lane_DisplayUnit/Chart'
60 */
61
62 /*-
63 * Requirements for '<Root>': Highway_Assitant
64 *
65 * Inherited requirements for '<Root>/Highway_Assistant_Lane_Changing_Assistant':
66 * 1. Highway Assistant – Lane Changing Assistant
67 *
68 * Inherited requirements for '<S1>/Highway_DisplayUnit':
69 * 1. Requirement No 1 [Highway_DisplayUnit
70 *
71 * Inherited requirements for '<S1>/Lane_DisplayUnit':
72 * 1. Requirement No 2 [Lane_DisplayUnit
73
74 */
75 #endif /* RTW_HEADER_Highway_Assitant_h_ */
76
77 /*
78 * File trailer for generated code.
79 *
80 * [EOF]
81 */
82

File: Highway_Assitant_private.h

1 /*
2 * File: Highway_Assitant_private.h
3 *
4 * Code generated for Simulink model 'Highway_Assitant'.
5 *
6 * Model version : 1.16
7 * Simulink Coder version : 9.5 (R2021a) 14-Nov-2020
8 * C/C++ source code generated on : Sat Jan 15 21:21:32 2022
9 *
10 * Target selection: autosar.tlc
11 * Embedded hardware selection: Intel->x86-64 (Windows64)
12 * Code generation objectives: Unspecified
13 * Validation result: Not run
14 */
15
16 #ifndef RTW_HEADER_Highway_Assitant_private_h_
17 #define RTW_HEADER_Highway_Assitant_private_h_
18 #include "rtwtypes.h"
19 #endif /* RTW_HEADER_Highway_Assitant_private_h_ */
20
21 /*
22 * File trailer for generated code.
23 *
24 * [EOF]
25 */
26

File: Highway_Assitant_types.h

1 /*
2 * File: Highway_Assitant_types.h
3 *
4 * Code generated for Simulink model 'Highway_Assitant'.
5 *
6 * Model version : 1.16
7 * Simulink Coder version : 9.5 (R2021a) 14-Nov-2020
8 * C/C++ source code generated on : Sat Jan 15 21:21:32 2022
9 *
10 * Target selection: autosar.tlc
11 * Embedded hardware selection: Intel->x86-64 (Windows64)
12 * Code generation objectives: Unspecified
13 * Validation result: Not run
14 */
15
16 #ifndef RTW_HEADER_Highway_Assitant_types_h_
17 #define RTW_HEADER_Highway_Assitant_types_h_
18
19 /* Model Code Variants */
20 #endif /* RTW_HEADER_Highway_Assitant_types_h_ */
21
22 /*
23 * File trailer for generated code.
24 *
25 * [EOF]
26 */
27

File: rtwtypes.h

1 /*
2 * File: rtwtypes.h
3 *
4 * Code generated for Simulink model 'Highway_Assitant'.
5 *
6 * Model version : 1.16
7 * Simulink Coder version : 9.5 (R2021a) 14-Nov-2020
8 * C/C++ source code generated on : Sat Jan 15 21:21:32 2022
9 */
10
11 #ifndef RTWTYPES_H
12 #define RTWTYPES_H
13
14 /* Logical type definitions */
15 #if (!defined(__cplusplus))
16 #ifndef false
17 #define false (0U)
18 #endif
19
20 #ifndef true
21 #define true (1U)
22 #endif
23 #endif
24
25 /*=======================================================================*
26 * Target hardware information
27 * Device type: Intel->x86-64 (Windows64)
28 * Number of bits: char: 8 short: 16 int: 32
29 * long: 32
30 * native word size: 64
31 * Byte ordering: LittleEndian
32 * Signed integer division rounds to: Zero
33 * Shift right on a signed integer as arithmetic shift: on
34 *=======================================================================*/
35
36 /*=======================================================================*
37 * Fixed width word size data types: *
38 * int8_T, int16_T, int32_T - signed 8, 16, or 32 bit integers *
39 * uint8_T, uint16_T, uint32_T - unsigned 8, 16, or 32 bit integers *
40 * real32_T, real64_T - 32 and 64 bit floating point numbers *
41 *=======================================================================*/
42 typedef signed char int8_T;
43 typedef unsigned char uint8_T;
44 typedef short int16_T;
45 typedef unsigned short uint16_T;
46 typedef int int32_T;
47 typedef unsigned int uint32_T;
48 typedef float real32_T;
49 typedef double real64_T;
50
51 /*===========================================================================*
52 * Generic type definitions: boolean_T, char_T, byte_T, int_T, uint_T, *
53 * real_T, time_T, ulong_T. *
54 *===========================================================================*/
55 typedef double real_T;
56 typedef double time_T;
57 typedef unsigned char boolean_T;
58 typedef int int_T;
59 typedef unsigned int uint_T;
60 typedef unsigned long ulong_T;
61 typedef char char_T;
62 typedef unsigned char uchar_T;
63 typedef char_T byte_T;
64
65 /*=======================================================================*
66 * Min and Max: *
67 * int8_T, int16_T, int32_T - signed 8, 16, or 32 bit integers *
68 * uint8_T, uint16_T, uint32_T - unsigned 8, 16, or 32 bit integers *
69 *=======================================================================*/
70 #define MAX_int8_T ((int8_T)(127))
71 #define MIN_int8_T ((int8_T)(-128))
72 #define MAX_uint8_T ((uint8_T)(255U))
73 #define MAX_int16_T ((int16_T)(32767))
74 #define MIN_int16_T ((int16_T)(-32768))
75 #define MAX_uint16_T ((uint16_T)(65535U))
76 #define MAX_int32_T ((int32_T)(2147483647))
77 #define MIN_int32_T ((int32_T)(-2147483647-1))
78 #define MAX_uint32_T ((uint32_T)(0xFFFFFFFFU))
79
80 /* Block D-Work pointer type */
81 typedef void * pointer_T;
82
83 /* Include definitions for AUTOSAR Standard and Platform data types. */
84 #include "Std_Types.h"
85 #endif /* RTWTYPES_H */
86
87 /*
88 * File trailer for generated code.
89 *
90 * [EOF]
91 */
92

File: Highway_Assitant_component.arxml

1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Auto generated XML Component Description for model Highway_Assitant
4 Model version : 1.16
5 Simulink Coder version : Simulink Coder 9.5 (R2021a) 14-Nov-2020
6 XML source code generated on : Sat Jan 15 21:26:41 2022
7 Model Checksum : 2812241236 180867976 3582832718 1549763525
8 -->
9 <AUTOSAR xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://autosar.org/schema/r4.0 AUTOSAR_4-3-1.xsd">
10 <AR-PACKAGES>
11 <AR-PACKAGE>
12 <SHORT-NAME>Components</SHORT-NAME>
13 <ELEMENTS>
14 <APPLICATION-SW-COMPONENT-TYPE UUID="5d599b14-996b-5807-9b4d-01ed95c5585c">
15 <SHORT-NAME>Highway_Assitant</SHORT-NAME>
16 <PORTS>
17 <R-PORT-PROTOTYPE UUID="df927a00-3708-583d-db80-4ab2a5cab41f">
18 <SHORT-NAME>Rp_Highway_Input_Signal</SHORT-NAME>
19 <REQUIRED-COM-SPECS>
20 <NONQUEUED-RECEIVER-COM-SPEC>
21 <DATA-ELEMENT-REF DEST="VARIABLE-DATA-PROTOTYPE">/Interfaces/SRIf_Highway_Input_Signal/DE_Highway_Input_Signal</DATA-ELEMENT-REF>
22 <HANDLE-OUT-OF-RANGE>NONE</HANDLE-OUT-OF-RANGE>
23 <USES-END-TO-END-PROTECTION>false</USES-END-TO-END-PROTECTION>
24 <ALIVE-TIMEOUT>0</ALIVE-TIMEOUT>
25 <ENABLE-UPDATE>false</ENABLE-UPDATE>
26 <HANDLE-NEVER-RECEIVED>false</HANDLE-NEVER-RECEIVED>
27 <HANDLE-TIMEOUT-TYPE>NONE</HANDLE-TIMEOUT-TYPE>
28 <INIT-VALUE>
29 <NUMERICAL-VALUE-SPECIFICATION>
30 <SHORT-LABEL>DefaultInitValue_UInt8</SHORT-LABEL>
31 <VALUE>0</VALUE>
32 </NUMERICAL-VALUE-SPECIFICATION>
33 </INIT-VALUE>
34 </NONQUEUED-RECEIVER-COM-SPEC>
35 </REQUIRED-COM-SPECS>
36 <REQUIRED-INTERFACE-TREF DEST="SENDER-RECEIVER-INTERFACE">/Interfaces/SRIf_Highway_Input_Signal</REQUIRED-INTERFACE-TREF>
37 </R-PORT-PROTOTYPE>
38 <R-PORT-PROTOTYPE UUID="70b2043a-e650-54bd-f28b-3aa7f1f2a5f7">
39 <SHORT-NAME>Rp_Enable_Display</SHORT-NAME>
40 <REQUIRED-COM-SPECS>
41 <NONQUEUED-RECEIVER-COM-SPEC>
42 <DATA-ELEMENT-REF DEST="VARIABLE-DATA-PROTOTYPE">/Interfaces/SRIf_Enable_Display/DE_Enable_Display</DATA-ELEMENT-REF>
43 <HANDLE-OUT-OF-RANGE>NONE</HANDLE-OUT-OF-RANGE>
44 <USES-END-TO-END-PROTECTION>false</USES-END-TO-END-PROTECTION>
45 <ALIVE-TIMEOUT>0</ALIVE-TIMEOUT>
46 <ENABLE-UPDATE>false</ENABLE-UPDATE>
47 <HANDLE-NEVER-RECEIVED>false</HANDLE-NEVER-RECEIVED>
48 <HANDLE-TIMEOUT-TYPE>NONE</HANDLE-TIMEOUT-TYPE>
49 <INIT-VALUE>
50 <NUMERICAL-VALUE-SPECIFICATION>
51 <SHORT-LABEL>DefaultInitValue_UInt8</SHORT-LABEL>
52 <VALUE>0</VALUE>
53 </NUMERICAL-VALUE-SPECIFICATION>
54 </INIT-VALUE>
55 </NONQUEUED-RECEIVER-COM-SPEC>
56 </REQUIRED-COM-SPECS>
57 <REQUIRED-INTERFACE-TREF DEST="SENDER-RECEIVER-INTERFACE">/Interfaces/SRIf_Enable_Display</REQUIRED-INTERFACE-TREF>
58 </R-PORT-PROTOTYPE>
59 <R-PORT-PROTOTYPE UUID="06dccd29-3d5e-5f51-d536-11416d19038c">
60 <SHORT-NAME>Rp_Input_Switch</SHORT-NAME>
61 <REQUIRED-COM-SPECS>
62 <NONQUEUED-RECEIVER-COM-SPEC>
63 <DATA-ELEMENT-REF DEST="VARIABLE-DATA-PROTOTYPE">/Interfaces/SRIf_Input_Switch/DE_Input_Switch__</DATA-ELEMENT-REF>
64 <HANDLE-OUT-OF-RANGE>NONE</HANDLE-OUT-OF-RANGE>
65 <USES-END-TO-END-PROTECTION>false</USES-END-TO-END-PROTECTION>
66 <ALIVE-TIMEOUT>0</ALIVE-TIMEOUT>
67 <ENABLE-UPDATE>false</ENABLE-UPDATE>
68 <HANDLE-NEVER-RECEIVED>false</HANDLE-NEVER-RECEIVED>
69 <HANDLE-TIMEOUT-TYPE>NONE</HANDLE-TIMEOUT-TYPE>
70 <INIT-VALUE>
71 <NUMERICAL-VALUE-SPECIFICATION>
72 <SHORT-LABEL>DefaultInitValue_UInt8</SHORT-LABEL>
73 <VALUE>0</VALUE>
74 </NUMERICAL-VALUE-SPECIFICATION>
75 </INIT-VALUE>
76 </NONQUEUED-RECEIVER-COM-SPEC>
77 </REQUIRED-COM-SPECS>
78 <REQUIRED-INTERFACE-TREF DEST="SENDER-RECEIVER-INTERFACE">/Interfaces/SRIf_Input_Switch</REQUIRED-INTERFACE-TREF>
79 </R-PORT-PROTOTYPE>
80 <R-PORT-PROTOTYPE UUID="c9244f05-7dfb-52f6-6393-306e4fe7eb4f">
81 <SHORT-NAME>Rp_Lane_Input_Signal</SHORT-NAME>
82 <REQUIRED-COM-SPECS>
83 <NONQUEUED-RECEIVER-COM-SPEC>
84 <DATA-ELEMENT-REF DEST="VARIABLE-DATA-PROTOTYPE">/Interfaces/SRIf_Lane_Input_Signal/DE_Lane_Input_Signal</DATA-ELEMENT-REF>
85 <HANDLE-OUT-OF-RANGE>NONE</HANDLE-OUT-OF-RANGE>
86 <USES-END-TO-END-PROTECTION>false</USES-END-TO-END-PROTECTION>
87 <ALIVE-TIMEOUT>0</ALIVE-TIMEOUT>
88 <ENABLE-UPDATE>false</ENABLE-UPDATE>
89 <HANDLE-NEVER-RECEIVED>false</HANDLE-NEVER-RECEIVED>
90 <HANDLE-TIMEOUT-TYPE>NONE</HANDLE-TIMEOUT-TYPE>
91 <INIT-VALUE>
92 <NUMERICAL-VALUE-SPECIFICATION>
93 <SHORT-LABEL>DefaultInitValue_UInt8</SHORT-LABEL>
94 <VALUE>0</VALUE>
95 </NUMERICAL-VALUE-SPECIFICATION>
96 </INIT-VALUE>
97 </NONQUEUED-RECEIVER-COM-SPEC>
98 </REQUIRED-COM-SPECS>
99 <REQUIRED-INTERFACE-TREF DEST="SENDER-RECEIVER-INTERFACE">/Interfaces/SRIf_Lane_Input_Signal</REQUIRED-INTERFACE-TREF>
100 </R-PORT-PROTOTYPE>
101 <R-PORT-PROTOTYPE UUID="a97ac044-1e4e-5113-5e2e-8baa5a872342">
102 <SHORT-NAME>Rp_Highway_Display_Mode_2</SHORT-NAME>
103 <REQUIRED-INTERFACE-TREF DEST="SENDER-RECEIVER-INTERFACE">/Interfaces/SRIf_Highway_Display_Mode_2</REQUIRED-INTERFACE-TREF>
104 </R-PORT-PROTOTYPE>
105 <R-PORT-PROTOTYPE UUID="3df325b9-0aa4-5345-a5c3-a7b021b4191e">
106 <SHORT-NAME>Rp_Highway_Display_Mode_1</SHORT-NAME>
107 <REQUIRED-INTERFACE-TREF DEST="SENDER-RECEIVER-INTERFACE">/Interfaces/SRIf_Highway_Display_Mode_1</REQUIRED-INTERFACE-TREF>
108 </R-PORT-PROTOTYPE>
109 <R-PORT-PROTOTYPE UUID="ff2e340c-55b3-5280-0aeb-d277b827652c">
110 <SHORT-NAME>Rp_Highway_Display_Mode_3</SHORT-NAME>
111 <REQUIRED-INTERFACE-TREF DEST="SENDER-RECEIVER-INTERFACE">/Interfaces/SRIf_Highway_Display_Mode_3</REQUIRED-INTERFACE-TREF>
112 </R-PORT-PROTOTYPE>
113 <R-PORT-PROTOTYPE UUID="57511695-4210-5b66-d0d0-dab6fbb5a01c">
114 <SHORT-NAME>Rp_Highway_Display_Mode_4</SHORT-NAME>
115 <REQUIRED-INTERFACE-TREF DEST="SENDER-RECEIVER-INTERFACE">/Interfaces/SRIf_Highway_Display_Mode_4</REQUIRED-INTERFACE-TREF>
116 </R-PORT-PROTOTYPE>
117 <R-PORT-PROTOTYPE UUID="c47b5f67-abb1-5e25-e8e7-565b45a3023f">
118 <SHORT-NAME>Rp_Lane_Display_Mode_1</SHORT-NAME>
119 <REQUIRED-INTERFACE-TREF DEST="SENDER-RECEIVER-INTERFACE">/Interfaces/SRIf_Lane_Display_Mode_1</REQUIRED-INTERFACE-TREF>
120 </R-PORT-PROTOTYPE>
121 <R-PORT-PROTOTYPE UUID="6761a11f-d48c-5e96-4aca-b6a413c1bf76">
122 <SHORT-NAME>Rp_Lane_Display_Mode_2</SHORT-NAME>
123 <REQUIRED-INTERFACE-TREF DEST="SENDER-RECEIVER-INTERFACE">/Interfaces/SRIf_Lane_Display_Mode_2</REQUIRED-INTERFACE-TREF>
124 </R-PORT-PROTOTYPE>
125 <R-PORT-PROTOTYPE UUID="fe22faa9-329a-5e1d-109b-729281dbf5e7">
126 <SHORT-NAME>Rp_Lane_Display_Mode_3</SHORT-NAME>
127 <REQUIRED-INTERFACE-TREF DEST="SENDER-RECEIVER-INTERFACE">/Interfaces/SFIf_Display_Mode_3</REQUIRED-INTERFACE-TREF>
128 </R-PORT-PROTOTYPE>
129 <R-PORT-PROTOTYPE UUID="f6691ea4-81a3-558a-2113-651a97b20c53">
130 <SHORT-NAME>Rp_Lane_Display_Mode_4</SHORT-NAME>
131 <REQUIRED-INTERFACE-TREF DEST="SENDER-RECEIVER-INTERFACE">/Interfaces/SRIf_Lane_Display_Mode_4</REQUIRED-INTERFACE-TREF>
132 </R-PORT-PROTOTYPE>
133 <P-PORT-PROTOTYPE UUID="ee1ace0d-17b7-5220-84b3-b57cb1fdcdb0">
134 <SHORT-NAME>Pp_Display_Mode_1</SHORT-NAME>
135 <PROVIDED-COM-SPECS>
136 <NONQUEUED-SENDER-COM-SPEC>
137 <DATA-ELEMENT-REF DEST="VARIABLE-DATA-PROTOTYPE">/Interfaces/SRIf_Display_Mode_1/DE_Display_Mode_1</DATA-ELEMENT-REF>
138 <HANDLE-OUT-OF-RANGE>NONE</HANDLE-OUT-OF-RANGE>
139 <USES-END-TO-END-PROTECTION>false</USES-END-TO-END-PROTECTION>
140 <INIT-VALUE>
141 <NUMERICAL-VALUE-SPECIFICATION>
142 <SHORT-LABEL>DefaultInitValue_Double</SHORT-LABEL>
143 <VALUE>0</VALUE>
144 </NUMERICAL-VALUE-SPECIFICATION>
145 </INIT-VALUE>
146 </NONQUEUED-SENDER-COM-SPEC>
147 </PROVIDED-COM-SPECS>
148 <PROVIDED-INTERFACE-TREF DEST="SENDER-RECEIVER-INTERFACE">/Interfaces/SRIf_Display_Mode_1</PROVIDED-INTERFACE-TREF>
149 </P-PORT-PROTOTYPE>
150 <P-PORT-PROTOTYPE UUID="f0556832-0b0a-5518-6cd5-5f413a961cfd">
151 <SHORT-NAME>Pp_Display_Mode_2</SHORT-NAME>
152 <PROVIDED-COM-SPECS>
153 <NONQUEUED-SENDER-COM-SPEC>
154 <DATA-ELEMENT-REF DEST="VARIABLE-DATA-PROTOTYPE">/Interfaces/SRIf_Display_Mode_2/DE_Display_Mode_2</DATA-ELEMENT-REF>
155 <HANDLE-OUT-OF-RANGE>NONE</HANDLE-OUT-OF-RANGE>
156 <USES-END-TO-END-PROTECTION>false</USES-END-TO-END-PROTECTION>
157 <INIT-VALUE>
158 <NUMERICAL-VALUE-SPECIFICATION>
159 <SHORT-LABEL>DefaultInitValue_Double</SHORT-LABEL>
160 <VALUE>0</VALUE>
161 </NUMERICAL-VALUE-SPECIFICATION>
162 </INIT-VALUE>
163 </NONQUEUED-SENDER-COM-SPEC>
164 </PROVIDED-COM-SPECS>
165 <PROVIDED-INTERFACE-TREF DEST="SENDER-RECEIVER-INTERFACE">/Interfaces/SRIf_Display_Mode_2</PROVIDED-INTERFACE-TREF>
166 </P-PORT-PROTOTYPE>
167 <P-PORT-PROTOTYPE UUID="40de9e0e-3678-5348-a6cd-9b4f8d5db70b">
168 <SHORT-NAME>Pp_Display_Mode_3</SHORT-NAME>
169 <PROVIDED-COM-SPECS>
170 <NONQUEUED-SENDER-COM-SPEC>
171 <DATA-ELEMENT-REF DEST="VARIABLE-DATA-PROTOTYPE">/Interfaces/SFIf_Display_Mode_3/DE_Display_Mode_3</DATA-ELEMENT-REF>
172 <HANDLE-OUT-OF-RANGE>NONE</HANDLE-OUT-OF-RANGE>
173 <USES-END-TO-END-PROTECTION>false</USES-END-TO-END-PROTECTION>
174 <INIT-VALUE>
175 <NUMERICAL-VALUE-SPECIFICATION>
176 <SHORT-LABEL>DefaultInitValue_Double</SHORT-LABEL>
177 <VALUE>0</VALUE>
178 </NUMERICAL-VALUE-SPECIFICATION>
179 </INIT-VALUE>
180 </NONQUEUED-SENDER-COM-SPEC>
181 </PROVIDED-COM-SPECS>
182 <PROVIDED-INTERFACE-TREF DEST="SENDER-RECEIVER-INTERFACE">/Interfaces/SFIf_Display_Mode_3</PROVIDED-INTERFACE-TREF>
183 </P-PORT-PROTOTYPE>
184 <P-PORT-PROTOTYPE UUID="885e27ab-2833-5565-bea4-9db9061e7e43">
185 <SHORT-NAME>Pp_Display_Mode_4</SHORT-NAME>
186 <PROVIDED-COM-SPECS>
187 <NONQUEUED-SENDER-COM-SPEC>
188 <DATA-ELEMENT-REF DEST="VARIABLE-DATA-PROTOTYPE">/Interfaces/SRIf_Display_Mode_4/DE_Display_Mode_4__</DATA-ELEMENT-REF>
189 <HANDLE-OUT-OF-RANGE>NONE</HANDLE-OUT-OF-RANGE>
190 <USES-END-TO-END-PROTECTION>false</USES-END-TO-END-PROTECTION>
191 <INIT-VALUE>
192 <NUMERICAL-VALUE-SPECIFICATION>
193 <SHORT-LABEL>DefaultInitValue_Double</SHORT-LABEL>
194 <VALUE>0</VALUE>
195 </NUMERICAL-VALUE-SPECIFICATION>
196 </INIT-VALUE>
197 </NONQUEUED-SENDER-COM-SPEC>
198 </PROVIDED-COM-SPECS>
199 <PROVIDED-INTERFACE-TREF DEST="SENDER-RECEIVER-INTERFACE">/Interfaces/SRIf_Display_Mode_4</PROVIDED-INTERFACE-TREF>
200 </P-PORT-PROTOTYPE>
201 </PORTS>
202 <INTERNAL-BEHAVIORS>
203 <SWC-INTERNAL-BEHAVIOR UUID="2193ba79-713e-5816-f16c-e692e64079f5">
204 <SHORT-NAME>Highway_Assitant_IB</SHORT-NAME>
205 <EVENTS>
206 <TIMING-EVENT UUID="0133a891-25c5-5ffc-db47-cd34c9474197">
207 <SHORT-NAME>Event_Highway_Assitant_Step</SHORT-NAME>
208 <START-ON-EVENT-REF DEST="RUNNABLE-ENTITY">/Components/Highway_Assitant/Highway_Assitant_IB/Highway_Assitant_Step</START-ON-EVENT-REF>
209 <PERIOD>0.2</PERIOD>
210 </TIMING-EVENT>
211 </EVENTS>
212 <HANDLE-TERMINATION-AND-RESTART>NO-SUPPORT</HANDLE-TERMINATION-AND-RESTART>
213 <RUNNABLES>
214 <RUNNABLE-ENTITY UUID="83adcdff-e516-502a-ace2-d6cd055d6608">
215 <SHORT-NAME>Highway_Assitant_Init</SHORT-NAME>
216 <MINIMUM-START-INTERVAL>0</MINIMUM-START-INTERVAL>
217 <CAN-BE-INVOKED-CONCURRENTLY>false</CAN-BE-INVOKED-CONCURRENTLY>
218 <SYMBOL>Highway_Assitant_Init</SYMBOL>
219 </RUNNABLE-ENTITY>
220 <RUNNABLE-ENTITY UUID="cb91b20a-c5c1-50dc-0906-6ae34ecb6786">
221 <SHORT-NAME>Highway_Assitant_Step</SHORT-NAME>
222 <MINIMUM-START-INTERVAL>0</MINIMUM-START-INTERVAL>
223 <CAN-BE-INVOKED-CONCURRENTLY>false</CAN-BE-INVOKED-CONCURRENTLY>
224 <DATA-READ-ACCESSS>
225 <VARIABLE-ACCESS UUID="e3d90277-58db-5726-1043-0d2cf1f64e9b">
226 <SHORT-NAME>IN_Rp_Enable_Display_DE_Enable_Display</SHORT-NAME>
227 <ACCESSED-VARIABLE>
228 <AUTOSAR-VARIABLE-IREF>
229 <PORT-PROTOTYPE-REF DEST="R-PORT-PROTOTYPE">/Components/Highway_Assitant/Rp_Enable_Display</PORT-PROTOTYPE-REF>
230 <TARGET-DATA-PROTOTYPE-REF DEST="VARIABLE-DATA-PROTOTYPE">/Interfaces/SRIf_Enable_Display/DE_Enable_Display</TARGET-DATA-PROTOTYPE-REF>
231 </AUTOSAR-VARIABLE-IREF>
232 </ACCESSED-VARIABLE>
233 </VARIABLE-ACCESS>
234 <VARIABLE-ACCESS UUID="cf172c37-fe6f-56da-0e33-26dc50797f15">
235 <SHORT-NAME>IN_Rp_Highway_Input_Signal_DE_Highway_Input_Signal</SHORT-NAME>
236 <ACCESSED-VARIABLE>
237 <AUTOSAR-VARIABLE-IREF>
238 <PORT-PROTOTYPE-REF DEST="R-PORT-PROTOTYPE">/Components/Highway_Assitant/Rp_Highway_Input_Signal</PORT-PROTOTYPE-REF>
239 <TARGET-DATA-PROTOTYPE-REF DEST="VARIABLE-DATA-PROTOTYPE">/Interfaces/SRIf_Highway_Input_Signal/DE_Highway_Input_Signal</TARGET-DATA-PROTOTYPE-REF>
240 </AUTOSAR-VARIABLE-IREF>
241 </ACCESSED-VARIABLE>
242 </VARIABLE-ACCESS>
243 <VARIABLE-ACCESS UUID="59a5ae7b-21e1-58d3-c42c-6c6577dfd072">
244 <SHORT-NAME>IN_Rp_Input_Switch_DE_Input_Switch</SHORT-NAME>
245 <ACCESSED-VARIABLE>
246 <AUTOSAR-VARIABLE-IREF>
247 <PORT-PROTOTYPE-REF DEST="R-PORT-PROTOTYPE">/Components/Highway_Assitant/Rp_Input_Switch</PORT-PROTOTYPE-REF>
248 <TARGET-DATA-PROTOTYPE-REF DEST="VARIABLE-DATA-PROTOTYPE">/Interfaces/SRIf_Input_Switch/DE_Input_Switch__</TARGET-DATA-PROTOTYPE-REF>
249 </AUTOSAR-VARIABLE-IREF>
250 </ACCESSED-VARIABLE>
251 </VARIABLE-ACCESS>
252 <VARIABLE-ACCESS UUID="fc280ca2-554d-564d-3db9-e729c86bc46b">
253 <SHORT-NAME>IN_Rp_Lane_Input_Signal_DE_Lane_Input_Signal</SHORT-NAME>
254 <ACCESSED-VARIABLE>
255 <AUTOSAR-VARIABLE-IREF>
256 <PORT-PROTOTYPE-REF DEST="R-PORT-PROTOTYPE">/Components/Highway_Assitant/Rp_Lane_Input_Signal</PORT-PROTOTYPE-REF>
257 <TARGET-DATA-PROTOTYPE-REF DEST="VARIABLE-DATA-PROTOTYPE">/Interfaces/SRIf_Lane_Input_Signal/DE_Lane_Input_Signal</TARGET-DATA-PROTOTYPE-REF>
258 </AUTOSAR-VARIABLE-IREF>
259 </ACCESSED-VARIABLE>
260 </VARIABLE-ACCESS>
261 </DATA-READ-ACCESSS>
262 <DATA-WRITE-ACCESSS>
263 <VARIABLE-ACCESS UUID="b93b71cb-5f9e-5542-2e2d-34330a82f73b">
264 <SHORT-NAME>OUT_Pp_Display_Mode_1_DE_Display_Mode_1</SHORT-NAME>
265 <ACCESSED-VARIABLE>
266 <AUTOSAR-VARIABLE-IREF>
267 <PORT-PROTOTYPE-REF DEST="P-PORT-PROTOTYPE">/Components/Highway_Assitant/Pp_Display_Mode_1</PORT-PROTOTYPE-REF>
268 <TARGET-DATA-PROTOTYPE-REF DEST="VARIABLE-DATA-PROTOTYPE">/Interfaces/SRIf_Display_Mode_1/DE_Display_Mode_1</TARGET-DATA-PROTOTYPE-REF>
269 </AUTOSAR-VARIABLE-IREF>
270 </ACCESSED-VARIABLE>
271 </VARIABLE-ACCESS>
272 <VARIABLE-ACCESS UUID="87e5aa4f-7049-50df-9f5a-5d05de4e9d3f">
273 <SHORT-NAME>OUT_Pp_Display_Mode_2_DE_Display_Mode_2</SHORT-NAME>
274 <ACCESSED-VARIABLE>
275 <AUTOSAR-VARIABLE-IREF>
276 <PORT-PROTOTYPE-REF DEST="P-PORT-PROTOTYPE">/Components/Highway_Assitant/Pp_Display_Mode_2</PORT-PROTOTYPE-REF>
277 <TARGET-DATA-PROTOTYPE-REF DEST="VARIABLE-DATA-PROTOTYPE">/Interfaces/SRIf_Display_Mode_2/DE_Display_Mode_2</TARGET-DATA-PROTOTYPE-REF>
278 </AUTOSAR-VARIABLE-IREF>
279 </ACCESSED-VARIABLE>
280 </VARIABLE-ACCESS>
281 <VARIABLE-ACCESS UUID="2d681143-fb70-5864-7555-c9333b256c48">
282 <SHORT-NAME>OUT_Pp_Display_Mode_3_DE_Display_Mode_3</SHORT-NAME>
283 <ACCESSED-VARIABLE>
284 <AUTOSAR-VARIABLE-IREF>
285 <PORT-PROTOTYPE-REF DEST="P-PORT-PROTOTYPE">/Components/Highway_Assitant/Pp_Display_Mode_3</PORT-PROTOTYPE-REF>
286 <TARGET-DATA-PROTOTYPE-REF DEST="VARIABLE-DATA-PROTOTYPE">/Interfaces/SFIf_Display_Mode_3/DE_Display_Mode_3</TARGET-DATA-PROTOTYPE-REF>
287 </AUTOSAR-VARIABLE-IREF>
288 </ACCESSED-VARIABLE>
289 </VARIABLE-ACCESS>
290 <VARIABLE-ACCESS UUID="4ad71250-6fd0-5c9c-ec40-233b047c4e62">
291 <SHORT-NAME>OUT_Pp_Display_Mode_4_DE_Display_Mode_4</SHORT-NAME>
292 <ACCESSED-VARIABLE>
293 <AUTOSAR-VARIABLE-IREF>
294 <PORT-PROTOTYPE-REF DEST="P-PORT-PROTOTYPE">/Components/Highway_Assitant/Pp_Display_Mode_4</PORT-PROTOTYPE-REF>
295 <TARGET-DATA-PROTOTYPE-REF DEST="VARIABLE-DATA-PROTOTYPE">/Interfaces/SRIf_Display_Mode_4/DE_Display_Mode_4__</TARGET-DATA-PROTOTYPE-REF>
296 </AUTOSAR-VARIABLE-IREF>
297 </ACCESSED-VARIABLE>
298 </VARIABLE-ACCESS>
299 </DATA-WRITE-ACCESSS>
300 <SYMBOL>Highway_Assitant_Step</SYMBOL>
301 </RUNNABLE-ENTITY>
302 </RUNNABLES>
303 <SUPPORTS-MULTIPLE-INSTANTIATION>false</SUPPORTS-MULTIPLE-INSTANTIATION>
304 </SWC-INTERNAL-BEHAVIOR>
305 </INTERNAL-BEHAVIORS>
306 </APPLICATION-SW-COMPONENT-TYPE>
307 </ELEMENTS>
308 </AR-PACKAGE>
309 </AR-PACKAGES>
310 </AUTOSAR>
311

File: Highway_Assitant_datatype.arxml

1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Auto generated XML Component Description for model Highway_Assitant
4 Model version : 1.16
5 Simulink Coder version : Simulink Coder 9.5 (R2021a) 14-Nov-2020
6 XML source code generated on : Sat Jan 15 21:26:41 2022
7 Model Checksum : 2812241236 180867976 3582832718 1549763525
8 -->
9 <AUTOSAR xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://autosar.org/schema/r4.0 AUTOSAR_4-3-1.xsd">
10 <AR-PACKAGES>
11 <AR-PACKAGE>
12 <SHORT-NAME>DataTypes</SHORT-NAME>
13 <ELEMENTS>
14 <IMPLEMENTATION-DATA-TYPE UUID="224327c8-b8b0-5a89-4de8-3c34a97c9f82">
15 <SHORT-NAME>UInt8</SHORT-NAME>
16 <CATEGORY>VALUE</CATEGORY>
17 <SW-DATA-DEF-PROPS>
18 <SW-DATA-DEF-PROPS-VARIANTS>
19 <SW-DATA-DEF-PROPS-CONDITIONAL>
20 <BASE-TYPE-REF DEST="SW-BASE-TYPE">/DataTypes/SwBaseTypes/uint8</BASE-TYPE-REF>
21 </SW-DATA-DEF-PROPS-CONDITIONAL>
22 </SW-DATA-DEF-PROPS-VARIANTS>
23 </SW-DATA-DEF-PROPS>
24 </IMPLEMENTATION-DATA-TYPE>
25 <IMPLEMENTATION-DATA-TYPE UUID="538de8f1-ff25-524c-32d7-4fb83acb77eb">
26 <SHORT-NAME>Double</SHORT-NAME>
27 <CATEGORY>VALUE</CATEGORY>
28 <SW-DATA-DEF-PROPS>
29 <SW-DATA-DEF-PROPS-VARIANTS>
30 <SW-DATA-DEF-PROPS-CONDITIONAL>
31 <BASE-TYPE-REF DEST="SW-BASE-TYPE">/DataTypes/SwBaseTypes/float64</BASE-TYPE-REF>
32 </SW-DATA-DEF-PROPS-CONDITIONAL>
33 </SW-DATA-DEF-PROPS-VARIANTS>
34 </SW-DATA-DEF-PROPS>
35 </IMPLEMENTATION-DATA-TYPE>
36 </ELEMENTS>
37 <AR-PACKAGES>
38 <AR-PACKAGE>
39 <SHORT-NAME>SwBaseTypes</SHORT-NAME>
40 <ELEMENTS>
41 <SW-BASE-TYPE UUID="bd05b892-51f7-5367-ffac-db8ff26b1d29">
42 <SHORT-NAME>uint8</SHORT-NAME>
43 <CATEGORY>FIXED_LENGTH</CATEGORY>
44 <BASE-TYPE-SIZE>8</BASE-TYPE-SIZE>
45 <BASE-TYPE-ENCODING>NONE</BASE-TYPE-ENCODING>
46 <NATIVE-DECLARATION>uint8</NATIVE-DECLARATION>
47 </SW-BASE-TYPE>
48 <SW-BASE-TYPE UUID="dd02f381-2692-5809-5bc3-b5452ebd60bc">
49 <SHORT-NAME>float64</SHORT-NAME>
50 <CATEGORY>FIXED_LENGTH</CATEGORY>
51 <BASE-TYPE-SIZE>64</BASE-TYPE-SIZE>
52 <BASE-TYPE-ENCODING>IEEE754</BASE-TYPE-ENCODING>
53 <NATIVE-DECLARATION>float64</NATIVE-DECLARATION>
54 </SW-BASE-TYPE>
55 </ELEMENTS>
56 </AR-PACKAGE>
57 </AR-PACKAGES>
58 </AR-PACKAGE>
59 </AR-PACKAGES>
60 </AUTOSAR>
61

File: Highway_Assitant_implementation.arxml

1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Auto generated XML Component Description for model Highway_Assitant
4 Model version : 1.16
5 Simulink Coder version : Simulink Coder 9.5 (R2021a) 14-Nov-2020
6 XML source code generated on : Sat Jan 15 21:26:41 2022
7 Model Checksum : 2812241236 180867976 3582832718 1549763525
8 -->
9 <AUTOSAR xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://autosar.org/schema/r4.0 AUTOSAR_4-3-1.xsd">
10 <AR-PACKAGES>
11 <AR-PACKAGE>
12 <SHORT-NAME>Components</SHORT-NAME>
13 <ELEMENTS/>
14 <AR-PACKAGES>
15 <AR-PACKAGE>
16 <SHORT-NAME>SwcImplementations</SHORT-NAME>
17 <ELEMENTS>
18 <SWC-IMPLEMENTATION UUID="93ff3e5f-0f68-5828-a04e-ea7b1e84f1de">
19 <SHORT-NAME>Highway_Assitant_Impl</SHORT-NAME>
20 <CODE-DESCRIPTORS>
21 <CODE>
22 <SHORT-NAME>Code</SHORT-NAME>
23 <ARTIFACT-DESCRIPTORS>
24 <AUTOSAR-ENGINEERING-OBJECT>
25 <SHORT-LABEL>Highway_Assitant_c</SHORT-LABEL>
26 <CATEGORY>SWSRC</CATEGORY>
27 </AUTOSAR-ENGINEERING-OBJECT>
28 <AUTOSAR-ENGINEERING-OBJECT>
29 <SHORT-LABEL>Highway_Assitant_h</SHORT-LABEL>
30 <CATEGORY>SWHDR</CATEGORY>
31 </AUTOSAR-ENGINEERING-OBJECT>
32 <AUTOSAR-ENGINEERING-OBJECT>
33 <SHORT-LABEL>Highway_Assitant_private_h</SHORT-LABEL>
34 <CATEGORY>SWHDR</CATEGORY>
35 </AUTOSAR-ENGINEERING-OBJECT>
36 <AUTOSAR-ENGINEERING-OBJECT>
37 <SHORT-LABEL>Highway_Assitant_types_h</SHORT-LABEL>
38 <CATEGORY>SWHDR</CATEGORY>
39 </AUTOSAR-ENGINEERING-OBJECT>
40 <AUTOSAR-ENGINEERING-OBJECT>
41 <SHORT-LABEL>rtwtypes_h</SHORT-LABEL>
42 <CATEGORY>SWHDR</CATEGORY>
43 </AUTOSAR-ENGINEERING-OBJECT>
44 </ARTIFACT-DESCRIPTORS>
45 </CODE>
46 </CODE-DESCRIPTORS>
47 <PROGRAMMING-LANGUAGE>C</PROGRAMMING-LANGUAGE>
48 <RESOURCE-CONSUMPTION>
49 <SHORT-NAME>RsrcCons_Highway_Assitant</SHORT-NAME>
50 </RESOURCE-CONSUMPTION>
51 <SW-VERSION>1.16.1</SW-VERSION>
52 <USED-CODE-GENERATOR>Embedded Coder 7.6 (R2021a) 14-Nov-2020</USED-CODE-GENERATOR>
53 <VENDOR-ID>0</VENDOR-ID>
54 <BEHAVIOR-REF DEST="SWC-INTERNAL-BEHAVIOR">/Components/Highway_Assitant/Highway_Assitant_IB</BEHAVIOR-REF>
55 </SWC-IMPLEMENTATION>
56 </ELEMENTS>
57 </AR-PACKAGE>
58 </AR-PACKAGES>
59 </AR-PACKAGE>
60 </AR-PACKAGES>
61 </AUTOSAR>
62

File: Compiler.h

1 /* Copyright 2018 The MathWorks, Inc. */
2
3 /*
4 * File: Compiler.h
5 *
6 * Compiler Abstraction Macros
7 *
8 * This header file specifies macros for the abstraction of compiler specific
9 * keywords used for addressing data and code within declarations and
10 * definitions. This is used to overcome problems caused by the limited 16 bit
11 * addressing range. For SIL/PIL macros behave as identity operators.
12 *
13 * Note that this file should be replaced with an appropriate RTE file when
14 * deploying the generated code outside of Simulink.
15 */
16
17 #ifndef Compiler_h
18 #define Compiler_h
19
20 /* Compiler abstraction macros */
21 #define FUNC(type, memclass) type
22 #define P2VAR(ptrtype, memclass, ptrclass) ptrtype *
23 #define P2CONST(ptrtype, memclass, ptrclass) const ptrtype *
24 #define CONSTP2VAR(ptrtype, memclass, ptrclass) ptrtype * const
25 #define CONSTP2CONST(ptrtype, memclass, ptrclass) const ptrtype * const
26 #define CONST(consttype, memclass) const consttype
27 #define VAR( type, memclass ) type
28
29 #endif /* Compiler_h */
30

File: Platform_Types.h

1 /* Copyright 2018 The MathWorks, Inc. */
2
3 /*
4 * File: Platform_Types.h
5 *
6 * Definitions for AUTOSAR platform types
7 *
8 * This file contains stub implementations of the AUTOSAR Platform Types.
9 * The stub implementations can be used for testing the generated code in
10 * Simulink, for example, in SIL/PIL simulations of the component under
11 * test. Note that this file should be replaced with an appropriate RTE
12 * file when deploying the generated code outside of Simulink.
13 */
14
15 #ifndef PLATFORM_TYPES_H
16 #define PLATFORM_TYPES_H
17
18 /* Define AUTOSAR platform types */
19 typedef boolean_T boolean;
20 typedef int16_T sint16;
21 typedef int32_T sint32;
22 typedef int8_T sint8;
23 typedef uint16_T uint16;
24 typedef uint32_T uint32;
25 typedef uint8_T uint8;
26 typedef float float32;
27 typedef double float64;
28
29 /* if target supports long long, rtwtypes.h will define MAX_uint64_T */
30 #ifdef MAX_uint64_T
31 typedef int64_T sint64;
32 typedef uint64_T uint64;
33 #endif
34
35 /* Define AUTOSAR standard primitive types */
36 typedef boolean Boolean;
37 typedef uint8 Char8;
38 typedef sint16 SInt16;
39 typedef sint32 SInt32;
40 typedef sint8 SInt4;
41 typedef sint8 SInt8;
42 typedef uint16 UInt16;
43 typedef uint32 UInt32;
44 typedef uint8 UInt4;
45 typedef uint8 UInt8;
46 typedef float64 Double;
47 typedef float64 Double_with_Nan;
48 typedef float32 Float;
49 typedef float32 Float_with_NaN;
50 #ifdef MAX_uint64_T
51 typedef int64_T SInt64;
52 typedef uint64_T UInt64;
53 #endif
54
55
56 #endif /* PLATFORM_TYPES_H */
57

File: Rte_Highway_Assitant.h

1 /* This file contains stub implementations of the AUTOSAR RTE functions.
2 The stub implementations can be used for testing the generated code in
3 Simulink, for example, in SIL/PIL simulations of the component under
4 test. Note that this file should be replaced with an appropriate RTE
5 file when deploying the generated code outside of Simulink.
6
7 This file is generated for:
8 Atomic software component: "Highway_Assitant"
9 ARXML schema: "4.3"
10 File generated on: "15-Jan-2022 21:22:16" */
11
12 #ifndef Rte_Highway_Assitant_h
13 #define Rte_Highway_Assitant_h
14 #include "Rte_Type.h"
15 #include "Compiler.h"
16
17 /* Data access functions */
18 #define Rte_IRead_Highway_Assitant_Step_Rp_Enable_Display_DE_Enable_Display Rte_IRead_Highway_Assitant_Highway_Assitant_Step_Rp_Enable_Display_DE_Enable_Display
19
20 UInt8 Rte_IRead_Highway_Assitant_Step_Rp_Enable_Display_DE_Enable_Display(void);
21
22 #define Rte_IRead_Highway_Assitant_Step_Rp_Highway_Input_Signal_DE_Highway_Input_Signal Rte_IRead_Highway_Assitant_Highway_Assitant_Step_Rp_Highway_Input_Signal_DE_Highway_Input_Signal
23
24 UInt8
25 Rte_IRead_Highway_Assitant_Step_Rp_Highway_Input_Signal_DE_Highway_Input_Signal
26 (void);
27
28 #define Rte_IRead_Highway_Assitant_Step_Rp_Input_Switch_DE_Input_Switch
29
30 Rte_IRead_Highway_Assitant_Highway_Assitant_Step_Rp_Input_Switch_DE_Input_Switch
31 UInt8 Rte_IRead_Highway_Assitant_Step_Rp_Input_Switch_DE_Input_Switch
32 (void);
33
34 #define Rte_IRead_Highway_Assitant_Step_Rp_Lane_Input_Signal_DE_Lane_Input_Signal Rte_IRead_Highway_Assitant_Highway_Assitant_Step_Rp_Lane_Input_Signal_DE_Lane_Input_Signal
35
36 UInt8 Rte_IRead_Highway_Assitant_Step_Rp_Lane_Input_Signal_DE_Lane_Input_Signal
37 (void);
38
39 #define Rte_IWrite_Highway_Assitant_Step_Pp_Display_Mode_1_DE_Display_Mode_1 Rte_IWrite_Highway_Assitant_Highway_Assitant_Step_Pp_Display_Mode_1_DE_Display_Mode_1
40
41 void Rte_IWrite_Highway_Assitant_Step_Pp_Display_Mode_1_DE_Display_Mode_1(Double
42 u);
43
44 #define Rte_IWriteRef_Highway_Assitant_Step_Pp_Display_Mode_1_DE_Display_Mode_1 Rte_IWriteRef_Highway_Assitant_Highway_Assitant_Step_Pp_Display_Mode_1_DE_Display_Mode_1
45
46 Double* Rte_IWriteRef_Highway_Assitant_Step_Pp_Display_Mode_1_DE_Display_Mode_1
47 (void);
48
49 #define Rte_IWrite_Highway_Assitant_Step_Pp_Display_Mode_2_DE_Display_Mode_2 Rte_IWrite_Highway_Assitant_Highway_Assitant_Step_Pp_Display_Mode_2_DE_Display_Mode_2
50
51 void Rte_IWrite_Highway_Assitant_Step_Pp_Display_Mode_2_DE_Display_Mode_2(Double
52 u);
53
54 #define Rte_IWriteRef_Highway_Assitant_Step_Pp_Display_Mode_2_DE_Display_Mode_2 Rte_IWriteRef_Highway_Assitant_Highway_Assitant_Step_Pp_Display_Mode_2_DE_Display_Mode_2
55
56 Double* Rte_IWriteRef_Highway_Assitant_Step_Pp_Display_Mode_2_DE_Display_Mode_2
57 (void);
58
59 #define Rte_IWrite_Highway_Assitant_Step_Pp_Display_Mode_3_DE_Display_Mode_3 Rte_IWrite_Highway_Assitant_Highway_Assitant_Step_Pp_Display_Mode_3_DE_Display_Mode_3
60
61 void Rte_IWrite_Highway_Assitant_Step_Pp_Display_Mode_3_DE_Display_Mode_3(Double
62 u);
63
64 #define Rte_IWriteRef_Highway_Assitant_Step_Pp_Display_Mode_3_DE_Display_Mode_3 Rte_IWriteRef_Highway_Assitant_Highway_Assitant_Step_Pp_Display_Mode_3_DE_Display_Mode_3
65
66 Double* Rte_IWriteRef_Highway_Assitant_Step_Pp_Display_Mode_3_DE_Display_Mode_3
67 (void);
68
69 #define Rte_IWrite_Highway_Assitant_Step_Pp_Display_Mode_4_DE_Display_Mode_4
70
71 Rte_IWrite_Highway_Assitant_Highway_Assitant_Step_Pp_Display_Mode_4_DE_Display_Mode_4
72 void Rte_IWrite_Highway_Assitant_Step_Pp_Display_Mode_4_DE_Display_Mode_4
73 (Double u);
74
75 #define Rte_IWriteRef_Highway_Assitant_Step_Pp_Display_Mode_4_DE_Display_Mode_4
76
77 Rte_IWriteRef_Highway_Assitant_Highway_Assitant_Step_Pp_Display_Mode_4_DE_Display_Mode_4
78 Double*
79 Rte_IWriteRef_Highway_Assitant_Step_Pp_Display_Mode_4_DE_Display_Mode_4
80 (void);
81
82 /* Entry point functions */
83 extern FUNC(void, Highway_Assitant_CODE) Highway_Assitant_Init(void);
84 extern FUNC(void, Highway_Assitant_CODE) Highway_Assitant_Step(void);
85
86 #endif
87

File: Rte_Type.h

1 /* This file contains stub implementations of the AUTOSAR RTE functions.
2 The stub implementations can be used for testing the generated code in
3 Simulink, for example, in SIL/PIL simulations of the component under
4 test. Note that this file should be replaced with an appropriate RTE
5 file when deploying the generated code outside of Simulink.
6
7 This file is generated for:
8 Atomic software component: "Highway_Assitant"
9 ARXML schema: "4.3"
10 File generated on: "15-Jan-2022 21:22:16" */
11
12 #ifndef Rte_Type_h
13 #define Rte_Type_h
14 #include "rtwtypes.h"
15 #include "Std_Types.h"
16
17 /* AUTOSAR RTE Status Types */
18 #ifndef RTE_E_OK
19 #define RTE_E_OK (0x00)
20 #endif
21
22 #ifndef RTE_E_LOST_DATA
23 #define RTE_E_LOST_DATA (0x40)
24 #endif
25
26 #ifndef RTE_E_LIMIT
27 #define RTE_E_LIMIT (0x82)
28 #endif
29
30 #ifndef E2E_E_OK
31 #define E2E_E_OK (0x00)
32 #endif
33
34 #ifndef E2EPW_STATUS_OK
35 #define E2EPW_STATUS_OK (0x00)
36 #endif
37
38 #ifndef E2EPW_STATUS_OKSOMELOST
39 #define E2EPW_STATUS_OKSOMELOST (0x20)
40 #endif
41
42 /* AUTOSAR Implementation data types, specific to software component */
43 typedef void* Rte_Instance;
44
45 #endif
46

File: Std_Types.h

1 /* Copyright 2018 The MathWorks, Inc. */
2
3 /*
4 * File: Std_Types.h
5 *
6 * Definitions for AUTOSAR Standard Types
7 *
8 * This file contains stub implementations of the AUTOSAR Standard Types.
9 * The stub implementations can be used for testing the generated code in
10 * Simulink, for example, in SIL/PIL simulations of the component under
11 * test. Note that this file should be replaced with an appropriate RTE
12 * file when deploying the generated code outside of Simulink.
13 */
14
15 #ifndef Std_Types_h
16 #define Std_Types_h
17 #include "Compiler.h"
18 #include "Platform_Types.h"
19
20 /* define Std_ReturnType */
21 typedef uint8 Std_ReturnType;
22
23
24 #endif /* Std_Types_h */
25
Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.