Add chage remote app
[apps/agl-service-windowmanager.git] / policy_manager / stm / zipc / StateTransitionor / AppsLayer / ZAPL_AppsLayer.c
1 /************************************************************/
2 /*     ZAPL_AppsLayer.c                                     */
3 /*     AppsLayer State transition model source file         */
4 /*     ZIPC Designer Version 1.2.1                          */
5 /************************************************************/
6 #include "../ZST_include.h"
7
8 /* State management variable */
9 static uint8_t ZAPL_AppsLayerState[ZAPL_APPSLAYERSTATENOMAX];
10
11 static void ZAPL_AppsLayers0StateEntry( void );
12 static void ZAPL_AppsLayers1StateEntry( void );
13 static void ZAPL_AppsLayers0e1( void );
14 static void ZAPL_AppsLayers1e0( void );
15 static void ZAPL_RestrictionModeOffs0e0( void );
16 static void ZAPL_RestrictionModeOffs0e2( void );
17 static void ZAPL_RestrictionModeOffs0e3( void );
18 static void ZAPL_RestrictionModeOffs0e6( void );
19 static void ZAPL_RestrictionModeOffs0e7( void );
20 static void ZAPL_RestrictionModeOffs0e8( void );
21 static void ZAPL_RestrictionModeOffs0e9( void );
22 static void ZAPL_RestrictionModeOffs0e16( void );
23 static void ZAPL_RestrictionModeOffs0e18( void );
24 static void ZAPL_RestrictionModeOffs0e21( void );
25 static void ZAPL_RestrictionModeOffs1e0( void );
26 static void ZAPL_RestrictionModeOffs1e10( void );
27 static void ZAPL_RestrictionModeOffs2e3( void );
28 static void ZAPL_RestrictionModeOffs3e19( void );
29 static void ZAPL_RestrictionModeOffs4e3( void );
30 static void ZAPL_RestrictionModeOffs5e3( void );
31 static void ZAPL_RestrictionModeOffs6e6( void );
32 static void ZAPL_RestrictionModeOffs7e7( void );
33 static void ZAPL_RestrictionModeOffs8e8( void );
34 static void ZAPL_RestrictionModeOffs9e9( void );
35 static void ZAPL_RestrictionModeOns0e1( void );
36 static void ZAPL_RestrictionModeOns0e2( void );
37 static void ZAPL_RestrictionModeOns1e0( void );
38 static void ZAPL_RestrictionModeOns1e3( void );
39 static void ZAPL_AppsLayers0Event( void );
40 static void ZAPL_RestrictionModeOffs0Event( void );
41 static void ZAPL_RestrictionModeOffs1Event( void );
42 static void ZAPL_RestrictionModeOffs2Event( void );
43 static void ZAPL_RestrictionModeOffs3Event( void );
44 static void ZAPL_RestrictionModeOffs4Event( void );
45 static void ZAPL_RestrictionModeOffs5Event( void );
46 static void ZAPL_RestrictionModeOffs6Event( void );
47 static void ZAPL_RestrictionModeOffs7Event( void );
48 static void ZAPL_RestrictionModeOffs8Event( void );
49 static void ZAPL_RestrictionModeOffs9Event( void );
50 static void ZAPL_AppsLayers1Event( void );
51 static void ZAPL_RestrictionModeOns0Event( void );
52 static void ZAPL_RestrictionModeOns1Event( void );
53
54 /****************************************/
55 /* State start activity function        */
56 /*   STM : AppsLayer                    */
57 /*   State : restriction_mode_off( No 0 ) */
58 /****************************************/
59 static void ZAPL_AppsLayers0StateEntry( void )
60 {
61     switch( ZAPL_AppsLayerState[ZAPL_APPSLAYERS0F] )
62     {
63     case ZAPL_RESTRICTIONMODEOFFS0:
64         stm_apl_start_activity_none();
65         break;
66     case ZAPL_RESTRICTIONMODEOFFS1:
67         stm_apl_start_activity_map();
68         break;
69     case ZAPL_RESTRICTIONMODEOFFS2:
70         stm_apl_start_activity_map_split();
71         break;
72     case ZAPL_RESTRICTIONMODEOFFS3:
73         stm_apl_start_activity_map_fullscreen();
74         break;
75     case ZAPL_RESTRICTIONMODEOFFS4:
76         stm_apl_start_activity_splitable_normal();
77         break;
78     case ZAPL_RESTRICTIONMODEOFFS5:
79         stm_apl_start_activity_splitable_split();
80         break;
81     case ZAPL_RESTRICTIONMODEOFFS6:
82         stm_apl_start_activity_general();
83         break;
84     case ZAPL_RESTRICTIONMODEOFFS7:
85         stm_apl_start_activity_system();
86         break;
87     case ZAPL_RESTRICTIONMODEOFFS8:
88         stm_apl_start_activity_launcher();
89         break;
90     case ZAPL_RESTRICTIONMODEOFFS9:
91         stm_apl_start_activity_launcher_fullscreen();
92         break;
93     default:
94         /*Not accessible to this else (default).*/
95         break;
96     }
97 }
98
99 /****************************************/
100 /* State start activity function        */
101 /*   STM : AppsLayer                    */
102 /*   State : restriction_mode_on( No 1 )*/
103 /****************************************/
104 static void ZAPL_AppsLayers1StateEntry( void )
105 {
106     switch( ZAPL_AppsLayerState[ZAPL_APPSLAYERS1F] )
107     {
108     case ZAPL_RESTRICTIONMODEONS0:
109         stm_apl_start_activity_map();
110         break;
111     case ZAPL_RESTRICTIONMODEONS1:
112         stm_apl_start_activity_map_fullscreen();
113         break;
114     default:
115         /*Not accessible to this else (default).*/
116         break;
117     }
118 }
119
120 /****************************************/
121 /* Action function                      */
122 /*   STM : AppsLayer                    */
123 /*   State : restriction_mode_off( No 0 ) */
124 /*   Event : stt_prv_layer_apps_not_sys_nml( No 1 ) */
125 /****************************************/
126 static void ZAPL_AppsLayers0e1( void )
127 {
128     ZAPL_AppsLayerState[ZAPL_APPSLAYER] = ( uint8_t )ZAPL_APPSLAYERS1;
129     ZAPL_AppsLayerState[ZAPL_APPSLAYERS1F] = ( uint8_t )ZAPL_RESTRICTIONMODEONS0;
130     ZAPL_AppsLayers1StateEntry();
131 }
132
133 /****************************************/
134 /* Action function                      */
135 /*   STM : AppsLayer                    */
136 /*   State : restriction_mode_on( No 1 )*/
137 /*   Event : stt_restriction_mode_off( No 0 ) */
138 /****************************************/
139 static void ZAPL_AppsLayers1e0( void )
140 {
141     ZAPL_AppsLayerState[ZAPL_APPSLAYER] = ( uint8_t )ZAPL_APPSLAYERS0;
142     ZAPL_AppsLayers0StateEntry();
143 }
144
145 /****************************************/
146 /* Action function                      */
147 /*   STM : RestrictionModeOff           */
148 /*   State : none( No 0 )               */
149 /*   Event : ara_normal( No 0 )         */
150 /****************************************/
151 static void ZAPL_RestrictionModeOffs0e0( void )
152 {
153     ZAPL_AppsLayerState[ZAPL_APPSLAYERS0F] = ( uint8_t )ZAPL_RESTRICTIONMODEOFFS1;
154     stm_apl_start_activity_map();
155 }
156
157 /****************************************/
158 /* Action function                      */
159 /*   STM : RestrictionModeOff           */
160 /*   State : none( No 0 )               */
161 /*   Event : ara_fullscreen( No 2 )     */
162 /****************************************/
163 static void ZAPL_RestrictionModeOffs0e2( void )
164 {
165     ZAPL_AppsLayerState[ZAPL_APPSLAYERS0F] = ( uint8_t )ZAPL_RESTRICTIONMODEOFFS3;
166     stm_apl_start_activity_map_fullscreen();
167 }
168
169 /****************************************/
170 /* Action function                      */
171 /*   STM : RestrictionModeOff           */
172 /*   State : none( No 0 )               */
173 /*   Event : ara_normal( No 3 )         */
174 /****************************************/
175 static void ZAPL_RestrictionModeOffs0e3( void )
176 {
177     ZAPL_AppsLayerState[ZAPL_APPSLAYERS0F] = ( uint8_t )ZAPL_RESTRICTIONMODEOFFS4;
178     stm_apl_start_activity_splitable_normal();
179 }
180
181 /****************************************/
182 /* Action function                      */
183 /*   STM : RestrictionModeOff           */
184 /*   State : none( No 0 )               */
185 /*   Event : ara_normal( No 6 )         */
186 /****************************************/
187 static void ZAPL_RestrictionModeOffs0e6( void )
188 {
189     ZAPL_AppsLayerState[ZAPL_APPSLAYERS0F] = ( uint8_t )ZAPL_RESTRICTIONMODEOFFS6;
190     stm_apl_start_activity_general();
191 }
192
193 /****************************************/
194 /* Action function                      */
195 /*   STM : RestrictionModeOff           */
196 /*   State : none( No 0 )               */
197 /*   Event : ara_normal( No 7 )         */
198 /****************************************/
199 static void ZAPL_RestrictionModeOffs0e7( void )
200 {
201     ZAPL_AppsLayerState[ZAPL_APPSLAYERS0F] = ( uint8_t )ZAPL_RESTRICTIONMODEOFFS7;
202     stm_apl_start_activity_system();
203 }
204
205 /****************************************/
206 /* Action function                      */
207 /*   STM : RestrictionModeOff           */
208 /*   State : none( No 0 )               */
209 /*   Event : ara_normal( No 8 )         */
210 /****************************************/
211 static void ZAPL_RestrictionModeOffs0e8( void )
212 {
213     ZAPL_AppsLayerState[ZAPL_APPSLAYERS0F] = ( uint8_t )ZAPL_RESTRICTIONMODEOFFS8;
214     stm_apl_start_activity_launcher();
215 }
216
217 /****************************************/
218 /* Action function                      */
219 /*   STM : RestrictionModeOff           */
220 /*   State : none( No 0 )               */
221 /*   Event : ara_fullscreen( No 9 )     */
222 /****************************************/
223 static void ZAPL_RestrictionModeOffs0e9( void )
224 {
225     ZAPL_AppsLayerState[ZAPL_APPSLAYERS0F] = ( uint8_t )ZAPL_RESTRICTIONMODEOFFS9;
226     stm_apl_start_activity_launcher_fullscreen();
227 }
228
229 /****************************************/
230 /* Action function                      */
231 /*   STM : RestrictionModeOff           */
232 /*   State : none( No 0 )               */
233 /*   Event : stt_prv_layer_apps_none( No 16 ) */
234 /****************************************/
235 static void ZAPL_RestrictionModeOffs0e16( void )
236 {
237     stm_apl_start_activity_none();
238 }
239
240 /****************************************/
241 /* Action function                      */
242 /*   STM : RestrictionModeOff           */
243 /*   State : none( No 0 )               */
244 /*   Event : stt_prv_layer_apps_map_spl( No 18 ) */
245 /****************************************/
246 static void ZAPL_RestrictionModeOffs0e18( void )
247 {
248     ZAPL_AppsLayerState[ZAPL_APPSLAYERS0F] = ( uint8_t )ZAPL_RESTRICTIONMODEOFFS2;
249     stm_apl_start_activity_map_split();
250 }
251
252 /****************************************/
253 /* Action function                      */
254 /*   STM : RestrictionModeOff           */
255 /*   State : none( No 0 )               */
256 /*   Event : stt_prv_layer_apps_spl_spl( No 21 ) */
257 /****************************************/
258 static void ZAPL_RestrictionModeOffs0e21( void )
259 {
260     ZAPL_AppsLayerState[ZAPL_APPSLAYERS0F] = ( uint8_t )ZAPL_RESTRICTIONMODEOFFS5;
261     stm_apl_start_activity_splitable_split();
262 }
263
264 /****************************************/
265 /* Action function                      */
266 /*   STM : RestrictionModeOff           */
267 /*   State : map( No 1 )                */
268 /*   Event : ara_normal( No 0 )         */
269 /****************************************/
270 static void ZAPL_RestrictionModeOffs1e0( void )
271 {
272     stm_apl_start_activity_map();
273 }
274
275 /****************************************/
276 /* Action function                      */
277 /*   STM : RestrictionModeOff           */
278 /*   State : map( No 1 )                */
279 /*   Event : ara_fullscreen( No 10 )    */
280 /****************************************/
281 static void ZAPL_RestrictionModeOffs1e10( void )
282 {
283     ZAPL_AppsLayerState[ZAPL_APPSLAYERS0F] = ( uint8_t )ZAPL_RESTRICTIONMODEOFFS0;
284     stm_apl_start_activity_none();
285 }
286
287 /****************************************/
288 /* Action function                      */
289 /*   STM : RestrictionModeOff           */
290 /*   State : map_split( No 2 )          */
291 /*   Event : ara_normal( No 3 )         */
292 /****************************************/
293 static void ZAPL_RestrictionModeOffs2e3( void )
294 {
295     stm_apl_start_activity_map_split();
296 }
297
298 /****************************************/
299 /* Action function                      */
300 /*   STM : RestrictionModeOff           */
301 /*   State : map_fullscreen( No 3 )     */
302 /*   Event : stt_prv_layer_apps_map_fll( No 19 ) */
303 /****************************************/
304 static void ZAPL_RestrictionModeOffs3e19( void )
305 {
306     stm_apl_start_activity_map_fullscreen();
307 }
308
309 /****************************************/
310 /* Action function                      */
311 /*   STM : RestrictionModeOff           */
312 /*   State : splitable_normal( No 4 )   */
313 /*   Event : ara_normal( No 3 )         */
314 /****************************************/
315 static void ZAPL_RestrictionModeOffs4e3( void )
316 {
317     stm_apl_start_activity_splitable_normal();
318 }
319
320 /****************************************/
321 /* Action function                      */
322 /*   STM : RestrictionModeOff           */
323 /*   State : splitable_split( No 5 )    */
324 /*   Event : ara_normal( No 3 )         */
325 /****************************************/
326 static void ZAPL_RestrictionModeOffs5e3( void )
327 {
328     stm_apl_start_activity_splitable_split();
329 }
330
331 /****************************************/
332 /* Action function                      */
333 /*   STM : RestrictionModeOff           */
334 /*   State : general( No 6 )            */
335 /*   Event : ara_normal( No 6 )         */
336 /****************************************/
337 static void ZAPL_RestrictionModeOffs6e6( void )
338 {
339     stm_apl_start_activity_general();
340 }
341
342 /****************************************/
343 /* Action function                      */
344 /*   STM : RestrictionModeOff           */
345 /*   State : system( No 7 )             */
346 /*   Event : ara_normal( No 7 )         */
347 /****************************************/
348 static void ZAPL_RestrictionModeOffs7e7( void )
349 {
350     stm_apl_start_activity_system();
351 }
352
353 /****************************************/
354 /* Action function                      */
355 /*   STM : RestrictionModeOff           */
356 /*   State : launcher_normal( No 8 )    */
357 /*   Event : ara_normal( No 8 )         */
358 /****************************************/
359 static void ZAPL_RestrictionModeOffs8e8( void )
360 {
361     stm_apl_start_activity_launcher();
362 }
363
364 /****************************************/
365 /* Action function                      */
366 /*   STM : RestrictionModeOff           */
367 /*   State : launcher_fullscreen( No 9 )*/
368 /*   Event : ara_fullscreen( No 9 )     */
369 /****************************************/
370 static void ZAPL_RestrictionModeOffs9e9( void )
371 {
372     stm_apl_start_activity_launcher_fullscreen();
373 }
374
375 /****************************************/
376 /* Action function                      */
377 /*   STM : RestrictionModeOn            */
378 /*   State : map( No 0 )                */
379 /*   Event : ara_fullscreen( No 1 )     */
380 /****************************************/
381 static void ZAPL_RestrictionModeOns0e1( void )
382 {
383     ZAPL_AppsLayerState[ZAPL_APPSLAYERS1F] = ( uint8_t )ZAPL_RESTRICTIONMODEONS1;
384     stm_apl_start_activity_map_fullscreen();
385 }
386
387 /****************************************/
388 /* Action function                      */
389 /*   STM : RestrictionModeOn            */
390 /*   State : map( No 0 )                */
391 /*   Event : stt_prv_layer_apps_map_nml( No 2 ) */
392 /****************************************/
393 static void ZAPL_RestrictionModeOns0e2( void )
394 {
395     stm_apl_start_activity_map();
396 }
397
398 /****************************************/
399 /* Action function                      */
400 /*   STM : RestrictionModeOn            */
401 /*   State : map_fullscreen( No 1 )     */
402 /*   Event : ara_normal( No 0 )         */
403 /****************************************/
404 static void ZAPL_RestrictionModeOns1e0( void )
405 {
406     ZAPL_AppsLayerState[ZAPL_APPSLAYERS1F] = ( uint8_t )ZAPL_RESTRICTIONMODEONS0;
407     stm_apl_start_activity_map();
408 }
409
410 /****************************************/
411 /* Action function                      */
412 /*   STM : RestrictionModeOn            */
413 /*   State : map_fullscreen( No 1 )     */
414 /*   Event : stt_prv_layer_apps_map_fll( No 3 ) */
415 /****************************************/
416 static void ZAPL_RestrictionModeOns1e3( void )
417 {
418     stm_apl_start_activity_map_fullscreen();
419 }
420
421 /****************************************/
422 /* Event appraisal function             */
423 /*   STM : AppsLayer                    */
424 /*   State : restriction_mode_off( No 0 ) */
425 /****************************************/
426 static void ZAPL_AppsLayers0Event( void )
427 {
428     /*stt_restriction_mode_on*/
429     if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOn )
430     {
431         stm_apl_event_restriction_mode_on();
432         /*stt_map_is_activated*/
433         if( g_stm_map_is_activated == STM_TRUE )
434         {
435             /*stt_prv_layer_apps_not_sys_nml*/
436             if( g_stm_prv_state.layer[StmLayerNoApps].state != StmLayoutNoSysNml )
437             {
438                 ZAPL_AppsLayers0e1();
439             }
440             else
441             {
442                 /*Else and default design have not done.*/
443                 /*Please confirm the STM and design else and default.*/
444             }
445         }
446         else
447         {
448             /*Else and default design have not done.*/
449             /*Please confirm the STM and design else and default.*/
450         }
451     }
452     else
453     {
454         /*Else and default design have not done.*/
455         /*Please confirm the STM and design else and default.*/
456     }
457 }
458
459 /****************************************/
460 /* Event appraisal function             */
461 /*   STM : RestrictionModeOff           */
462 /*   State : none( No 0 )               */
463 /****************************************/
464 static void ZAPL_RestrictionModeOffs0Event( void )
465 {
466     /*stt_restriction_mode_off*/
467     if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOff )
468     {
469         /*evt_activate*/
470         if( g_stm_event == StmEvtNoActivate )
471         {
472             /*ctg_map*/
473             if( g_stm_category == StmCtgNoMap )
474             {
475                 /*ara_normal*/
476                 if( g_stm_area == StmAreaNoNormal )
477                 {
478                     ZAPL_RestrictionModeOffs0e0();
479                 }
480                 /*ara_fullscreen*/
481                 else if( g_stm_area == StmAreaNoFullscreen )
482                 {
483                     ZAPL_RestrictionModeOffs0e2();
484                 }
485                 else
486                 {
487                     /*Else and default design have not done.*/
488                     /*Please confirm the STM and design else and default.*/
489                 }
490             }
491             /*ctg_splitable*/
492             else if( g_stm_category == StmCtgNoSplitable )
493             {
494                 /*ara_normal*/
495                 if( g_stm_area == StmAreaNoNormal )
496                 {
497                     ZAPL_RestrictionModeOffs0e3();
498                 }
499                 else
500                 {
501                     /*Else and default design have not done.*/
502                     /*Please confirm the STM and design else and default.*/
503                 }
504             }
505             /*ctg_general*/
506             else if( g_stm_category == StmCtgNoGeneral )
507             {
508                 /*ara_normal*/
509                 if( g_stm_area == StmAreaNoNormal )
510                 {
511                     ZAPL_RestrictionModeOffs0e6();
512                 }
513                 else
514                 {
515                     /*Else and default design have not done.*/
516                     /*Please confirm the STM and design else and default.*/
517                 }
518             }
519             /*ctg_system*/
520             else if( g_stm_category == StmCtgNoSystem )
521             {
522                 /*ara_normal*/
523                 if( g_stm_area == StmAreaNoNormal )
524                 {
525                     ZAPL_RestrictionModeOffs0e7();
526                 }
527                 else
528                 {
529                     /*Else and default design have not done.*/
530                     /*Please confirm the STM and design else and default.*/
531                 }
532             }
533             /*ctg_launcher*/
534             else if( g_stm_category == StmCtgNoLauncher )
535             {
536                 /*ara_normal*/
537                 if( g_stm_area == StmAreaNoNormal )
538                 {
539                     ZAPL_RestrictionModeOffs0e8();
540                 }
541                 /*ara_fullscreen*/
542                 else if( g_stm_area == StmAreaNoFullscreen )
543                 {
544                     ZAPL_RestrictionModeOffs0e9();
545                 }
546                 else
547                 {
548                     /*Else and default design have not done.*/
549                     /*Please confirm the STM and design else and default.*/
550                 }
551             }
552             else
553             {
554                 /*Else and default design have not done.*/
555                 /*Please confirm the STM and design else and default.*/
556             }
557         }
558         /*evt_undo*/
559         else if( g_stm_event == StmEvtNoUndo )
560         {
561             /*stt_prv_layer_apps_none*/
562             if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
563             {
564                 ZAPL_RestrictionModeOffs0e16();
565             }
566             /*stt_prv_layer_apps_map_nml*/
567             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
568             {
569                 ZAPL_RestrictionModeOffs0e0();
570             }
571             /*stt_prv_layer_apps_map_spl*/
572             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
573             {
574                 ZAPL_RestrictionModeOffs0e18();
575             }
576             /*stt_prv_layer_apps_map_fll*/
577             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
578             {
579                 ZAPL_RestrictionModeOffs0e2();
580             }
581             /*stt_prv_layer_apps_spl_nml*/
582             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplNml )
583             {
584                 ZAPL_RestrictionModeOffs0e3();
585             }
586             /*stt_prv_layer_apps_spl_spl*/
587             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
588             {
589                 ZAPL_RestrictionModeOffs0e21();
590             }
591             /*stt_prv_layer_apps_gen_nml*/
592             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
593             {
594                 ZAPL_RestrictionModeOffs0e6();
595             }
596             /*stt_prv_layer_apps_sys_nml*/
597             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSysNml )
598             {
599                 ZAPL_RestrictionModeOffs0e7();
600             }
601             /*stt_prv_layer_apps_lch_nml*/
602             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchNml )
603             {
604                 ZAPL_RestrictionModeOffs0e8();
605             }
606             /*stt_prv_layer_apps_lch_fll*/
607             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchFll )
608             {
609                 ZAPL_RestrictionModeOffs0e9();
610             }
611             else
612             {
613                 /*Else and default design have not done.*/
614                 /*Please confirm the STM and design else and default.*/
615             }
616         }
617         else
618         {
619             /*Else and default design have not done.*/
620             /*Please confirm the STM and design else and default.*/
621         }
622     }
623     else
624     {
625         /*Else and default design have not done.*/
626         /*Please confirm the STM and design else and default.*/
627     }
628 }
629
630 /****************************************/
631 /* Event appraisal function             */
632 /*   STM : RestrictionModeOff           */
633 /*   State : map( No 1 )                */
634 /****************************************/
635 static void ZAPL_RestrictionModeOffs1Event( void )
636 {
637     /*stt_restriction_mode_off*/
638     if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOff )
639     {
640         /*evt_activate*/
641         if( g_stm_event == StmEvtNoActivate )
642         {
643             /*ctg_map*/
644             if( g_stm_category == StmCtgNoMap )
645             {
646                 /*ara_normal*/
647                 if( g_stm_area == StmAreaNoNormal )
648                 {
649                     ZAPL_RestrictionModeOffs1e0();
650                 }
651                 /*ara_fullscreen*/
652                 else if( g_stm_area == StmAreaNoFullscreen )
653                 {
654                     ZAPL_RestrictionModeOffs0e2();
655                 }
656                 else
657                 {
658                     /*Else and default design have not done.*/
659                     /*Please confirm the STM and design else and default.*/
660                 }
661             }
662             /*ctg_splitable*/
663             else if( g_stm_category == StmCtgNoSplitable )
664             {
665                 /*ara_normal*/
666                 if( g_stm_area == StmAreaNoNormal )
667                 {
668                     ZAPL_RestrictionModeOffs0e18();
669                 }
670                 /*ara_split_sub*/
671                 else if( g_stm_area == StmAreaNoSplitSub )
672                 {
673                     ZAPL_RestrictionModeOffs0e18();
674                 }
675                 else
676                 {
677                     /*Else and default design have not done.*/
678                     /*Please confirm the STM and design else and default.*/
679                 }
680             }
681             /*ctg_general*/
682             else if( g_stm_category == StmCtgNoGeneral )
683             {
684                 /*ara_normal*/
685                 if( g_stm_area == StmAreaNoNormal )
686                 {
687                     ZAPL_RestrictionModeOffs0e6();
688                 }
689                 else
690                 {
691                     /*Else and default design have not done.*/
692                     /*Please confirm the STM and design else and default.*/
693                 }
694             }
695             /*ctg_system*/
696             else if( g_stm_category == StmCtgNoSystem )
697             {
698                 /*ara_normal*/
699                 if( g_stm_area == StmAreaNoNormal )
700                 {
701                     ZAPL_RestrictionModeOffs0e7();
702                 }
703                 else
704                 {
705                     /*Else and default design have not done.*/
706                     /*Please confirm the STM and design else and default.*/
707                 }
708             }
709             /*ctg_launcher*/
710             else if( g_stm_category == StmCtgNoLauncher )
711             {
712                 /*ara_normal*/
713                 if( g_stm_area == StmAreaNoNormal )
714                 {
715                     ZAPL_RestrictionModeOffs0e8();
716                 }
717                 /*ara_fullscreen*/
718                 else if( g_stm_area == StmAreaNoFullscreen )
719                 {
720                     ZAPL_RestrictionModeOffs0e9();
721                 }
722                 else
723                 {
724                     /*Else and default design have not done.*/
725                     /*Please confirm the STM and design else and default.*/
726                 }
727             }
728             /*ctg_homescreen*/
729             else if( g_stm_category == StmCtgNoHomescreen )
730             {
731                 /*ara_fullscreen*/
732                 if( g_stm_area == StmAreaNoFullscreen )
733                 {
734                     ZAPL_RestrictionModeOffs1e10();
735                 }
736                 else
737                 {
738                     /*Else and default design have not done.*/
739                     /*Please confirm the STM and design else and default.*/
740                 }
741             }
742             else
743             {
744                 /*Else and default design have not done.*/
745                 /*Please confirm the STM and design else and default.*/
746             }
747         }
748         /*evt_deactivate*/
749         else if( g_stm_event == StmEvtNoDeactivate )
750         {
751             /*ctg_map*/
752             if( g_stm_category == StmCtgNoMap )
753             {
754                 ZAPL_RestrictionModeOffs1e10();
755             }
756             else
757             {
758                 /*Else and default design have not done.*/
759                 /*Please confirm the STM and design else and default.*/
760             }
761         }
762         /*evt_undo*/
763         else if( g_stm_event == StmEvtNoUndo )
764         {
765             /*stt_prv_layer_apps_none*/
766             if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
767             {
768                 ZAPL_RestrictionModeOffs1e10();
769             }
770             /*stt_prv_layer_apps_map_nml*/
771             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
772             {
773                 ZAPL_RestrictionModeOffs1e0();
774             }
775             /*stt_prv_layer_apps_map_spl*/
776             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
777             {
778                 ZAPL_RestrictionModeOffs0e18();
779             }
780             /*stt_prv_layer_apps_map_fll*/
781             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
782             {
783                 ZAPL_RestrictionModeOffs0e2();
784             }
785             /*stt_prv_layer_apps_spl_nml*/
786             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplNml )
787             {
788                 ZAPL_RestrictionModeOffs0e3();
789             }
790             /*stt_prv_layer_apps_spl_spl*/
791             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
792             {
793                 ZAPL_RestrictionModeOffs0e21();
794             }
795             /*stt_prv_layer_apps_gen_nml*/
796             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
797             {
798                 ZAPL_RestrictionModeOffs0e6();
799             }
800             /*stt_prv_layer_apps_sys_nml*/
801             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSysNml )
802             {
803                 ZAPL_RestrictionModeOffs0e7();
804             }
805             /*stt_prv_layer_apps_lch_nml*/
806             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchNml )
807             {
808                 ZAPL_RestrictionModeOffs0e8();
809             }
810             /*stt_prv_layer_apps_lch_fll*/
811             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchFll )
812             {
813                 ZAPL_RestrictionModeOffs0e9();
814             }
815             else
816             {
817                 /*Else and default design have not done.*/
818                 /*Please confirm the STM and design else and default.*/
819             }
820         }
821         else
822         {
823             /*Else and default design have not done.*/
824             /*Please confirm the STM and design else and default.*/
825         }
826     }
827     else
828     {
829         /*Else and default design have not done.*/
830         /*Please confirm the STM and design else and default.*/
831     }
832 }
833
834 /****************************************/
835 /* Event appraisal function             */
836 /*   STM : RestrictionModeOff           */
837 /*   State : map_split( No 2 )          */
838 /****************************************/
839 static void ZAPL_RestrictionModeOffs2Event( void )
840 {
841     /*stt_restriction_mode_off*/
842     if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOff )
843     {
844         /*evt_activate*/
845         if( g_stm_event == StmEvtNoActivate )
846         {
847             /*ctg_map*/
848             if( g_stm_category == StmCtgNoMap )
849             {
850                 /*ara_normal*/
851                 if( g_stm_area == StmAreaNoNormal )
852                 {
853                     ZAPL_RestrictionModeOffs0e0();
854                 }
855                 /*ara_fullscreen*/
856                 else if( g_stm_area == StmAreaNoFullscreen )
857                 {
858                     ZAPL_RestrictionModeOffs0e2();
859                 }
860                 else
861                 {
862                     /*Else and default design have not done.*/
863                     /*Please confirm the STM and design else and default.*/
864                 }
865             }
866             /*ctg_splitable*/
867             else if( g_stm_category == StmCtgNoSplitable )
868             {
869                 /*ara_normal*/
870                 if( g_stm_area == StmAreaNoNormal )
871                 {
872                     ZAPL_RestrictionModeOffs2e3();
873                 }
874                 /*ara_split_sub*/
875                 else if( g_stm_area == StmAreaNoSplitSub )
876                 {
877                     ZAPL_RestrictionModeOffs2e3();
878                 }
879                 else
880                 {
881                     /*Else and default design have not done.*/
882                     /*Please confirm the STM and design else and default.*/
883                 }
884             }
885             /*ctg_general*/
886             else if( g_stm_category == StmCtgNoGeneral )
887             {
888                 /*ara_normal*/
889                 if( g_stm_area == StmAreaNoNormal )
890                 {
891                     ZAPL_RestrictionModeOffs0e6();
892                 }
893                 else
894                 {
895                     /*Else and default design have not done.*/
896                     /*Please confirm the STM and design else and default.*/
897                 }
898             }
899             /*ctg_system*/
900             else if( g_stm_category == StmCtgNoSystem )
901             {
902                 /*ara_normal*/
903                 if( g_stm_area == StmAreaNoNormal )
904                 {
905                     ZAPL_RestrictionModeOffs0e7();
906                 }
907                 else
908                 {
909                     /*Else and default design have not done.*/
910                     /*Please confirm the STM and design else and default.*/
911                 }
912             }
913             /*ctg_launcher*/
914             else if( g_stm_category == StmCtgNoLauncher )
915             {
916                 /*ara_normal*/
917                 if( g_stm_area == StmAreaNoNormal )
918                 {
919                     ZAPL_RestrictionModeOffs0e8();
920                 }
921                 /*ara_fullscreen*/
922                 else if( g_stm_area == StmAreaNoFullscreen )
923                 {
924                     ZAPL_RestrictionModeOffs0e9();
925                 }
926                 else
927                 {
928                     /*Else and default design have not done.*/
929                     /*Please confirm the STM and design else and default.*/
930                 }
931             }
932             /*ctg_homescreen*/
933             else if( g_stm_category == StmCtgNoHomescreen )
934             {
935                 /*ara_fullscreen*/
936                 if( g_stm_area == StmAreaNoFullscreen )
937                 {
938                     ZAPL_RestrictionModeOffs1e10();
939                 }
940                 else
941                 {
942                     /*Else and default design have not done.*/
943                     /*Please confirm the STM and design else and default.*/
944                 }
945             }
946             else
947             {
948                 /*Else and default design have not done.*/
949                 /*Please confirm the STM and design else and default.*/
950             }
951         }
952         /*evt_deactivate*/
953         else if( g_stm_event == StmEvtNoDeactivate )
954         {
955             /*ctg_map*/
956             if( g_stm_category == StmCtgNoMap )
957             {
958                 ZAPL_RestrictionModeOffs0e3();
959             }
960             else
961             {
962                 /*Else and default design have not done.*/
963                 /*Please confirm the STM and design else and default.*/
964             }
965         }
966         /*evt_undo*/
967         else if( g_stm_event == StmEvtNoUndo )
968         {
969             /*stt_prv_layer_apps_none*/
970             if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
971             {
972                 ZAPL_RestrictionModeOffs1e10();
973             }
974             /*stt_prv_layer_apps_map_nml*/
975             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
976             {
977                 ZAPL_RestrictionModeOffs0e0();
978             }
979             /*stt_prv_layer_apps_map_spl*/
980             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
981             {
982                 ZAPL_RestrictionModeOffs2e3();
983             }
984             /*stt_prv_layer_apps_map_fll*/
985             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
986             {
987                 ZAPL_RestrictionModeOffs0e2();
988             }
989             /*stt_prv_layer_apps_spl_nml*/
990             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplNml )
991             {
992                 ZAPL_RestrictionModeOffs0e3();
993             }
994             /*stt_prv_layer_apps_spl_spl*/
995             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
996             {
997                 ZAPL_RestrictionModeOffs0e21();
998             }
999             /*stt_prv_layer_apps_gen_nml*/
1000             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
1001             {
1002                 ZAPL_RestrictionModeOffs0e6();
1003             }
1004             /*stt_prv_layer_apps_sys_nml*/
1005             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSysNml )
1006             {
1007                 ZAPL_RestrictionModeOffs0e7();
1008             }
1009             /*stt_prv_layer_apps_lch_nml*/
1010             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchNml )
1011             {
1012                 ZAPL_RestrictionModeOffs0e8();
1013             }
1014             /*stt_prv_layer_apps_lch_fll*/
1015             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchFll )
1016             {
1017                 ZAPL_RestrictionModeOffs0e9();
1018             }
1019             else
1020             {
1021                 /*Else and default design have not done.*/
1022                 /*Please confirm the STM and design else and default.*/
1023             }
1024         }
1025         else
1026         {
1027             /*Else and default design have not done.*/
1028             /*Please confirm the STM and design else and default.*/
1029         }
1030     }
1031     else
1032     {
1033         /*Else and default design have not done.*/
1034         /*Please confirm the STM and design else and default.*/
1035     }
1036 }
1037
1038 /****************************************/
1039 /* Event appraisal function             */
1040 /*   STM : RestrictionModeOff           */
1041 /*   State : map_fullscreen( No 3 )     */
1042 /****************************************/
1043 static void ZAPL_RestrictionModeOffs3Event( void )
1044 {
1045     /*stt_restriction_mode_off*/
1046     if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOff )
1047     {
1048         /*evt_activate*/
1049         if( g_stm_event == StmEvtNoActivate )
1050         {
1051             /*ctg_map*/
1052             if( g_stm_category == StmCtgNoMap )
1053             {
1054                 /*ara_normal*/
1055                 if( g_stm_area == StmAreaNoNormal )
1056                 {
1057                     ZAPL_RestrictionModeOffs0e0();
1058                 }
1059                 else
1060                 {
1061                     /*Else and default design have not done.*/
1062                     /*Please confirm the STM and design else and default.*/
1063                 }
1064             }
1065             /*ctg_splitable*/
1066             else if( g_stm_category == StmCtgNoSplitable )
1067             {
1068                 /*ara_normal*/
1069                 if( g_stm_area == StmAreaNoNormal )
1070                 {
1071                     ZAPL_RestrictionModeOffs0e18();
1072                 }
1073                 else
1074                 {
1075                     /*Else and default design have not done.*/
1076                     /*Please confirm the STM and design else and default.*/
1077                 }
1078             }
1079             /*ctg_general*/
1080             else if( g_stm_category == StmCtgNoGeneral )
1081             {
1082                 /*ara_normal*/
1083                 if( g_stm_area == StmAreaNoNormal )
1084                 {
1085                     ZAPL_RestrictionModeOffs0e6();
1086                 }
1087                 else
1088                 {
1089                     /*Else and default design have not done.*/
1090                     /*Please confirm the STM and design else and default.*/
1091                 }
1092             }
1093             /*ctg_system*/
1094             else if( g_stm_category == StmCtgNoSystem )
1095             {
1096                 /*ara_normal*/
1097                 if( g_stm_area == StmAreaNoNormal )
1098                 {
1099                     ZAPL_RestrictionModeOffs0e7();
1100                 }
1101                 else
1102                 {
1103                     /*Else and default design have not done.*/
1104                     /*Please confirm the STM and design else and default.*/
1105                 }
1106             }
1107             /*ctg_launcher*/
1108             else if( g_stm_category == StmCtgNoLauncher )
1109             {
1110                 /*ara_normal*/
1111                 if( g_stm_area == StmAreaNoNormal )
1112                 {
1113                     ZAPL_RestrictionModeOffs0e8();
1114                 }
1115                 /*ara_fullscreen*/
1116                 else if( g_stm_area == StmAreaNoFullscreen )
1117                 {
1118                     ZAPL_RestrictionModeOffs0e9();
1119                 }
1120                 else
1121                 {
1122                     /*Else and default design have not done.*/
1123                     /*Please confirm the STM and design else and default.*/
1124                 }
1125             }
1126             /*ctg_homescreen*/
1127             else if( g_stm_category == StmCtgNoHomescreen )
1128             {
1129                 /*ara_fullscreen*/
1130                 if( g_stm_area == StmAreaNoFullscreen )
1131                 {
1132                     ZAPL_RestrictionModeOffs1e10();
1133                 }
1134                 else
1135                 {
1136                     /*Else and default design have not done.*/
1137                     /*Please confirm the STM and design else and default.*/
1138                 }
1139             }
1140             else
1141             {
1142                 /*Else and default design have not done.*/
1143                 /*Please confirm the STM and design else and default.*/
1144             }
1145         }
1146         /*evt_deactivate*/
1147         else if( g_stm_event == StmEvtNoDeactivate )
1148         {
1149             /*ctg_map*/
1150             if( g_stm_category == StmCtgNoMap )
1151             {
1152                 ZAPL_RestrictionModeOffs1e10();
1153             }
1154             else
1155             {
1156                 /*Else and default design have not done.*/
1157                 /*Please confirm the STM and design else and default.*/
1158             }
1159         }
1160         /*evt_undo*/
1161         else if( g_stm_event == StmEvtNoUndo )
1162         {
1163             /*stt_prv_layer_apps_none*/
1164             if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
1165             {
1166                 ZAPL_RestrictionModeOffs1e10();
1167             }
1168             /*stt_prv_layer_apps_map_nml*/
1169             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
1170             {
1171                 ZAPL_RestrictionModeOffs0e0();
1172             }
1173             /*stt_prv_layer_apps_map_spl*/
1174             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
1175             {
1176                 ZAPL_RestrictionModeOffs0e18();
1177             }
1178             /*stt_prv_layer_apps_map_fll*/
1179             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
1180             {
1181                 ZAPL_RestrictionModeOffs3e19();
1182             }
1183             /*stt_prv_layer_apps_spl_nml*/
1184             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplNml )
1185             {
1186                 ZAPL_RestrictionModeOffs0e3();
1187             }
1188             /*stt_prv_layer_apps_spl_spl*/
1189             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
1190             {
1191                 ZAPL_RestrictionModeOffs0e21();
1192             }
1193             /*stt_prv_layer_apps_gen_nml*/
1194             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
1195             {
1196                 ZAPL_RestrictionModeOffs0e6();
1197             }
1198             /*stt_prv_layer_apps_sys_nml*/
1199             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSysNml )
1200             {
1201                 ZAPL_RestrictionModeOffs0e7();
1202             }
1203             /*stt_prv_layer_apps_lch_nml*/
1204             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchNml )
1205             {
1206                 ZAPL_RestrictionModeOffs0e8();
1207             }
1208             /*stt_prv_layer_apps_lch_fll*/
1209             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchFll )
1210             {
1211                 ZAPL_RestrictionModeOffs0e9();
1212             }
1213             else
1214             {
1215                 /*Else and default design have not done.*/
1216                 /*Please confirm the STM and design else and default.*/
1217             }
1218         }
1219         else
1220         {
1221             /*Else and default design have not done.*/
1222             /*Please confirm the STM and design else and default.*/
1223         }
1224     }
1225     else
1226     {
1227         /*Else and default design have not done.*/
1228         /*Please confirm the STM and design else and default.*/
1229     }
1230 }
1231
1232 /****************************************/
1233 /* Event appraisal function             */
1234 /*   STM : RestrictionModeOff           */
1235 /*   State : splitable_normal( No 4 )   */
1236 /****************************************/
1237 static void ZAPL_RestrictionModeOffs4Event( void )
1238 {
1239     /*stt_restriction_mode_off*/
1240     if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOff )
1241     {
1242         /*evt_activate*/
1243         if( g_stm_event == StmEvtNoActivate )
1244         {
1245             /*ctg_map*/
1246             if( g_stm_category == StmCtgNoMap )
1247             {
1248                 /*ara_normal*/
1249                 if( g_stm_area == StmAreaNoNormal )
1250                 {
1251                     ZAPL_RestrictionModeOffs0e18();
1252                 }
1253                 /*ara_split_main*/
1254                 else if( g_stm_area == StmAreaNoSplitMain )
1255                 {
1256                     ZAPL_RestrictionModeOffs0e18();
1257                 }
1258                 /*ara_fullscreen*/
1259                 else if( g_stm_area == StmAreaNoFullscreen )
1260                 {
1261                     ZAPL_RestrictionModeOffs0e2();
1262                 }
1263                 else
1264                 {
1265                     /*Else and default design have not done.*/
1266                     /*Please confirm the STM and design else and default.*/
1267                 }
1268             }
1269             /*ctg_splitable*/
1270             else if( g_stm_category == StmCtgNoSplitable )
1271             {
1272                 /*ara_normal*/
1273                 if( g_stm_area == StmAreaNoNormal )
1274                 {
1275                     ZAPL_RestrictionModeOffs4e3();
1276                 }
1277                 /*ara_split_main*/
1278                 else if( g_stm_area == StmAreaNoSplitMain )
1279                 {
1280                     ZAPL_RestrictionModeOffs0e21();
1281                 }
1282                 /*ara_split_sub*/
1283                 else if( g_stm_area == StmAreaNoSplitSub )
1284                 {
1285                     ZAPL_RestrictionModeOffs0e21();
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             /*ctg_general*/
1294             else if( g_stm_category == StmCtgNoGeneral )
1295             {
1296                 /*ara_normal*/
1297                 if( g_stm_area == StmAreaNoNormal )
1298                 {
1299                     ZAPL_RestrictionModeOffs0e6();
1300                 }
1301                 else
1302                 {
1303                     /*Else and default design have not done.*/
1304                     /*Please confirm the STM and design else and default.*/
1305                 }
1306             }
1307             /*ctg_system*/
1308             else if( g_stm_category == StmCtgNoSystem )
1309             {
1310                 /*ara_normal*/
1311                 if( g_stm_area == StmAreaNoNormal )
1312                 {
1313                     ZAPL_RestrictionModeOffs0e7();
1314                 }
1315                 else
1316                 {
1317                     /*Else and default design have not done.*/
1318                     /*Please confirm the STM and design else and default.*/
1319                 }
1320             }
1321             /*ctg_launcher*/
1322             else if( g_stm_category == StmCtgNoLauncher )
1323             {
1324                 /*ara_normal*/
1325                 if( g_stm_area == StmAreaNoNormal )
1326                 {
1327                     ZAPL_RestrictionModeOffs0e8();
1328                 }
1329                 /*ara_fullscreen*/
1330                 else if( g_stm_area == StmAreaNoFullscreen )
1331                 {
1332                     ZAPL_RestrictionModeOffs0e9();
1333                 }
1334                 else
1335                 {
1336                     /*Else and default design have not done.*/
1337                     /*Please confirm the STM and design else and default.*/
1338                 }
1339             }
1340             /*ctg_homescreen*/
1341             else if( g_stm_category == StmCtgNoHomescreen )
1342             {
1343                 /*ara_fullscreen*/
1344                 if( g_stm_area == StmAreaNoFullscreen )
1345                 {
1346                     ZAPL_RestrictionModeOffs1e10();
1347                 }
1348                 else
1349                 {
1350                     /*Else and default design have not done.*/
1351                     /*Please confirm the STM and design else and default.*/
1352                 }
1353             }
1354             else
1355             {
1356                 /*Else and default design have not done.*/
1357                 /*Please confirm the STM and design else and default.*/
1358             }
1359         }
1360         /*evt_deactivate*/
1361         else if( g_stm_event == StmEvtNoDeactivate )
1362         {
1363             /*ctg_splitable*/
1364             if( g_stm_category == StmCtgNoSplitable )
1365             {
1366                 ZAPL_RestrictionModeOffs1e10();
1367             }
1368             else
1369             {
1370                 /*Else and default design have not done.*/
1371                 /*Please confirm the STM and design else and default.*/
1372             }
1373         }
1374         /*evt_undo*/
1375         else if( g_stm_event == StmEvtNoUndo )
1376         {
1377             /*stt_prv_layer_apps_none*/
1378             if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
1379             {
1380                 ZAPL_RestrictionModeOffs1e10();
1381             }
1382             /*stt_prv_layer_apps_map_nml*/
1383             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
1384             {
1385                 ZAPL_RestrictionModeOffs0e0();
1386             }
1387             /*stt_prv_layer_apps_map_spl*/
1388             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
1389             {
1390                 ZAPL_RestrictionModeOffs0e18();
1391             }
1392             /*stt_prv_layer_apps_map_fll*/
1393             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
1394             {
1395                 ZAPL_RestrictionModeOffs0e2();
1396             }
1397             /*stt_prv_layer_apps_spl_nml*/
1398             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplNml )
1399             {
1400                 ZAPL_RestrictionModeOffs4e3();
1401             }
1402             /*stt_prv_layer_apps_spl_spl*/
1403             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
1404             {
1405                 ZAPL_RestrictionModeOffs0e21();
1406             }
1407             /*stt_prv_layer_apps_gen_nml*/
1408             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
1409             {
1410                 ZAPL_RestrictionModeOffs0e6();
1411             }
1412             /*stt_prv_layer_apps_sys_nml*/
1413             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSysNml )
1414             {
1415                 ZAPL_RestrictionModeOffs0e7();
1416             }
1417             /*stt_prv_layer_apps_lch_nml*/
1418             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchNml )
1419             {
1420                 ZAPL_RestrictionModeOffs0e8();
1421             }
1422             /*stt_prv_layer_apps_lch_fll*/
1423             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchFll )
1424             {
1425                 ZAPL_RestrictionModeOffs0e9();
1426             }
1427             else
1428             {
1429                 /*Else and default design have not done.*/
1430                 /*Please confirm the STM and design else and default.*/
1431             }
1432         }
1433         else
1434         {
1435             /*Else and default design have not done.*/
1436             /*Please confirm the STM and design else and default.*/
1437         }
1438     }
1439     else
1440     {
1441         /*Else and default design have not done.*/
1442         /*Please confirm the STM and design else and default.*/
1443     }
1444 }
1445
1446 /****************************************/
1447 /* Event appraisal function             */
1448 /*   STM : RestrictionModeOff           */
1449 /*   State : splitable_split( No 5 )    */
1450 /****************************************/
1451 static void ZAPL_RestrictionModeOffs5Event( void )
1452 {
1453     /*stt_restriction_mode_off*/
1454     if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOff )
1455     {
1456         /*evt_activate*/
1457         if( g_stm_event == StmEvtNoActivate )
1458         {
1459             /*ctg_map*/
1460             if( g_stm_category == StmCtgNoMap )
1461             {
1462                 /*ara_normal*/
1463                 if( g_stm_area == StmAreaNoNormal )
1464                 {
1465                     ZAPL_RestrictionModeOffs0e18();
1466                 }
1467                 /*ara_split_main*/
1468                 else if( g_stm_area == StmAreaNoSplitMain )
1469                 {
1470                     ZAPL_RestrictionModeOffs0e18();
1471                 }
1472                 /*ara_fullscreen*/
1473                 else if( g_stm_area == StmAreaNoFullscreen )
1474                 {
1475                     ZAPL_RestrictionModeOffs0e2();
1476                 }
1477                 else
1478                 {
1479                     /*Else and default design have not done.*/
1480                     /*Please confirm the STM and design else and default.*/
1481                 }
1482             }
1483             /*ctg_splitable*/
1484             else if( g_stm_category == StmCtgNoSplitable )
1485             {
1486                 /*ara_normal*/
1487                 if( g_stm_area == StmAreaNoNormal )
1488                 {
1489                     ZAPL_RestrictionModeOffs5e3();
1490                 }
1491                 /*ara_split_main*/
1492                 else if( g_stm_area == StmAreaNoSplitMain )
1493                 {
1494                     ZAPL_RestrictionModeOffs5e3();
1495                 }
1496                 /*ara_split_sub*/
1497                 else if( g_stm_area == StmAreaNoSplitSub )
1498                 {
1499                     ZAPL_RestrictionModeOffs5e3();
1500                 }
1501                 else
1502                 {
1503                     /*Else and default design have not done.*/
1504                     /*Please confirm the STM and design else and default.*/
1505                 }
1506             }
1507             /*ctg_general*/
1508             else if( g_stm_category == StmCtgNoGeneral )
1509             {
1510                 /*ara_normal*/
1511                 if( g_stm_area == StmAreaNoNormal )
1512                 {
1513                     ZAPL_RestrictionModeOffs0e6();
1514                 }
1515                 else
1516                 {
1517                     /*Else and default design have not done.*/
1518                     /*Please confirm the STM and design else and default.*/
1519                 }
1520             }
1521             /*ctg_system*/
1522             else if( g_stm_category == StmCtgNoSystem )
1523             {
1524                 /*ara_normal*/
1525                 if( g_stm_area == StmAreaNoNormal )
1526                 {
1527                     ZAPL_RestrictionModeOffs0e7();
1528                 }
1529                 else
1530                 {
1531                     /*Else and default design have not done.*/
1532                     /*Please confirm the STM and design else and default.*/
1533                 }
1534             }
1535             /*ctg_launcher*/
1536             else if( g_stm_category == StmCtgNoLauncher )
1537             {
1538                 /*ara_normal*/
1539                 if( g_stm_area == StmAreaNoNormal )
1540                 {
1541                     ZAPL_RestrictionModeOffs0e8();
1542                 }
1543                 /*ara_fullscreen*/
1544                 else if( g_stm_area == StmAreaNoFullscreen )
1545                 {
1546                     ZAPL_RestrictionModeOffs0e9();
1547                 }
1548                 else
1549                 {
1550                     /*Else and default design have not done.*/
1551                     /*Please confirm the STM and design else and default.*/
1552                 }
1553             }
1554             /*ctg_homescreen*/
1555             else if( g_stm_category == StmCtgNoHomescreen )
1556             {
1557                 /*ara_fullscreen*/
1558                 if( g_stm_area == StmAreaNoFullscreen )
1559                 {
1560                     ZAPL_RestrictionModeOffs1e10();
1561                 }
1562                 else
1563                 {
1564                     /*Else and default design have not done.*/
1565                     /*Please confirm the STM and design else and default.*/
1566                 }
1567             }
1568             else
1569             {
1570                 /*Else and default design have not done.*/
1571                 /*Please confirm the STM and design else and default.*/
1572             }
1573         }
1574         /*evt_deactivate*/
1575         else if( g_stm_event == StmEvtNoDeactivate )
1576         {
1577             /*ctg_splitable*/
1578             if( g_stm_category == StmCtgNoSplitable )
1579             {
1580                 ZAPL_RestrictionModeOffs0e3();
1581             }
1582             else
1583             {
1584                 /*Else and default design have not done.*/
1585                 /*Please confirm the STM and design else and default.*/
1586             }
1587         }
1588         /*evt_undo*/
1589         else if( g_stm_event == StmEvtNoUndo )
1590         {
1591             /*stt_prv_layer_apps_none*/
1592             if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
1593             {
1594                 ZAPL_RestrictionModeOffs1e10();
1595             }
1596             /*stt_prv_layer_apps_map_nml*/
1597             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
1598             {
1599                 ZAPL_RestrictionModeOffs0e0();
1600             }
1601             /*stt_prv_layer_apps_map_spl*/
1602             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
1603             {
1604                 ZAPL_RestrictionModeOffs0e18();
1605             }
1606             /*stt_prv_layer_apps_map_fll*/
1607             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
1608             {
1609                 ZAPL_RestrictionModeOffs0e2();
1610             }
1611             /*stt_prv_layer_apps_spl_nml*/
1612             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplNml )
1613             {
1614                 ZAPL_RestrictionModeOffs0e3();
1615             }
1616             /*stt_prv_layer_apps_spl_spl*/
1617             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
1618             {
1619                 ZAPL_RestrictionModeOffs5e3();
1620             }
1621             /*stt_prv_layer_apps_gen_nml*/
1622             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
1623             {
1624                 ZAPL_RestrictionModeOffs0e6();
1625             }
1626             /*stt_prv_layer_apps_sys_nml*/
1627             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSysNml )
1628             {
1629                 ZAPL_RestrictionModeOffs0e7();
1630             }
1631             /*stt_prv_layer_apps_lch_nml*/
1632             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchNml )
1633             {
1634                 ZAPL_RestrictionModeOffs0e8();
1635             }
1636             /*stt_prv_layer_apps_lch_fll*/
1637             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchFll )
1638             {
1639                 ZAPL_RestrictionModeOffs0e9();
1640             }
1641             else
1642             {
1643                 /*Else and default design have not done.*/
1644                 /*Please confirm the STM and design else and default.*/
1645             }
1646         }
1647         else
1648         {
1649             /*Else and default design have not done.*/
1650             /*Please confirm the STM and design else and default.*/
1651         }
1652     }
1653     else
1654     {
1655         /*Else and default design have not done.*/
1656         /*Please confirm the STM and design else and default.*/
1657     }
1658 }
1659
1660 /****************************************/
1661 /* Event appraisal function             */
1662 /*   STM : RestrictionModeOff           */
1663 /*   State : general( No 6 )            */
1664 /****************************************/
1665 static void ZAPL_RestrictionModeOffs6Event( void )
1666 {
1667     /*stt_restriction_mode_off*/
1668     if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOff )
1669     {
1670         /*evt_activate*/
1671         if( g_stm_event == StmEvtNoActivate )
1672         {
1673             /*ctg_map*/
1674             if( g_stm_category == StmCtgNoMap )
1675             {
1676                 /*ara_normal*/
1677                 if( g_stm_area == StmAreaNoNormal )
1678                 {
1679                     ZAPL_RestrictionModeOffs0e0();
1680                 }
1681                 /*ara_fullscreen*/
1682                 else if( g_stm_area == StmAreaNoFullscreen )
1683                 {
1684                     ZAPL_RestrictionModeOffs0e2();
1685                 }
1686                 else
1687                 {
1688                     /*Else and default design have not done.*/
1689                     /*Please confirm the STM and design else and default.*/
1690                 }
1691             }
1692             /*ctg_splitable*/
1693             else if( g_stm_category == StmCtgNoSplitable )
1694             {
1695                 /*ara_normal*/
1696                 if( g_stm_area == StmAreaNoNormal )
1697                 {
1698                     ZAPL_RestrictionModeOffs0e3();
1699                 }
1700                 else
1701                 {
1702                     /*Else and default design have not done.*/
1703                     /*Please confirm the STM and design else and default.*/
1704                 }
1705             }
1706             /*ctg_general*/
1707             else if( g_stm_category == StmCtgNoGeneral )
1708             {
1709                 /*ara_normal*/
1710                 if( g_stm_area == StmAreaNoNormal )
1711                 {
1712                     ZAPL_RestrictionModeOffs6e6();
1713                 }
1714                 else
1715                 {
1716                     /*Else and default design have not done.*/
1717                     /*Please confirm the STM and design else and default.*/
1718                 }
1719             }
1720             /*ctg_system*/
1721             else if( g_stm_category == StmCtgNoSystem )
1722             {
1723                 /*ara_normal*/
1724                 if( g_stm_area == StmAreaNoNormal )
1725                 {
1726                     ZAPL_RestrictionModeOffs0e7();
1727                 }
1728                 else
1729                 {
1730                     /*Else and default design have not done.*/
1731                     /*Please confirm the STM and design else and default.*/
1732                 }
1733             }
1734             /*ctg_launcher*/
1735             else if( g_stm_category == StmCtgNoLauncher )
1736             {
1737                 /*ara_normal*/
1738                 if( g_stm_area == StmAreaNoNormal )
1739                 {
1740                     ZAPL_RestrictionModeOffs0e8();
1741                 }
1742                 /*ara_fullscreen*/
1743                 else if( g_stm_area == StmAreaNoFullscreen )
1744                 {
1745                     ZAPL_RestrictionModeOffs0e9();
1746                 }
1747                 else
1748                 {
1749                     /*Else and default design have not done.*/
1750                     /*Please confirm the STM and design else and default.*/
1751                 }
1752             }
1753             /*ctg_homescreen*/
1754             else if( g_stm_category == StmCtgNoHomescreen )
1755             {
1756                 /*ara_fullscreen*/
1757                 if( g_stm_area == StmAreaNoFullscreen )
1758                 {
1759                     ZAPL_RestrictionModeOffs1e10();
1760                 }
1761                 else
1762                 {
1763                     /*Else and default design have not done.*/
1764                     /*Please confirm the STM and design else and default.*/
1765                 }
1766             }
1767             else
1768             {
1769                 /*Else and default design have not done.*/
1770                 /*Please confirm the STM and design else and default.*/
1771             }
1772         }
1773         /*evt_deactivate*/
1774         else if( g_stm_event == StmEvtNoDeactivate )
1775         {
1776             /*ctg_general*/
1777             if( g_stm_category == StmCtgNoGeneral )
1778             {
1779                 ZAPL_RestrictionModeOffs1e10();
1780             }
1781             else
1782             {
1783                 /*Else and default design have not done.*/
1784                 /*Please confirm the STM and design else and default.*/
1785             }
1786         }
1787         /*evt_undo*/
1788         else if( g_stm_event == StmEvtNoUndo )
1789         {
1790             /*stt_prv_layer_apps_none*/
1791             if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
1792             {
1793                 ZAPL_RestrictionModeOffs1e10();
1794             }
1795             /*stt_prv_layer_apps_map_nml*/
1796             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
1797             {
1798                 ZAPL_RestrictionModeOffs0e0();
1799             }
1800             /*stt_prv_layer_apps_map_spl*/
1801             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
1802             {
1803                 ZAPL_RestrictionModeOffs0e18();
1804             }
1805             /*stt_prv_layer_apps_map_fll*/
1806             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
1807             {
1808                 ZAPL_RestrictionModeOffs0e2();
1809             }
1810             /*stt_prv_layer_apps_spl_nml*/
1811             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplNml )
1812             {
1813                 ZAPL_RestrictionModeOffs0e3();
1814             }
1815             /*stt_prv_layer_apps_spl_spl*/
1816             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
1817             {
1818                 ZAPL_RestrictionModeOffs0e21();
1819             }
1820             /*stt_prv_layer_apps_gen_nml*/
1821             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
1822             {
1823                 ZAPL_RestrictionModeOffs6e6();
1824             }
1825             /*stt_prv_layer_apps_sys_nml*/
1826             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSysNml )
1827             {
1828                 ZAPL_RestrictionModeOffs0e7();
1829             }
1830             /*stt_prv_layer_apps_lch_nml*/
1831             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchNml )
1832             {
1833                 ZAPL_RestrictionModeOffs0e8();
1834             }
1835             /*stt_prv_layer_apps_lch_fll*/
1836             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchFll )
1837             {
1838                 ZAPL_RestrictionModeOffs0e9();
1839             }
1840             else
1841             {
1842                 /*Else and default design have not done.*/
1843                 /*Please confirm the STM and design else and default.*/
1844             }
1845         }
1846         else
1847         {
1848             /*Else and default design have not done.*/
1849             /*Please confirm the STM and design else and default.*/
1850         }
1851     }
1852     else
1853     {
1854         /*Else and default design have not done.*/
1855         /*Please confirm the STM and design else and default.*/
1856     }
1857 }
1858
1859 /****************************************/
1860 /* Event appraisal function             */
1861 /*   STM : RestrictionModeOff           */
1862 /*   State : system( No 7 )             */
1863 /****************************************/
1864 static void ZAPL_RestrictionModeOffs7Event( void )
1865 {
1866     /*stt_restriction_mode_off*/
1867     if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOff )
1868     {
1869         /*evt_activate*/
1870         if( g_stm_event == StmEvtNoActivate )
1871         {
1872             /*ctg_map*/
1873             if( g_stm_category == StmCtgNoMap )
1874             {
1875                 /*ara_normal*/
1876                 if( g_stm_area == StmAreaNoNormal )
1877                 {
1878                     ZAPL_RestrictionModeOffs0e0();
1879                 }
1880                 /*ara_fullscreen*/
1881                 else if( g_stm_area == StmAreaNoFullscreen )
1882                 {
1883                     ZAPL_RestrictionModeOffs0e2();
1884                 }
1885                 else
1886                 {
1887                     /*Else and default design have not done.*/
1888                     /*Please confirm the STM and design else and default.*/
1889                 }
1890             }
1891             /*ctg_splitable*/
1892             else if( g_stm_category == StmCtgNoSplitable )
1893             {
1894                 /*ara_normal*/
1895                 if( g_stm_area == StmAreaNoNormal )
1896                 {
1897                     ZAPL_RestrictionModeOffs0e3();
1898                 }
1899                 else
1900                 {
1901                     /*Else and default design have not done.*/
1902                     /*Please confirm the STM and design else and default.*/
1903                 }
1904             }
1905             /*ctg_general*/
1906             else if( g_stm_category == StmCtgNoGeneral )
1907             {
1908                 /*ara_normal*/
1909                 if( g_stm_area == StmAreaNoNormal )
1910                 {
1911                     ZAPL_RestrictionModeOffs0e6();
1912                 }
1913                 else
1914                 {
1915                     /*Else and default design have not done.*/
1916                     /*Please confirm the STM and design else and default.*/
1917                 }
1918             }
1919             /*ctg_system*/
1920             else if( g_stm_category == StmCtgNoSystem )
1921             {
1922                 /*ara_normal*/
1923                 if( g_stm_area == StmAreaNoNormal )
1924                 {
1925                     ZAPL_RestrictionModeOffs7e7();
1926                 }
1927                 else
1928                 {
1929                     /*Else and default design have not done.*/
1930                     /*Please confirm the STM and design else and default.*/
1931                 }
1932             }
1933             /*ctg_launcher*/
1934             else if( g_stm_category == StmCtgNoLauncher )
1935             {
1936                 /*ara_normal*/
1937                 if( g_stm_area == StmAreaNoNormal )
1938                 {
1939                     ZAPL_RestrictionModeOffs0e8();
1940                 }
1941                 /*ara_fullscreen*/
1942                 else if( g_stm_area == StmAreaNoFullscreen )
1943                 {
1944                     ZAPL_RestrictionModeOffs0e9();
1945                 }
1946                 else
1947                 {
1948                     /*Else and default design have not done.*/
1949                     /*Please confirm the STM and design else and default.*/
1950                 }
1951             }
1952             /*ctg_homescreen*/
1953             else if( g_stm_category == StmCtgNoHomescreen )
1954             {
1955                 /*ara_fullscreen*/
1956                 if( g_stm_area == StmAreaNoFullscreen )
1957                 {
1958                     ZAPL_RestrictionModeOffs1e10();
1959                 }
1960                 else
1961                 {
1962                     /*Else and default design have not done.*/
1963                     /*Please confirm the STM and design else and default.*/
1964                 }
1965             }
1966             else
1967             {
1968                 /*Else and default design have not done.*/
1969                 /*Please confirm the STM and design else and default.*/
1970             }
1971         }
1972         /*evt_deactivate*/
1973         else if( g_stm_event == StmEvtNoDeactivate )
1974         {
1975             /*ctg_system*/
1976             if( g_stm_category == StmCtgNoSystem )
1977             {
1978                 ZAPL_RestrictionModeOffs1e10();
1979             }
1980             else
1981             {
1982                 /*Else and default design have not done.*/
1983                 /*Please confirm the STM and design else and default.*/
1984             }
1985         }
1986         /*evt_undo*/
1987         else if( g_stm_event == StmEvtNoUndo )
1988         {
1989             /*stt_prv_layer_apps_none*/
1990             if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
1991             {
1992                 ZAPL_RestrictionModeOffs1e10();
1993             }
1994             /*stt_prv_layer_apps_map_nml*/
1995             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
1996             {
1997                 ZAPL_RestrictionModeOffs0e0();
1998             }
1999             /*stt_prv_layer_apps_map_spl*/
2000             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
2001             {
2002                 ZAPL_RestrictionModeOffs0e18();
2003             }
2004             /*stt_prv_layer_apps_map_fll*/
2005             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
2006             {
2007                 ZAPL_RestrictionModeOffs0e2();
2008             }
2009             /*stt_prv_layer_apps_spl_nml*/
2010             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplNml )
2011             {
2012                 ZAPL_RestrictionModeOffs0e3();
2013             }
2014             /*stt_prv_layer_apps_spl_spl*/
2015             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
2016             {
2017                 ZAPL_RestrictionModeOffs0e21();
2018             }
2019             /*stt_prv_layer_apps_gen_nml*/
2020             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
2021             {
2022                 ZAPL_RestrictionModeOffs0e6();
2023             }
2024             /*stt_prv_layer_apps_sys_nml*/
2025             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSysNml )
2026             {
2027                 ZAPL_RestrictionModeOffs7e7();
2028             }
2029             /*stt_prv_layer_apps_lch_nml*/
2030             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchNml )
2031             {
2032                 ZAPL_RestrictionModeOffs0e8();
2033             }
2034             /*stt_prv_layer_apps_lch_fll*/
2035             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchFll )
2036             {
2037                 ZAPL_RestrictionModeOffs0e9();
2038             }
2039             else
2040             {
2041                 /*Else and default design have not done.*/
2042                 /*Please confirm the STM and design else and default.*/
2043             }
2044         }
2045         else
2046         {
2047             /*Else and default design have not done.*/
2048             /*Please confirm the STM and design else and default.*/
2049         }
2050     }
2051     else
2052     {
2053         /*Else and default design have not done.*/
2054         /*Please confirm the STM and design else and default.*/
2055     }
2056 }
2057
2058 /****************************************/
2059 /* Event appraisal function             */
2060 /*   STM : RestrictionModeOff           */
2061 /*   State : launcher_normal( No 8 )    */
2062 /****************************************/
2063 static void ZAPL_RestrictionModeOffs8Event( void )
2064 {
2065     /*stt_restriction_mode_off*/
2066     if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOff )
2067     {
2068         /*evt_activate*/
2069         if( g_stm_event == StmEvtNoActivate )
2070         {
2071             /*ctg_map*/
2072             if( g_stm_category == StmCtgNoMap )
2073             {
2074                 /*ara_normal*/
2075                 if( g_stm_area == StmAreaNoNormal )
2076                 {
2077                     ZAPL_RestrictionModeOffs0e0();
2078                 }
2079                 /*ara_fullscreen*/
2080                 else if( g_stm_area == StmAreaNoFullscreen )
2081                 {
2082                     ZAPL_RestrictionModeOffs0e2();
2083                 }
2084                 else
2085                 {
2086                     /*Else and default design have not done.*/
2087                     /*Please confirm the STM and design else and default.*/
2088                 }
2089             }
2090             /*ctg_splitable*/
2091             else if( g_stm_category == StmCtgNoSplitable )
2092             {
2093                 /*ara_normal*/
2094                 if( g_stm_area == StmAreaNoNormal )
2095                 {
2096                     ZAPL_RestrictionModeOffs0e3();
2097                 }
2098                 else
2099                 {
2100                     /*Else and default design have not done.*/
2101                     /*Please confirm the STM and design else and default.*/
2102                 }
2103             }
2104             /*ctg_general*/
2105             else if( g_stm_category == StmCtgNoGeneral )
2106             {
2107                 /*ara_normal*/
2108                 if( g_stm_area == StmAreaNoNormal )
2109                 {
2110                     ZAPL_RestrictionModeOffs0e6();
2111                 }
2112                 else
2113                 {
2114                     /*Else and default design have not done.*/
2115                     /*Please confirm the STM and design else and default.*/
2116                 }
2117             }
2118             /*ctg_system*/
2119             else if( g_stm_category == StmCtgNoSystem )
2120             {
2121                 /*ara_normal*/
2122                 if( g_stm_area == StmAreaNoNormal )
2123                 {
2124                     ZAPL_RestrictionModeOffs0e7();
2125                 }
2126                 else
2127                 {
2128                     /*Else and default design have not done.*/
2129                     /*Please confirm the STM and design else and default.*/
2130                 }
2131             }
2132             /*ctg_launcher*/
2133             else if( g_stm_category == StmCtgNoLauncher )
2134             {
2135                 /*ara_normal*/
2136                 if( g_stm_area == StmAreaNoNormal )
2137                 {
2138                     ZAPL_RestrictionModeOffs8e8();
2139                 }
2140                 /*ara_fullscreen*/
2141                 else if( g_stm_area == StmAreaNoFullscreen )
2142                 {
2143                     ZAPL_RestrictionModeOffs0e9();
2144                 }
2145                 else
2146                 {
2147                     /*Else and default design have not done.*/
2148                     /*Please confirm the STM and design else and default.*/
2149                 }
2150             }
2151             /*ctg_homescreen*/
2152             else if( g_stm_category == StmCtgNoHomescreen )
2153             {
2154                 /*ara_fullscreen*/
2155                 if( g_stm_area == StmAreaNoFullscreen )
2156                 {
2157                     ZAPL_RestrictionModeOffs1e10();
2158                 }
2159                 else
2160                 {
2161                     /*Else and default design have not done.*/
2162                     /*Please confirm the STM and design else and default.*/
2163                 }
2164             }
2165             else
2166             {
2167                 /*Else and default design have not done.*/
2168                 /*Please confirm the STM and design else and default.*/
2169             }
2170         }
2171         /*evt_deactivate*/
2172         else if( g_stm_event == StmEvtNoDeactivate )
2173         {
2174             /*ctg_launcher*/
2175             if( g_stm_category == StmCtgNoLauncher )
2176             {
2177                 ZAPL_RestrictionModeOffs1e10();
2178             }
2179             else
2180             {
2181                 /*Else and default design have not done.*/
2182                 /*Please confirm the STM and design else and default.*/
2183             }
2184         }
2185         /*evt_undo*/
2186         else if( g_stm_event == StmEvtNoUndo )
2187         {
2188             /*stt_prv_layer_apps_none*/
2189             if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
2190             {
2191                 ZAPL_RestrictionModeOffs1e10();
2192             }
2193             /*stt_prv_layer_apps_map_nml*/
2194             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
2195             {
2196                 ZAPL_RestrictionModeOffs0e0();
2197             }
2198             /*stt_prv_layer_apps_map_spl*/
2199             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
2200             {
2201                 ZAPL_RestrictionModeOffs0e18();
2202             }
2203             /*stt_prv_layer_apps_map_fll*/
2204             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
2205             {
2206                 ZAPL_RestrictionModeOffs0e2();
2207             }
2208             /*stt_prv_layer_apps_spl_nml*/
2209             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplNml )
2210             {
2211                 ZAPL_RestrictionModeOffs0e3();
2212             }
2213             /*stt_prv_layer_apps_spl_spl*/
2214             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
2215             {
2216                 ZAPL_RestrictionModeOffs0e21();
2217             }
2218             /*stt_prv_layer_apps_gen_nml*/
2219             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
2220             {
2221                 ZAPL_RestrictionModeOffs0e6();
2222             }
2223             /*stt_prv_layer_apps_sys_nml*/
2224             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSysNml )
2225             {
2226                 ZAPL_RestrictionModeOffs0e7();
2227             }
2228             /*stt_prv_layer_apps_lch_nml*/
2229             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchNml )
2230             {
2231                 ZAPL_RestrictionModeOffs8e8();
2232             }
2233             /*stt_prv_layer_apps_lch_fll*/
2234             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchFll )
2235             {
2236                 ZAPL_RestrictionModeOffs0e9();
2237             }
2238             else
2239             {
2240                 /*Else and default design have not done.*/
2241                 /*Please confirm the STM and design else and default.*/
2242             }
2243         }
2244         else
2245         {
2246             /*Else and default design have not done.*/
2247             /*Please confirm the STM and design else and default.*/
2248         }
2249     }
2250     else
2251     {
2252         /*Else and default design have not done.*/
2253         /*Please confirm the STM and design else and default.*/
2254     }
2255 }
2256
2257 /****************************************/
2258 /* Event appraisal function             */
2259 /*   STM : RestrictionModeOff           */
2260 /*   State : launcher_fullscreen( No 9 )*/
2261 /****************************************/
2262 static void ZAPL_RestrictionModeOffs9Event( void )
2263 {
2264     /*stt_restriction_mode_off*/
2265     if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOff )
2266     {
2267         /*evt_activate*/
2268         if( g_stm_event == StmEvtNoActivate )
2269         {
2270             /*ctg_map*/
2271             if( g_stm_category == StmCtgNoMap )
2272             {
2273                 /*ara_normal*/
2274                 if( g_stm_area == StmAreaNoNormal )
2275                 {
2276                     ZAPL_RestrictionModeOffs0e0();
2277                 }
2278                 /*ara_fullscreen*/
2279                 else if( g_stm_area == StmAreaNoFullscreen )
2280                 {
2281                     ZAPL_RestrictionModeOffs0e2();
2282                 }
2283                 else
2284                 {
2285                     /*Else and default design have not done.*/
2286                     /*Please confirm the STM and design else and default.*/
2287                 }
2288             }
2289             /*ctg_splitable*/
2290             else if( g_stm_category == StmCtgNoSplitable )
2291             {
2292                 /*ara_normal*/
2293                 if( g_stm_area == StmAreaNoNormal )
2294                 {
2295                     ZAPL_RestrictionModeOffs0e3();
2296                 }
2297                 else
2298                 {
2299                     /*Else and default design have not done.*/
2300                     /*Please confirm the STM and design else and default.*/
2301                 }
2302             }
2303             /*ctg_general*/
2304             else if( g_stm_category == StmCtgNoGeneral )
2305             {
2306                 /*ara_normal*/
2307                 if( g_stm_area == StmAreaNoNormal )
2308                 {
2309                     ZAPL_RestrictionModeOffs0e6();
2310                 }
2311                 else
2312                 {
2313                     /*Else and default design have not done.*/
2314                     /*Please confirm the STM and design else and default.*/
2315                 }
2316             }
2317             /*ctg_system*/
2318             else if( g_stm_category == StmCtgNoSystem )
2319             {
2320                 /*ara_normal*/
2321                 if( g_stm_area == StmAreaNoNormal )
2322                 {
2323                     ZAPL_RestrictionModeOffs0e7();
2324                 }
2325                 else
2326                 {
2327                     /*Else and default design have not done.*/
2328                     /*Please confirm the STM and design else and default.*/
2329                 }
2330             }
2331             /*ctg_launcher*/
2332             else if( g_stm_category == StmCtgNoLauncher )
2333             {
2334                 /*ara_normal*/
2335                 if( g_stm_area == StmAreaNoNormal )
2336                 {
2337                     ZAPL_RestrictionModeOffs0e8();
2338                 }
2339                 /*ara_fullscreen*/
2340                 else if( g_stm_area == StmAreaNoFullscreen )
2341                 {
2342                     ZAPL_RestrictionModeOffs9e9();
2343                 }
2344                 else
2345                 {
2346                     /*Else and default design have not done.*/
2347                     /*Please confirm the STM and design else and default.*/
2348                 }
2349             }
2350             /*ctg_homescreen*/
2351             else if( g_stm_category == StmCtgNoHomescreen )
2352             {
2353                 /*ara_fullscreen*/
2354                 if( g_stm_area == StmAreaNoFullscreen )
2355                 {
2356                     ZAPL_RestrictionModeOffs1e10();
2357                 }
2358                 else
2359                 {
2360                     /*Else and default design have not done.*/
2361                     /*Please confirm the STM and design else and default.*/
2362                 }
2363             }
2364             else
2365             {
2366                 /*Else and default design have not done.*/
2367                 /*Please confirm the STM and design else and default.*/
2368             }
2369         }
2370         /*evt_deactivate*/
2371         else if( g_stm_event == StmEvtNoDeactivate )
2372         {
2373             /*ctg_launcher*/
2374             if( g_stm_category == StmCtgNoLauncher )
2375             {
2376                 ZAPL_RestrictionModeOffs1e10();
2377             }
2378             else
2379             {
2380                 /*Else and default design have not done.*/
2381                 /*Please confirm the STM and design else and default.*/
2382             }
2383         }
2384         /*evt_undo*/
2385         else if( g_stm_event == StmEvtNoUndo )
2386         {
2387             /*stt_prv_layer_apps_none*/
2388             if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
2389             {
2390                 ZAPL_RestrictionModeOffs1e10();
2391             }
2392             /*stt_prv_layer_apps_map_nml*/
2393             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
2394             {
2395                 ZAPL_RestrictionModeOffs0e0();
2396             }
2397             /*stt_prv_layer_apps_map_spl*/
2398             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
2399             {
2400                 ZAPL_RestrictionModeOffs0e18();
2401             }
2402             /*stt_prv_layer_apps_map_fll*/
2403             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
2404             {
2405                 ZAPL_RestrictionModeOffs0e2();
2406             }
2407             /*stt_prv_layer_apps_spl_nml*/
2408             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplNml )
2409             {
2410                 ZAPL_RestrictionModeOffs0e3();
2411             }
2412             /*stt_prv_layer_apps_spl_spl*/
2413             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
2414             {
2415                 ZAPL_RestrictionModeOffs0e21();
2416             }
2417             /*stt_prv_layer_apps_gen_nml*/
2418             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
2419             {
2420                 ZAPL_RestrictionModeOffs0e6();
2421             }
2422             /*stt_prv_layer_apps_sys_nml*/
2423             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSysNml )
2424             {
2425                 ZAPL_RestrictionModeOffs0e7();
2426             }
2427             /*stt_prv_layer_apps_lch_nml*/
2428             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchNml )
2429             {
2430                 ZAPL_RestrictionModeOffs0e8();
2431             }
2432             /*stt_prv_layer_apps_lch_fll*/
2433             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchFll )
2434             {
2435                 ZAPL_RestrictionModeOffs9e9();
2436             }
2437             else
2438             {
2439                 /*Else and default design have not done.*/
2440                 /*Please confirm the STM and design else and default.*/
2441             }
2442         }
2443         else
2444         {
2445             /*Else and default design have not done.*/
2446             /*Please confirm the STM and design else and default.*/
2447         }
2448     }
2449     else
2450     {
2451         /*Else and default design have not done.*/
2452         /*Please confirm the STM and design else and default.*/
2453     }
2454 }
2455
2456 /****************************************/
2457 /* Event appraisal function             */
2458 /*   STM : AppsLayer                    */
2459 /*   State : restriction_mode_on( No 1 )*/
2460 /****************************************/
2461 static void ZAPL_AppsLayers1Event( void )
2462 {
2463     /*stt_restriction_mode_off*/
2464     if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOff )
2465     {
2466         stm_apl_event_restriction_mode_off();
2467         ZAPL_AppsLayers1e0();
2468     }
2469     else
2470     {
2471         /*Else and default design have not done.*/
2472         /*Please confirm the STM and design else and default.*/
2473     }
2474 }
2475
2476 /****************************************/
2477 /* Event appraisal function             */
2478 /*   STM : RestrictionModeOn            */
2479 /*   State : map( No 0 )                */
2480 /****************************************/
2481 static void ZAPL_RestrictionModeOns0Event( void )
2482 {
2483     /*stt_restriction_mode_on*/
2484     if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOn )
2485     {
2486         /*evt_activate*/
2487         if( g_stm_event == StmEvtNoActivate )
2488         {
2489             /*ctg_map*/
2490             if( g_stm_category == StmCtgNoMap )
2491             {
2492                 /*ara_fullscreen*/
2493                 if( g_stm_area == StmAreaNoFullscreen )
2494                 {
2495                     ZAPL_RestrictionModeOns0e1();
2496                 }
2497                 else
2498                 {
2499                     /*Else and default design have not done.*/
2500                     /*Please confirm the STM and design else and default.*/
2501                 }
2502             }
2503             else
2504             {
2505                 /*Else and default design have not done.*/
2506                 /*Please confirm the STM and design else and default.*/
2507             }
2508         }
2509         /*evt_undo*/
2510         else if( g_stm_event == StmEvtNoUndo )
2511         {
2512             /*stt_prv_layer_apps_map_nml*/
2513             if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
2514             {
2515                 ZAPL_RestrictionModeOns0e2();
2516             }
2517             /*stt_prv_layer_apps_map_fll*/
2518             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
2519             {
2520                 ZAPL_RestrictionModeOns0e1();
2521             }
2522             else
2523             {
2524                 /*Else and default design have not done.*/
2525                 /*Please confirm the STM and design else and default.*/
2526             }
2527         }
2528         else
2529         {
2530             /*Else and default design have not done.*/
2531             /*Please confirm the STM and design else and default.*/
2532         }
2533     }
2534     else
2535     {
2536         /*Else and default design have not done.*/
2537         /*Please confirm the STM and design else and default.*/
2538     }
2539 }
2540
2541 /****************************************/
2542 /* Event appraisal function             */
2543 /*   STM : RestrictionModeOn            */
2544 /*   State : map_fullscreen( No 1 )     */
2545 /****************************************/
2546 static void ZAPL_RestrictionModeOns1Event( void )
2547 {
2548     /*stt_restriction_mode_on*/
2549     if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOn )
2550     {
2551         /*evt_activate*/
2552         if( g_stm_event == StmEvtNoActivate )
2553         {
2554             /*ctg_map*/
2555             if( g_stm_category == StmCtgNoMap )
2556             {
2557                 /*ara_normal*/
2558                 if( g_stm_area == StmAreaNoNormal )
2559                 {
2560                     ZAPL_RestrictionModeOns1e0();
2561                 }
2562                 else
2563                 {
2564                     /*Else and default design have not done.*/
2565                     /*Please confirm the STM and design else and default.*/
2566                 }
2567             }
2568             else
2569             {
2570                 /*Else and default design have not done.*/
2571                 /*Please confirm the STM and design else and default.*/
2572             }
2573         }
2574         /*evt_undo*/
2575         else if( g_stm_event == StmEvtNoUndo )
2576         {
2577             /*stt_prv_layer_apps_map_nml*/
2578             if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
2579             {
2580                 ZAPL_RestrictionModeOns1e0();
2581             }
2582             /*stt_prv_layer_apps_map_fll*/
2583             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
2584             {
2585                 ZAPL_RestrictionModeOns1e3();
2586             }
2587             else
2588             {
2589                 /*Else and default design have not done.*/
2590                 /*Please confirm the STM and design else and default.*/
2591             }
2592         }
2593         else
2594         {
2595             /*Else and default design have not done.*/
2596             /*Please confirm the STM and design else and default.*/
2597         }
2598     }
2599     else
2600     {
2601         /*Else and default design have not done.*/
2602         /*Please confirm the STM and design else and default.*/
2603     }
2604 }
2605
2606 /****************************************/
2607 /* Event call function                  */
2608 /*   STM : AppsLayer                    */
2609 /****************************************/
2610 void stm_apl_event_call( void )
2611 {
2612     stm_apl_start_stm();
2613     switch( ZAPL_AppsLayerState[ZAPL_APPSLAYER] )
2614     {
2615     case ZAPL_APPSLAYERS0:
2616         switch( ZAPL_AppsLayerState[ZAPL_APPSLAYERS0F] )
2617         {
2618         case ZAPL_RESTRICTIONMODEOFFS0:
2619             ZAPL_RestrictionModeOffs0Event();
2620             break;
2621         case ZAPL_RESTRICTIONMODEOFFS1:
2622             ZAPL_RestrictionModeOffs1Event();
2623             break;
2624         case ZAPL_RESTRICTIONMODEOFFS2:
2625             ZAPL_RestrictionModeOffs2Event();
2626             break;
2627         case ZAPL_RESTRICTIONMODEOFFS3:
2628             ZAPL_RestrictionModeOffs3Event();
2629             break;
2630         case ZAPL_RESTRICTIONMODEOFFS4:
2631             ZAPL_RestrictionModeOffs4Event();
2632             break;
2633         case ZAPL_RESTRICTIONMODEOFFS5:
2634             ZAPL_RestrictionModeOffs5Event();
2635             break;
2636         case ZAPL_RESTRICTIONMODEOFFS6:
2637             ZAPL_RestrictionModeOffs6Event();
2638             break;
2639         case ZAPL_RESTRICTIONMODEOFFS7:
2640             ZAPL_RestrictionModeOffs7Event();
2641             break;
2642         case ZAPL_RESTRICTIONMODEOFFS8:
2643             ZAPL_RestrictionModeOffs8Event();
2644             break;
2645         case ZAPL_RESTRICTIONMODEOFFS9:
2646             ZAPL_RestrictionModeOffs9Event();
2647             break;
2648         default:
2649             /*Not accessible to this else (default).*/
2650             break;
2651         }
2652         ZAPL_AppsLayers0Event();
2653         break;
2654     case ZAPL_APPSLAYERS1:
2655         switch( ZAPL_AppsLayerState[ZAPL_APPSLAYERS1F] )
2656         {
2657         case ZAPL_RESTRICTIONMODEONS0:
2658             ZAPL_RestrictionModeOns0Event();
2659             break;
2660         case ZAPL_RESTRICTIONMODEONS1:
2661             ZAPL_RestrictionModeOns1Event();
2662             break;
2663         default:
2664             /*Not accessible to this else (default).*/
2665             break;
2666         }
2667         ZAPL_AppsLayers1Event();
2668         break;
2669     default:
2670         /*Not accessible to this else (default).*/
2671         break;
2672     }
2673 }
2674
2675 /****************************************/
2676 /* Initial function                     */
2677 /*   STM : AppsLayer                    */
2678 /****************************************/
2679 void stm_apl_initialize( void )
2680 {
2681     ZAPL_AppsLayerState[ZAPL_APPSLAYER] = ( uint8_t )ZAPL_APPSLAYERS0;
2682     ZAPL_AppsLayerState[ZAPL_APPSLAYERS0F] = ( uint8_t )ZAPL_RESTRICTIONMODEOFFS0;
2683     ZAPL_AppsLayerState[ZAPL_APPSLAYERS1F] = ( uint8_t )ZAPL_RESTRICTIONMODEONS0;
2684     ZAPL_AppsLayers0StateEntry();
2685 }
2686
2687 /****************************************/
2688 /* Terminate function                   */
2689 /*   STM : AppsLayer                    */
2690 /****************************************/
2691 void ZAPL_AppsLayerTerminate( void )
2692 {
2693     ZAPL_AppsLayerState[ZAPL_APPSLAYER] = ( uint8_t )ZAPL_APPSLAYERTERMINATE;
2694 }
2695