add source for ces2019
[apps/agl-service-windowmanager-2017.git] / policy_manager / stm / zipc / StateTransitionor / master / layer / apps / Zmaster_apps_apps_main.c
1 /************************************************************/
2 /*     Zmaster_apps_apps_main.c                             */
3 /*     apps_main State transition model source file         */
4 /*     ZIPC Designer Version 1.2.0                          */
5 /************************************************************/
6 #include "../../../ZST_include.h"
7
8 /* State management variable */
9 static uint8_t Zmaster_apps_apps_mainState[ZMASTER_APPS_APPS_MAINSTATENOMAX];
10
11 static void Zmaster_apps_apps_mains0StateEntry( void );
12 static void Zmaster_apps_apps_mains1StateEntry( void );
13 static void Zmaster_apps_apps_mains0e1( void );
14 static void Zmaster_apps_apps_mains1e0( void );
15 static void Zmaster_apps_apps_car_stops0e0( void );
16 static void Zmaster_apps_apps_car_stops0e2( void );
17 static void Zmaster_apps_apps_car_stops0e3( void );
18 static void Zmaster_apps_apps_car_stops0e4( void );
19 static void Zmaster_apps_apps_car_stops0e11( void );
20 static void Zmaster_apps_apps_car_stops0e15( void );
21 static void Zmaster_apps_apps_car_runs0e0( void );
22 static void Zmaster_apps_apps_car_runs0e3( void );
23 static void Zmaster_apps_apps_mains0Event( void );
24 static void Zmaster_apps_apps_car_stops0Event( void );
25 static void Zmaster_apps_apps_car_stops1Event( void );
26 static void Zmaster_apps_apps_car_stops2Event( void );
27 static void Zmaster_apps_apps_car_stops3Event( void );
28 static void Zmaster_apps_apps_car_stops4Event( void );
29 static void Zmaster_apps_apps_car_stops5Event( void );
30 static void Zmaster_apps_apps_mains1Event( void );
31 static void Zmaster_apps_apps_car_runs0Event( void );
32 static void Zmaster_apps_apps_car_runs1Event( void );
33
34 /****************************************/
35 /* State start activity function        */
36 /*   STM : apps_main                    */
37 /*   State : lightstatus_brake_on( No 0 ) */
38 /****************************************/
39 static void Zmaster_apps_apps_mains0StateEntry( void )
40 {
41     switch( Zmaster_apps_apps_mainState[ZMASTER_APPS_APPS_MAINS0F] )
42     {
43     case ZMASTER_APPS_APPS_CAR_STOPS0:
44         stm_mst_apl_start_activity_none();
45         break;
46     case ZMASTER_APPS_APPS_CAR_STOPS1:
47         stm_mst_apl_start_activity_meter_receiver();
48         break;
49     case ZMASTER_APPS_APPS_CAR_STOPS2:
50         stm_mst_apl_start_activity_meter_splitable();
51         break;
52     case ZMASTER_APPS_APPS_CAR_STOPS3:
53         stm_mst_apl_start_activity_splitable_receiver();
54         break;
55     case ZMASTER_APPS_APPS_CAR_STOPS4:
56         stm_mst_apl_start_activity_splitable_split();
57         break;
58     case ZMASTER_APPS_APPS_CAR_STOPS5:
59         stm_mst_apl_start_activity_general();
60         break;
61     default:
62         /*Not accessible to this else (default).*/
63         break;
64     }
65 }
66
67 /****************************************/
68 /* State start activity function        */
69 /*   STM : apps_main                    */
70 /*   State : lightstatus_brake_off( No 1 ) */
71 /****************************************/
72 static void Zmaster_apps_apps_mains1StateEntry( void )
73 {
74     switch( Zmaster_apps_apps_mainState[ZMASTER_APPS_APPS_MAINS1F] )
75     {
76     case ZMASTER_APPS_APPS_CAR_RUNS0:
77         stm_mst_apl_start_activity_meter_receiver();
78         break;
79     case ZMASTER_APPS_APPS_CAR_RUNS1:
80         stm_mst_apl_start_activity_meter();
81         break;
82     default:
83         /*Not accessible to this else (default).*/
84         break;
85     }
86 }
87
88 /****************************************/
89 /* Action function                      */
90 /*   STM : apps_main                    */
91 /*   State : lightstatus_brake_on( No 0 ) */
92 /*   Event : stt_lightstatus_brake_off( No 1 ) */
93 /****************************************/
94 static void Zmaster_apps_apps_mains0e1( void )
95 {
96     Zmaster_apps_apps_mainState[ZMASTER_APPS_APPS_MAIN] = ( uint8_t )ZMASTER_APPS_APPS_MAINS1;
97     Zmaster_apps_apps_mainState[ZMASTER_APPS_APPS_MAINS1F] = ( uint8_t )ZMASTER_APPS_APPS_CAR_RUNS0;
98     Zmaster_apps_apps_mains1StateEntry();
99 }
100
101 /****************************************/
102 /* Action function                      */
103 /*   STM : apps_main                    */
104 /*   State : lightstatus_brake_off( No 1 ) */
105 /*   Event : stt_lightstatus_brake_on( No 0 ) */
106 /****************************************/
107 static void Zmaster_apps_apps_mains1e0( void )
108 {
109     Zmaster_apps_apps_mainState[ZMASTER_APPS_APPS_MAIN] = ( uint8_t )ZMASTER_APPS_APPS_MAINS0;
110     Zmaster_apps_apps_mains0StateEntry();
111 }
112
113 /****************************************/
114 /* Action function                      */
115 /*   STM : apps_car_stop                */
116 /*   State : none( No 0 )               */
117 /*   Event : ara_split_main( No 0 )     */
118 /****************************************/
119 static void Zmaster_apps_apps_car_stops0e0( void )
120 {
121     Zmaster_apps_apps_mainState[ZMASTER_APPS_APPS_MAINS0F] = ( uint8_t )ZMASTER_APPS_APPS_CAR_STOPS1;
122     stm_mst_apl_start_activity_meter_receiver();
123 }
124
125 /****************************************/
126 /* Action function                      */
127 /*   STM : apps_car_stop                */
128 /*   State : none( No 0 )               */
129 /*   Event : ara_split_main( No 2 )     */
130 /****************************************/
131 static void Zmaster_apps_apps_car_stops0e2( void )
132 {
133     Zmaster_apps_apps_mainState[ZMASTER_APPS_APPS_MAINS0F] = ( uint8_t )ZMASTER_APPS_APPS_CAR_STOPS3;
134     stm_mst_apl_start_activity_splitable_receiver();
135 }
136
137 /****************************************/
138 /* Action function                      */
139 /*   STM : apps_car_stop                */
140 /*   State : none( No 0 )               */
141 /*   Event : ara_split_sub( No 3 )      */
142 /****************************************/
143 static void Zmaster_apps_apps_car_stops0e3( void )
144 {
145     Zmaster_apps_apps_mainState[ZMASTER_APPS_APPS_MAINS0F] = ( uint8_t )ZMASTER_APPS_APPS_CAR_STOPS2;
146     stm_mst_apl_start_activity_meter_splitable();
147 }
148
149 /****************************************/
150 /* Action function                      */
151 /*   STM : apps_car_stop                */
152 /*   State : none( No 0 )               */
153 /*   Event : ara_normal( No 4 )         */
154 /****************************************/
155 static void Zmaster_apps_apps_car_stops0e4( void )
156 {
157     Zmaster_apps_apps_mainState[ZMASTER_APPS_APPS_MAINS0F] = ( uint8_t )ZMASTER_APPS_APPS_CAR_STOPS5;
158     stm_mst_apl_start_activity_general();
159 }
160
161 /****************************************/
162 /* Action function                      */
163 /*   STM : apps_car_stop                */
164 /*   State : none( No 0 )               */
165 /*   Event : stt_prv_layer_apps_none( No 11 ) */
166 /****************************************/
167 static void Zmaster_apps_apps_car_stops0e11( void )
168 {
169     Zmaster_apps_apps_mainState[ZMASTER_APPS_APPS_MAINS0F] = ( uint8_t )ZMASTER_APPS_APPS_CAR_STOPS0;
170     stm_mst_apl_start_activity_none();
171 }
172
173 /****************************************/
174 /* Action function                      */
175 /*   STM : apps_car_stop                */
176 /*   State : none( No 0 )               */
177 /*   Event : stt_prv_layer_apps_splitable_split( No 15 ) */
178 /****************************************/
179 static void Zmaster_apps_apps_car_stops0e15( void )
180 {
181     Zmaster_apps_apps_mainState[ZMASTER_APPS_APPS_MAINS0F] = ( uint8_t )ZMASTER_APPS_APPS_CAR_STOPS4;
182     stm_mst_apl_start_activity_splitable_split();
183 }
184
185 /****************************************/
186 /* Action function                      */
187 /*   STM : apps_car_run                 */
188 /*   State : meter_receiver( No 0 )     */
189 /*   Event : ara_normal( No 0 )         */
190 /****************************************/
191 static void Zmaster_apps_apps_car_runs0e0( void )
192 {
193     Zmaster_apps_apps_mainState[ZMASTER_APPS_APPS_MAINS1F] = ( uint8_t )ZMASTER_APPS_APPS_CAR_RUNS1;
194     stm_mst_apl_start_activity_meter();
195 }
196
197 /****************************************/
198 /* Action function                      */
199 /*   STM : apps_car_run                 */
200 /*   State : meter_receiver( No 0 )     */
201 /*   Event : stt_prv_layer_apps_meter_receiver( No 3 ) */
202 /****************************************/
203 static void Zmaster_apps_apps_car_runs0e3( void )
204 {
205     Zmaster_apps_apps_mainState[ZMASTER_APPS_APPS_MAINS1F] = ( uint8_t )ZMASTER_APPS_APPS_CAR_RUNS0;
206     stm_mst_apl_start_activity_meter_receiver();
207 }
208
209 /****************************************/
210 /* Event appraisal function             */
211 /*   STM : apps_main                    */
212 /*   State : lightstatus_brake_on( No 0 ) */
213 /****************************************/
214 static void Zmaster_apps_apps_mains0Event( void )
215 {
216     /*stt_lightstatus_brake_off*/
217     if( g_stm_crr_state.car_element[StmCarElementNoLightstatusBrake].state == StmLightstatusBrakeSttNoOff )
218     {
219         stm_mst_apl_event_lightstatus_brake_off();
220         Zmaster_apps_apps_mains0e1();
221     }
222     else
223     {
224         /*Else and default design have not done.*/
225         /*Please confirm the STM and design else and default.*/
226     }
227 }
228
229 /****************************************/
230 /* Event appraisal function             */
231 /*   STM : apps_car_stop                */
232 /*   State : none( No 0 )               */
233 /****************************************/
234 static void Zmaster_apps_apps_car_stops0Event( void )
235 {
236     /*stt_lightstatus_brake_on*/
237     if( g_stm_crr_state.car_element[StmCarElementNoLightstatusBrake].state == StmLightstatusBrakeSttNoOn )
238     {
239         /*evt_activate*/
240         if( g_stm_event == StmEvtNoActivate )
241         {
242             /*ctg_meter*/
243             if( g_stm_category == StmCtgNoMeter )
244             {
245                 /*ara_split_main*/
246                 if( g_stm_area == StmAreaNoSplitMain )
247                 {
248                     Zmaster_apps_apps_car_stops0e0();
249                 }
250                 else
251                 {
252                     /*Else and default design have not done.*/
253                     /*Please confirm the STM and design else and default.*/
254                 }
255             }
256             /*ctg_receiver*/
257             else if( g_stm_category == StmCtgNoReceiver )
258             {
259                 /*ara_split_sub*/
260                 if( g_stm_area == StmAreaNoSplitSub )
261                 {
262                     Zmaster_apps_apps_car_stops0e0();
263                 }
264                 else
265                 {
266                     /*Else and default design have not done.*/
267                     /*Please confirm the STM and design else and default.*/
268                 }
269             }
270             /*ctg_splitable_main*/
271             else if( g_stm_category == StmCtgNoSplitableMain )
272             {
273                 /*ara_split_main*/
274                 if( g_stm_area == StmAreaNoSplitMain )
275                 {
276                     Zmaster_apps_apps_car_stops0e2();
277                 }
278                 else
279                 {
280                     /*Else and default design have not done.*/
281                     /*Please confirm the STM and design else and default.*/
282                 }
283             }
284             /*ctg_splitable_sub*/
285             else if( g_stm_category == StmCtgNoSplitableSub )
286             {
287                 /*ara_split_sub*/
288                 if( g_stm_area == StmAreaNoSplitSub )
289                 {
290                     Zmaster_apps_apps_car_stops0e3();
291                 }
292                 else
293                 {
294                     /*Else and default design have not done.*/
295                     /*Please confirm the STM and design else and default.*/
296                 }
297             }
298             /*ctg_general*/
299             else if( g_stm_category == StmCtgNoGeneral )
300             {
301                 /*ara_normal*/
302                 if( g_stm_area == StmAreaNoNormal )
303                 {
304                     Zmaster_apps_apps_car_stops0e4();
305                 }
306                 else
307                 {
308                     /*Else and default design have not done.*/
309                     /*Please confirm the STM and design else and default.*/
310                 }
311             }
312             else
313             {
314                 /*Else and default design have not done.*/
315                 /*Please confirm the STM and design else and default.*/
316             }
317         }
318         /*evt_undo*/
319         else if( g_stm_event == StmEvtNoUndo )
320         {
321             /*stt_prv_layer_apps_none*/
322             if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
323             {
324                 Zmaster_apps_apps_car_stops0e11();
325             }
326             /*stt_prv_layer_apps_meter_receiver*/
327             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMtrRcv )
328             {
329                 Zmaster_apps_apps_car_stops0e0();
330             }
331             /*stt_prv_layer_apps_meter_splitable*/
332             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMtrSpl )
333             {
334                 Zmaster_apps_apps_car_stops0e3();
335             }
336             /*stt_prv_layer_apps_splitable_receiver*/
337             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplRcv )
338             {
339                 Zmaster_apps_apps_car_stops0e2();
340             }
341             /*stt_prv_layer_apps_splitable_split*/
342             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
343             {
344                 Zmaster_apps_apps_car_stops0e15();
345             }
346             /*stt_prv_layer_apps_gen_nml*/
347             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
348             {
349                 Zmaster_apps_apps_car_stops0e4();
350             }
351             else
352             {
353                 /*Else and default design have not done.*/
354                 /*Please confirm the STM and design else and default.*/
355             }
356         }
357         else
358         {
359             /*Else and default design have not done.*/
360             /*Please confirm the STM and design else and default.*/
361         }
362     }
363     else
364     {
365         /*Else and default design have not done.*/
366         /*Please confirm the STM and design else and default.*/
367     }
368 }
369
370 /****************************************/
371 /* Event appraisal function             */
372 /*   STM : apps_car_stop                */
373 /*   State : meter_receiver( No 1 )     */
374 /****************************************/
375 static void Zmaster_apps_apps_car_stops1Event( void )
376 {
377     /*stt_lightstatus_brake_on*/
378     if( g_stm_crr_state.car_element[StmCarElementNoLightstatusBrake].state == StmLightstatusBrakeSttNoOn )
379     {
380         /*evt_activate*/
381         if( g_stm_event == StmEvtNoActivate )
382         {
383             /*ctg_splitable_main*/
384             if( g_stm_category == StmCtgNoSplitableMain )
385             {
386                 /*ara_split_main*/
387                 if( g_stm_area == StmAreaNoSplitMain )
388                 {
389                     Zmaster_apps_apps_car_stops0e2();
390                 }
391                 else
392                 {
393                     /*Else and default design have not done.*/
394                     /*Please confirm the STM and design else and default.*/
395                 }
396             }
397             /*ctg_splitable_sub*/
398             else if( g_stm_category == StmCtgNoSplitableSub )
399             {
400                 /*ara_split_sub*/
401                 if( g_stm_area == StmAreaNoSplitSub )
402                 {
403                     Zmaster_apps_apps_car_stops0e3();
404                 }
405                 else
406                 {
407                     /*Else and default design have not done.*/
408                     /*Please confirm the STM and design else and default.*/
409                 }
410             }
411             /*ctg_general*/
412             else if( g_stm_category == StmCtgNoGeneral )
413             {
414                 /*ara_normal*/
415                 if( g_stm_area == StmAreaNoNormal )
416                 {
417                     Zmaster_apps_apps_car_stops0e4();
418                 }
419                 else
420                 {
421                     /*Else and default design have not done.*/
422                     /*Please confirm the STM and design else and default.*/
423                 }
424             }
425             /*ctg_homescreen*/
426             else if( g_stm_category == StmCtgNoHomescreen )
427             {
428                 /*ara_fullscreen*/
429                 if( g_stm_area == StmAreaNoFullscreen )
430                 {
431                     Zmaster_apps_apps_car_stops0e11();
432                 }
433                 else
434                 {
435                     /*Else and default design have not done.*/
436                     /*Please confirm the STM and design else and default.*/
437                 }
438             }
439             else
440             {
441                 /*Else and default design have not done.*/
442                 /*Please confirm the STM and design else and default.*/
443             }
444         }
445         /*evt_deactivate*/
446         else if( g_stm_event == StmEvtNoDeactivate )
447         {
448             /*ctg_meter*/
449             if( g_stm_category == StmCtgNoMeter )
450             {
451                 Zmaster_apps_apps_car_stops0e11();
452             }
453             /*ctg_receiver*/
454             else if( g_stm_category == StmCtgNoReceiver )
455             {
456                 Zmaster_apps_apps_car_stops0e11();
457             }
458             else
459             {
460                 /*Else and default design have not done.*/
461                 /*Please confirm the STM and design else and default.*/
462             }
463         }
464         /*evt_undo*/
465         else if( g_stm_event == StmEvtNoUndo )
466         {
467             /*stt_prv_layer_apps_none*/
468             if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
469             {
470                 Zmaster_apps_apps_car_stops0e11();
471             }
472             /*stt_prv_layer_apps_meter_receiver*/
473             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMtrRcv )
474             {
475                 Zmaster_apps_apps_car_stops0e0();
476             }
477             /*stt_prv_layer_apps_meter_splitable*/
478             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMtrSpl )
479             {
480                 Zmaster_apps_apps_car_stops0e3();
481             }
482             /*stt_prv_layer_apps_splitable_receiver*/
483             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplRcv )
484             {
485                 Zmaster_apps_apps_car_stops0e2();
486             }
487             /*stt_prv_layer_apps_splitable_split*/
488             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
489             {
490                 Zmaster_apps_apps_car_stops0e15();
491             }
492             /*stt_prv_layer_apps_gen_nml*/
493             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
494             {
495                 Zmaster_apps_apps_car_stops0e4();
496             }
497             else
498             {
499                 /*Else and default design have not done.*/
500                 /*Please confirm the STM and design else and default.*/
501             }
502         }
503         else
504         {
505             /*Else and default design have not done.*/
506             /*Please confirm the STM and design else and default.*/
507         }
508     }
509     else
510     {
511         /*Else and default design have not done.*/
512         /*Please confirm the STM and design else and default.*/
513     }
514 }
515
516 /****************************************/
517 /* Event appraisal function             */
518 /*   STM : apps_car_stop                */
519 /*   State : meter_splitable( No 2 )    */
520 /****************************************/
521 static void Zmaster_apps_apps_car_stops2Event( void )
522 {
523     /*stt_lightstatus_brake_on*/
524     if( g_stm_crr_state.car_element[StmCarElementNoLightstatusBrake].state == StmLightstatusBrakeSttNoOn )
525     {
526         /*evt_activate*/
527         if( g_stm_event == StmEvtNoActivate )
528         {
529             /*ctg_receiver*/
530             if( g_stm_category == StmCtgNoReceiver )
531             {
532                 /*ara_split_sub*/
533                 if( g_stm_area == StmAreaNoSplitSub )
534                 {
535                     Zmaster_apps_apps_car_stops0e0();
536                 }
537                 else
538                 {
539                     /*Else and default design have not done.*/
540                     /*Please confirm the STM and design else and default.*/
541                 }
542             }
543             /*ctg_splitable_main*/
544             else if( g_stm_category == StmCtgNoSplitableMain )
545             {
546                 /*ara_split_main*/
547                 if( g_stm_area == StmAreaNoSplitMain )
548                 {
549                     Zmaster_apps_apps_car_stops0e15();
550                 }
551                 else
552                 {
553                     /*Else and default design have not done.*/
554                     /*Please confirm the STM and design else and default.*/
555                 }
556             }
557             /*ctg_splitable_sub*/
558             else if( g_stm_category == StmCtgNoSplitableSub )
559             {
560                 /*ara_split_sub*/
561                 if( g_stm_area == StmAreaNoSplitSub )
562                 {
563                     Zmaster_apps_apps_car_stops0e3();
564                 }
565                 else
566                 {
567                     /*Else and default design have not done.*/
568                     /*Please confirm the STM and design else and default.*/
569                 }
570             }
571             /*ctg_general*/
572             else if( g_stm_category == StmCtgNoGeneral )
573             {
574                 /*ara_normal*/
575                 if( g_stm_area == StmAreaNoNormal )
576                 {
577                     Zmaster_apps_apps_car_stops0e4();
578                 }
579                 else
580                 {
581                     /*Else and default design have not done.*/
582                     /*Please confirm the STM and design else and default.*/
583                 }
584             }
585             /*ctg_homescreen*/
586             else if( g_stm_category == StmCtgNoHomescreen )
587             {
588                 /*ara_fullscreen*/
589                 if( g_stm_area == StmAreaNoFullscreen )
590                 {
591                     Zmaster_apps_apps_car_stops0e11();
592                 }
593                 else
594                 {
595                     /*Else and default design have not done.*/
596                     /*Please confirm the STM and design else and default.*/
597                 }
598             }
599             else
600             {
601                 /*Else and default design have not done.*/
602                 /*Please confirm the STM and design else and default.*/
603             }
604         }
605         /*evt_deactivate*/
606         else if( g_stm_event == StmEvtNoDeactivate )
607         {
608             /*ctg_meter*/
609             if( g_stm_category == StmCtgNoMeter )
610             {
611                 Zmaster_apps_apps_car_stops0e11();
612             }
613             /*ctg_splitable_sub*/
614             else if( g_stm_category == StmCtgNoSplitableSub )
615             {
616                 /*ara_split_sub*/
617                 if( g_stm_area == StmAreaNoSplitSub )
618                 {
619                     Zmaster_apps_apps_car_stops0e0();
620                 }
621                 else
622                 {
623                     /*Else and default design have not done.*/
624                     /*Please confirm the STM and design else and default.*/
625                 }
626             }
627             else
628             {
629                 /*Else and default design have not done.*/
630                 /*Please confirm the STM and design else and default.*/
631             }
632         }
633         /*evt_undo*/
634         else if( g_stm_event == StmEvtNoUndo )
635         {
636             /*stt_prv_layer_apps_none*/
637             if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
638             {
639                 Zmaster_apps_apps_car_stops0e11();
640             }
641             /*stt_prv_layer_apps_meter_receiver*/
642             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMtrRcv )
643             {
644                 Zmaster_apps_apps_car_stops0e0();
645             }
646             /*stt_prv_layer_apps_meter_splitable*/
647             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMtrSpl )
648             {
649                 Zmaster_apps_apps_car_stops0e3();
650             }
651             /*stt_prv_layer_apps_splitable_receiver*/
652             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplRcv )
653             {
654                 Zmaster_apps_apps_car_stops0e2();
655             }
656             /*stt_prv_layer_apps_splitable_split*/
657             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
658             {
659                 Zmaster_apps_apps_car_stops0e15();
660             }
661             /*stt_prv_layer_apps_gen_nml*/
662             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
663             {
664                 Zmaster_apps_apps_car_stops0e4();
665             }
666             else
667             {
668                 /*Else and default design have not done.*/
669                 /*Please confirm the STM and design else and default.*/
670             }
671         }
672         else
673         {
674             /*Else and default design have not done.*/
675             /*Please confirm the STM and design else and default.*/
676         }
677     }
678     else
679     {
680         /*Else and default design have not done.*/
681         /*Please confirm the STM and design else and default.*/
682     }
683 }
684
685 /****************************************/
686 /* Event appraisal function             */
687 /*   STM : apps_car_stop                */
688 /*   State : splitable_receiver( No 3 ) */
689 /****************************************/
690 static void Zmaster_apps_apps_car_stops3Event( void )
691 {
692     /*stt_lightstatus_brake_on*/
693     if( g_stm_crr_state.car_element[StmCarElementNoLightstatusBrake].state == StmLightstatusBrakeSttNoOn )
694     {
695         /*evt_activate*/
696         if( g_stm_event == StmEvtNoActivate )
697         {
698             /*ctg_meter*/
699             if( g_stm_category == StmCtgNoMeter )
700             {
701                 /*ara_split_main*/
702                 if( g_stm_area == StmAreaNoSplitMain )
703                 {
704                     Zmaster_apps_apps_car_stops0e0();
705                 }
706                 else
707                 {
708                     /*Else and default design have not done.*/
709                     /*Please confirm the STM and design else and default.*/
710                 }
711             }
712             /*ctg_splitable_main*/
713             else if( g_stm_category == StmCtgNoSplitableMain )
714             {
715                 /*ara_split_main*/
716                 if( g_stm_area == StmAreaNoSplitMain )
717                 {
718                     Zmaster_apps_apps_car_stops0e2();
719                 }
720                 else
721                 {
722                     /*Else and default design have not done.*/
723                     /*Please confirm the STM and design else and default.*/
724                 }
725             }
726             /*ctg_splitable_sub*/
727             else if( g_stm_category == StmCtgNoSplitableSub )
728             {
729                 /*ara_split_sub*/
730                 if( g_stm_area == StmAreaNoSplitSub )
731                 {
732                     Zmaster_apps_apps_car_stops0e15();
733                 }
734                 else
735                 {
736                     /*Else and default design have not done.*/
737                     /*Please confirm the STM and design else and default.*/
738                 }
739             }
740             /*ctg_general*/
741             else if( g_stm_category == StmCtgNoGeneral )
742             {
743                 /*ara_normal*/
744                 if( g_stm_area == StmAreaNoNormal )
745                 {
746                     Zmaster_apps_apps_car_stops0e4();
747                 }
748                 else
749                 {
750                     /*Else and default design have not done.*/
751                     /*Please confirm the STM and design else and default.*/
752                 }
753             }
754             /*ctg_homescreen*/
755             else if( g_stm_category == StmCtgNoHomescreen )
756             {
757                 /*ara_fullscreen*/
758                 if( g_stm_area == StmAreaNoFullscreen )
759                 {
760                     Zmaster_apps_apps_car_stops0e11();
761                 }
762                 else
763                 {
764                     /*Else and default design have not done.*/
765                     /*Please confirm the STM and design else and default.*/
766                 }
767             }
768             else
769             {
770                 /*Else and default design have not done.*/
771                 /*Please confirm the STM and design else and default.*/
772             }
773         }
774         /*evt_deactivate*/
775         else if( g_stm_event == StmEvtNoDeactivate )
776         {
777             /*ctg_receiver*/
778             if( g_stm_category == StmCtgNoReceiver )
779             {
780                 Zmaster_apps_apps_car_stops0e11();
781             }
782             /*ctg_splitable_main*/
783             else if( g_stm_category == StmCtgNoSplitableMain )
784             {
785                 /*ara_split_main*/
786                 if( g_stm_area == StmAreaNoSplitMain )
787                 {
788                     Zmaster_apps_apps_car_stops0e0();
789                 }
790                 else
791                 {
792                     /*Else and default design have not done.*/
793                     /*Please confirm the STM and design else and default.*/
794                 }
795             }
796             else
797             {
798                 /*Else and default design have not done.*/
799                 /*Please confirm the STM and design else and default.*/
800             }
801         }
802         /*evt_undo*/
803         else if( g_stm_event == StmEvtNoUndo )
804         {
805             /*stt_prv_layer_apps_none*/
806             if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
807             {
808                 Zmaster_apps_apps_car_stops0e11();
809             }
810             /*stt_prv_layer_apps_meter_receiver*/
811             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMtrRcv )
812             {
813                 Zmaster_apps_apps_car_stops0e0();
814             }
815             /*stt_prv_layer_apps_meter_splitable*/
816             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMtrSpl )
817             {
818                 Zmaster_apps_apps_car_stops0e3();
819             }
820             /*stt_prv_layer_apps_splitable_receiver*/
821             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplRcv )
822             {
823                 Zmaster_apps_apps_car_stops0e2();
824             }
825             /*stt_prv_layer_apps_splitable_split*/
826             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
827             {
828                 Zmaster_apps_apps_car_stops0e15();
829             }
830             /*stt_prv_layer_apps_gen_nml*/
831             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
832             {
833                 Zmaster_apps_apps_car_stops0e4();
834             }
835             else
836             {
837                 /*Else and default design have not done.*/
838                 /*Please confirm the STM and design else and default.*/
839             }
840         }
841         else
842         {
843             /*Else and default design have not done.*/
844             /*Please confirm the STM and design else and default.*/
845         }
846     }
847     else
848     {
849         /*Else and default design have not done.*/
850         /*Please confirm the STM and design else and default.*/
851     }
852 }
853
854 /****************************************/
855 /* Event appraisal function             */
856 /*   STM : apps_car_stop                */
857 /*   State : splitable_split( No 4 )    */
858 /****************************************/
859 static void Zmaster_apps_apps_car_stops4Event( void )
860 {
861     /*stt_lightstatus_brake_on*/
862     if( g_stm_crr_state.car_element[StmCarElementNoLightstatusBrake].state == StmLightstatusBrakeSttNoOn )
863     {
864         /*evt_activate*/
865         if( g_stm_event == StmEvtNoActivate )
866         {
867             /*ctg_meter*/
868             if( g_stm_category == StmCtgNoMeter )
869             {
870                 /*ara_split_main*/
871                 if( g_stm_area == StmAreaNoSplitMain )
872                 {
873                     Zmaster_apps_apps_car_stops0e3();
874                 }
875                 else
876                 {
877                     /*Else and default design have not done.*/
878                     /*Please confirm the STM and design else and default.*/
879                 }
880             }
881             /*ctg_receiver*/
882             else if( g_stm_category == StmCtgNoReceiver )
883             {
884                 /*ara_split_sub*/
885                 if( g_stm_area == StmAreaNoSplitSub )
886                 {
887                     Zmaster_apps_apps_car_stops0e2();
888                 }
889                 else
890                 {
891                     /*Else and default design have not done.*/
892                     /*Please confirm the STM and design else and default.*/
893                 }
894             }
895             /*ctg_splitable_main*/
896             else if( g_stm_category == StmCtgNoSplitableMain )
897             {
898                 /*ara_split_main*/
899                 if( g_stm_area == StmAreaNoSplitMain )
900                 {
901                     Zmaster_apps_apps_car_stops0e15();
902                 }
903                 else
904                 {
905                     /*Else and default design have not done.*/
906                     /*Please confirm the STM and design else and default.*/
907                 }
908             }
909             /*ctg_splitable_sub*/
910             else if( g_stm_category == StmCtgNoSplitableSub )
911             {
912                 /*ara_split_sub*/
913                 if( g_stm_area == StmAreaNoSplitSub )
914                 {
915                     Zmaster_apps_apps_car_stops0e15();
916                 }
917                 else
918                 {
919                     /*Else and default design have not done.*/
920                     /*Please confirm the STM and design else and default.*/
921                 }
922             }
923             /*ctg_general*/
924             else if( g_stm_category == StmCtgNoGeneral )
925             {
926                 /*ara_normal*/
927                 if( g_stm_area == StmAreaNoNormal )
928                 {
929                     Zmaster_apps_apps_car_stops0e4();
930                 }
931                 else
932                 {
933                     /*Else and default design have not done.*/
934                     /*Please confirm the STM and design else and default.*/
935                 }
936             }
937             /*ctg_homescreen*/
938             else if( g_stm_category == StmCtgNoHomescreen )
939             {
940                 /*ara_fullscreen*/
941                 if( g_stm_area == StmAreaNoFullscreen )
942                 {
943                     Zmaster_apps_apps_car_stops0e11();
944                 }
945                 else
946                 {
947                     /*Else and default design have not done.*/
948                     /*Please confirm the STM and design else and default.*/
949                 }
950             }
951             else
952             {
953                 /*Else and default design have not done.*/
954                 /*Please confirm the STM and design else and default.*/
955             }
956         }
957         /*evt_deactivate*/
958         else if( g_stm_event == StmEvtNoDeactivate )
959         {
960             /*ctg_splitable_main*/
961             if( g_stm_category == StmCtgNoSplitableMain )
962             {
963                 /*ara_split_main*/
964                 if( g_stm_area == StmAreaNoSplitMain )
965                 {
966                     Zmaster_apps_apps_car_stops0e3();
967                 }
968                 else
969                 {
970                     /*Else and default design have not done.*/
971                     /*Please confirm the STM and design else and default.*/
972                 }
973             }
974             /*ctg_splitable_sub*/
975             else if( g_stm_category == StmCtgNoSplitableSub )
976             {
977                 /*ara_split_sub*/
978                 if( g_stm_area == StmAreaNoSplitSub )
979                 {
980                     Zmaster_apps_apps_car_stops0e2();
981                 }
982                 else
983                 {
984                     /*Else and default design have not done.*/
985                     /*Please confirm the STM and design else and default.*/
986                 }
987             }
988             else
989             {
990                 /*Else and default design have not done.*/
991                 /*Please confirm the STM and design else and default.*/
992             }
993         }
994         /*evt_undo*/
995         else if( g_stm_event == StmEvtNoUndo )
996         {
997             /*stt_prv_layer_apps_none*/
998             if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
999             {
1000                 Zmaster_apps_apps_car_stops0e11();
1001             }
1002             /*stt_prv_layer_apps_meter_receiver*/
1003             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMtrRcv )
1004             {
1005                 Zmaster_apps_apps_car_stops0e0();
1006             }
1007             /*stt_prv_layer_apps_meter_splitable*/
1008             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMtrSpl )
1009             {
1010                 Zmaster_apps_apps_car_stops0e3();
1011             }
1012             /*stt_prv_layer_apps_splitable_receiver*/
1013             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplRcv )
1014             {
1015                 Zmaster_apps_apps_car_stops0e2();
1016             }
1017             /*stt_prv_layer_apps_splitable_split*/
1018             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
1019             {
1020                 Zmaster_apps_apps_car_stops0e15();
1021             }
1022             /*stt_prv_layer_apps_gen_nml*/
1023             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
1024             {
1025                 Zmaster_apps_apps_car_stops0e4();
1026             }
1027             else
1028             {
1029                 /*Else and default design have not done.*/
1030                 /*Please confirm the STM and design else and default.*/
1031             }
1032         }
1033         else
1034         {
1035             /*Else and default design have not done.*/
1036             /*Please confirm the STM and design else and default.*/
1037         }
1038     }
1039     else
1040     {
1041         /*Else and default design have not done.*/
1042         /*Please confirm the STM and design else and default.*/
1043     }
1044 }
1045
1046 /****************************************/
1047 /* Event appraisal function             */
1048 /*   STM : apps_car_stop                */
1049 /*   State : general( No 5 )            */
1050 /****************************************/
1051 static void Zmaster_apps_apps_car_stops5Event( void )
1052 {
1053     /*stt_lightstatus_brake_on*/
1054     if( g_stm_crr_state.car_element[StmCarElementNoLightstatusBrake].state == StmLightstatusBrakeSttNoOn )
1055     {
1056         /*evt_activate*/
1057         if( g_stm_event == StmEvtNoActivate )
1058         {
1059             /*ctg_meter*/
1060             if( g_stm_category == StmCtgNoMeter )
1061             {
1062                 /*ara_split_main*/
1063                 if( g_stm_area == StmAreaNoSplitMain )
1064                 {
1065                     Zmaster_apps_apps_car_stops0e0();
1066                 }
1067                 else
1068                 {
1069                     /*Else and default design have not done.*/
1070                     /*Please confirm the STM and design else and default.*/
1071                 }
1072             }
1073             /*ctg_receiver*/
1074             else if( g_stm_category == StmCtgNoReceiver )
1075             {
1076                 /*ara_split_sub*/
1077                 if( g_stm_area == StmAreaNoSplitSub )
1078                 {
1079                     Zmaster_apps_apps_car_stops0e0();
1080                 }
1081                 else
1082                 {
1083                     /*Else and default design have not done.*/
1084                     /*Please confirm the STM and design else and default.*/
1085                 }
1086             }
1087             /*ctg_splitable_main*/
1088             else if( g_stm_category == StmCtgNoSplitableMain )
1089             {
1090                 /*ara_split_main*/
1091                 if( g_stm_area == StmAreaNoSplitMain )
1092                 {
1093                     Zmaster_apps_apps_car_stops0e2();
1094                 }
1095                 else
1096                 {
1097                     /*Else and default design have not done.*/
1098                     /*Please confirm the STM and design else and default.*/
1099                 }
1100             }
1101             /*ctg_splitable_sub*/
1102             else if( g_stm_category == StmCtgNoSplitableSub )
1103             {
1104                 /*ara_split_sub*/
1105                 if( g_stm_area == StmAreaNoSplitSub )
1106                 {
1107                     Zmaster_apps_apps_car_stops0e3();
1108                 }
1109                 else
1110                 {
1111                     /*Else and default design have not done.*/
1112                     /*Please confirm the STM and design else and default.*/
1113                 }
1114             }
1115             /*ctg_general*/
1116             else if( g_stm_category == StmCtgNoGeneral )
1117             {
1118                 /*ara_normal*/
1119                 if( g_stm_area == StmAreaNoNormal )
1120                 {
1121                     Zmaster_apps_apps_car_stops0e4();
1122                 }
1123                 else
1124                 {
1125                     /*Else and default design have not done.*/
1126                     /*Please confirm the STM and design else and default.*/
1127                 }
1128             }
1129             /*ctg_homescreen*/
1130             else if( g_stm_category == StmCtgNoHomescreen )
1131             {
1132                 /*ara_fullscreen*/
1133                 if( g_stm_area == StmAreaNoFullscreen )
1134                 {
1135                     Zmaster_apps_apps_car_stops0e11();
1136                 }
1137                 else
1138                 {
1139                     /*Else and default design have not done.*/
1140                     /*Please confirm the STM and design else and default.*/
1141                 }
1142             }
1143             else
1144             {
1145                 /*Else and default design have not done.*/
1146                 /*Please confirm the STM and design else and default.*/
1147             }
1148         }
1149         /*evt_deactivate*/
1150         else if( g_stm_event == StmEvtNoDeactivate )
1151         {
1152             /*ctg_general*/
1153             if( g_stm_category == StmCtgNoGeneral )
1154             {
1155                 Zmaster_apps_apps_car_stops0e11();
1156             }
1157             else
1158             {
1159                 /*Else and default design have not done.*/
1160                 /*Please confirm the STM and design else and default.*/
1161             }
1162         }
1163         /*evt_undo*/
1164         else if( g_stm_event == StmEvtNoUndo )
1165         {
1166             /*stt_prv_layer_apps_none*/
1167             if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
1168             {
1169                 Zmaster_apps_apps_car_stops0e11();
1170             }
1171             /*stt_prv_layer_apps_meter_receiver*/
1172             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMtrRcv )
1173             {
1174                 Zmaster_apps_apps_car_stops0e0();
1175             }
1176             /*stt_prv_layer_apps_meter_splitable*/
1177             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMtrSpl )
1178             {
1179                 Zmaster_apps_apps_car_stops0e3();
1180             }
1181             /*stt_prv_layer_apps_splitable_receiver*/
1182             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplRcv )
1183             {
1184                 Zmaster_apps_apps_car_stops0e2();
1185             }
1186             /*stt_prv_layer_apps_splitable_split*/
1187             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
1188             {
1189                 Zmaster_apps_apps_car_stops0e15();
1190             }
1191             /*stt_prv_layer_apps_gen_nml*/
1192             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
1193             {
1194                 Zmaster_apps_apps_car_stops0e4();
1195             }
1196             else
1197             {
1198                 /*Else and default design have not done.*/
1199                 /*Please confirm the STM and design else and default.*/
1200             }
1201         }
1202         else
1203         {
1204             /*Else and default design have not done.*/
1205             /*Please confirm the STM and design else and default.*/
1206         }
1207     }
1208     else
1209     {
1210         /*Else and default design have not done.*/
1211         /*Please confirm the STM and design else and default.*/
1212     }
1213 }
1214
1215 /****************************************/
1216 /* Event appraisal function             */
1217 /*   STM : apps_main                    */
1218 /*   State : lightstatus_brake_off( No 1 ) */
1219 /****************************************/
1220 static void Zmaster_apps_apps_mains1Event( void )
1221 {
1222     /*stt_lightstatus_brake_on*/
1223     if( g_stm_crr_state.car_element[StmCarElementNoLightstatusBrake].state == StmLightstatusBrakeSttNoOn )
1224     {
1225         stm_mst_apl_event_lightstatus_brake_on();
1226         Zmaster_apps_apps_mains1e0();
1227     }
1228     else
1229     {
1230         /*Else and default design have not done.*/
1231         /*Please confirm the STM and design else and default.*/
1232     }
1233 }
1234
1235 /****************************************/
1236 /* Event appraisal function             */
1237 /*   STM : apps_car_run                 */
1238 /*   State : meter_receiver( No 0 )     */
1239 /****************************************/
1240 static void Zmaster_apps_apps_car_runs0Event( void )
1241 {
1242     /*stt_lightstatus_brake_off*/
1243     if( g_stm_crr_state.car_element[StmCarElementNoLightstatusBrake].state == StmLightstatusBrakeSttNoOff )
1244     {
1245         /*evt_activate*/
1246         if( g_stm_event == StmEvtNoActivate )
1247         {
1248             /*ctg_meter*/
1249             if( g_stm_category == StmCtgNoMeter )
1250             {
1251                 /*ara_normal*/
1252                 if( g_stm_area == StmAreaNoNormal )
1253                 {
1254                     Zmaster_apps_apps_car_runs0e0();
1255                 }
1256                 else
1257                 {
1258                     /*Else and default design have not done.*/
1259                     /*Please confirm the STM and design else and default.*/
1260                 }
1261             }
1262             else
1263             {
1264                 /*Else and default design have not done.*/
1265                 /*Please confirm the STM and design else and default.*/
1266             }
1267         }
1268         /*evt_undo*/
1269         else if( g_stm_event == StmEvtNoUndo )
1270         {
1271             /*stt_prv_layer_apps_meter_receiver*/
1272             if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMtrRcv )
1273             {
1274                 Zmaster_apps_apps_car_runs0e3();
1275             }
1276             /*stt_prv_layer_apps_meter*/
1277             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMtrNml )
1278             {
1279                 Zmaster_apps_apps_car_runs0e0();
1280             }
1281             else
1282             {
1283                 /*Else and default design have not done.*/
1284                 /*Please confirm the STM and design else and default.*/
1285             }
1286         }
1287         else
1288         {
1289             /*Else and default design have not done.*/
1290             /*Please confirm the STM and design else and default.*/
1291         }
1292     }
1293     else
1294     {
1295         /*Else and default design have not done.*/
1296         /*Please confirm the STM and design else and default.*/
1297     }
1298 }
1299
1300 /****************************************/
1301 /* Event appraisal function             */
1302 /*   STM : apps_car_run                 */
1303 /*   State : meter( No 1 )              */
1304 /****************************************/
1305 static void Zmaster_apps_apps_car_runs1Event( void )
1306 {
1307     /*stt_lightstatus_brake_off*/
1308     if( g_stm_crr_state.car_element[StmCarElementNoLightstatusBrake].state == StmLightstatusBrakeSttNoOff )
1309     {
1310         /*evt_activate*/
1311         if( g_stm_event == StmEvtNoActivate )
1312         {
1313             /*ctg_meter*/
1314             if( g_stm_category == StmCtgNoMeter )
1315             {
1316                 /*ara_split_main*/
1317                 if( g_stm_area == StmAreaNoSplitMain )
1318                 {
1319                     Zmaster_apps_apps_car_runs0e3();
1320                 }
1321                 else
1322                 {
1323                     /*Else and default design have not done.*/
1324                     /*Please confirm the STM and design else and default.*/
1325                 }
1326             }
1327             /*ctg_receiver*/
1328             else if( g_stm_category == StmCtgNoReceiver )
1329             {
1330                 /*ara_split_sub*/
1331                 if( g_stm_area == StmAreaNoSplitSub )
1332                 {
1333                     Zmaster_apps_apps_car_runs0e3();
1334                 }
1335                 else
1336                 {
1337                     /*Else and default design have not done.*/
1338                     /*Please confirm the STM and design else and default.*/
1339                 }
1340             }
1341             else
1342             {
1343                 /*Else and default design have not done.*/
1344                 /*Please confirm the STM and design else and default.*/
1345             }
1346         }
1347         /*evt_undo*/
1348         else if( g_stm_event == StmEvtNoUndo )
1349         {
1350             /*stt_prv_layer_apps_meter_receiver*/
1351             if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMtrRcv )
1352             {
1353                 Zmaster_apps_apps_car_runs0e3();
1354             }
1355             /*stt_prv_layer_apps_meter*/
1356             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMtrNml )
1357             {
1358                 Zmaster_apps_apps_car_runs0e0();
1359             }
1360             else
1361             {
1362                 /*Else and default design have not done.*/
1363                 /*Please confirm the STM and design else and default.*/
1364             }
1365         }
1366         else
1367         {
1368             /*Else and default design have not done.*/
1369             /*Please confirm the STM and design else and default.*/
1370         }
1371     }
1372     else
1373     {
1374         /*Else and default design have not done.*/
1375         /*Please confirm the STM and design else and default.*/
1376     }
1377 }
1378
1379 /****************************************/
1380 /* Event call function                  */
1381 /*   STM : apps_main                    */
1382 /****************************************/
1383 void stm_master_apl_event_call( void )
1384 {
1385     stm_mst_apl_start_stm();
1386     switch( Zmaster_apps_apps_mainState[ZMASTER_APPS_APPS_MAIN] )
1387     {
1388     case ZMASTER_APPS_APPS_MAINS0:
1389         switch( Zmaster_apps_apps_mainState[ZMASTER_APPS_APPS_MAINS0F] )
1390         {
1391         case ZMASTER_APPS_APPS_CAR_STOPS0:
1392             Zmaster_apps_apps_car_stops0Event();
1393             break;
1394         case ZMASTER_APPS_APPS_CAR_STOPS1:
1395             Zmaster_apps_apps_car_stops1Event();
1396             break;
1397         case ZMASTER_APPS_APPS_CAR_STOPS2:
1398             Zmaster_apps_apps_car_stops2Event();
1399             break;
1400         case ZMASTER_APPS_APPS_CAR_STOPS3:
1401             Zmaster_apps_apps_car_stops3Event();
1402             break;
1403         case ZMASTER_APPS_APPS_CAR_STOPS4:
1404             Zmaster_apps_apps_car_stops4Event();
1405             break;
1406         case ZMASTER_APPS_APPS_CAR_STOPS5:
1407             Zmaster_apps_apps_car_stops5Event();
1408             break;
1409         default:
1410             /*Not accessible to this else (default).*/
1411             break;
1412         }
1413         Zmaster_apps_apps_mains0Event();
1414         break;
1415     case ZMASTER_APPS_APPS_MAINS1:
1416         switch( Zmaster_apps_apps_mainState[ZMASTER_APPS_APPS_MAINS1F] )
1417         {
1418         case ZMASTER_APPS_APPS_CAR_RUNS0:
1419             Zmaster_apps_apps_car_runs0Event();
1420             break;
1421         case ZMASTER_APPS_APPS_CAR_RUNS1:
1422             Zmaster_apps_apps_car_runs1Event();
1423             break;
1424         default:
1425             /*Not accessible to this else (default).*/
1426             break;
1427         }
1428         Zmaster_apps_apps_mains1Event();
1429         break;
1430     default:
1431         /*Not accessible to this else (default).*/
1432         break;
1433     }
1434 }
1435
1436 /****************************************/
1437 /* Initial function                     */
1438 /*   STM : apps_main                    */
1439 /****************************************/
1440 void stm_master_apl_initialize( void )
1441 {
1442     Zmaster_apps_apps_mainState[ZMASTER_APPS_APPS_MAIN] = ( uint8_t )ZMASTER_APPS_APPS_MAINS0;
1443     Zmaster_apps_apps_mainState[ZMASTER_APPS_APPS_MAINS0F] = ( uint8_t )ZMASTER_APPS_APPS_CAR_STOPS0;
1444     Zmaster_apps_apps_mainState[ZMASTER_APPS_APPS_MAINS1F] = ( uint8_t )ZMASTER_APPS_APPS_CAR_RUNS0;
1445     Zmaster_apps_apps_mains0StateEntry();
1446 }
1447
1448 /****************************************/
1449 /* Terminate function                   */
1450 /*   STM : apps_main                    */
1451 /****************************************/
1452 void Zmaster_apps_apps_mainTerminate( void )
1453 {
1454     Zmaster_apps_apps_mainState[ZMASTER_APPS_APPS_MAIN] = ( uint8_t )ZMASTER_APPS_APPS_MAINTERMINATE;
1455 }
1456