1 /************************************************************/
3 /* AppsLayer State transition model source file */
4 /* ZIPC Designer Version 1.2.0 */
5 /************************************************************/
6 #include "../ZST_include.h"
8 /* State management variable */
9 static uint8_t ZAPL_AppsLayerState[ZAPL_APPSLAYERSTATENOMAX];
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_RestrictionModeOffs0e13( void );
21 static void ZAPL_RestrictionModeOffs0e15( void );
22 static void ZAPL_RestrictionModeOffs0e18( void );
23 static void ZAPL_RestrictionModeOffs1e8( void );
24 static void ZAPL_RestrictionModeOffs1e14( void );
25 static void ZAPL_RestrictionModeOffs2e3( void );
26 static void ZAPL_RestrictionModeOffs3e16( void );
27 static void ZAPL_RestrictionModeOffs4e17( void );
28 static void ZAPL_RestrictionModeOffs5e3( void );
29 static void ZAPL_RestrictionModeOffs6e6( void );
30 static void ZAPL_RestrictionModeOffs7e7( void );
31 static void ZAPL_RestrictionModeOns0e1( void );
32 static void ZAPL_RestrictionModeOns0e2( void );
33 static void ZAPL_RestrictionModeOns1e0( void );
34 static void ZAPL_RestrictionModeOns1e3( void );
35 static void ZAPL_AppsLayers0Event( void );
36 static void ZAPL_RestrictionModeOffs0Event( void );
37 static void ZAPL_RestrictionModeOffs1Event( void );
38 static void ZAPL_RestrictionModeOffs2Event( void );
39 static void ZAPL_RestrictionModeOffs3Event( void );
40 static void ZAPL_RestrictionModeOffs4Event( void );
41 static void ZAPL_RestrictionModeOffs5Event( void );
42 static void ZAPL_RestrictionModeOffs6Event( void );
43 static void ZAPL_RestrictionModeOffs7Event( void );
44 static void ZAPL_AppsLayers1Event( void );
45 static void ZAPL_RestrictionModeOns0Event( void );
46 static void ZAPL_RestrictionModeOns1Event( void );
48 /****************************************/
49 /* State start activity function */
51 /* State : restriction_mode_off( No 0 ) */
52 /****************************************/
53 static void ZAPL_AppsLayers0StateEntry( void )
55 switch( ZAPL_AppsLayerState[ZAPL_APPSLAYERS0F] )
57 case ZAPL_RESTRICTIONMODEOFFS0:
58 stm_apl_start_activity_none();
60 case ZAPL_RESTRICTIONMODEOFFS1:
61 stm_apl_start_activity_map();
63 case ZAPL_RESTRICTIONMODEOFFS2:
64 stm_apl_start_activity_map_split();
66 case ZAPL_RESTRICTIONMODEOFFS3:
67 stm_apl_start_activity_map_fullscreen();
69 case ZAPL_RESTRICTIONMODEOFFS4:
70 stm_apl_start_activity_splitable_normal();
72 case ZAPL_RESTRICTIONMODEOFFS5:
73 stm_apl_start_activity_splitable_split();
75 case ZAPL_RESTRICTIONMODEOFFS6:
76 stm_apl_start_activity_general();
78 case ZAPL_RESTRICTIONMODEOFFS7:
79 stm_apl_start_activity_system();
82 /*Not accessible to this else (default).*/
87 /****************************************/
88 /* State start activity function */
90 /* State : restriction_mode_on( No 1 )*/
91 /****************************************/
92 static void ZAPL_AppsLayers1StateEntry( void )
94 switch( ZAPL_AppsLayerState[ZAPL_APPSLAYERS1F] )
96 case ZAPL_RESTRICTIONMODEONS0:
97 stm_apl_start_activity_map();
99 case ZAPL_RESTRICTIONMODEONS1:
100 stm_apl_start_activity_map_fullscreen();
103 /*Not accessible to this else (default).*/
108 /****************************************/
109 /* Action function */
110 /* STM : AppsLayer */
111 /* State : restriction_mode_off( No 0 ) */
112 /* Event : stt_prv_layer_apps_not_sys_nml( No 1 ) */
113 /****************************************/
114 static void ZAPL_AppsLayers0e1( void )
116 ZAPL_AppsLayerState[ZAPL_APPSLAYER] = ( uint8_t )ZAPL_APPSLAYERS1;
117 ZAPL_AppsLayerState[ZAPL_APPSLAYERS1F] = ( uint8_t )ZAPL_RESTRICTIONMODEONS0;
118 ZAPL_AppsLayers1StateEntry();
121 /****************************************/
122 /* Action function */
123 /* STM : AppsLayer */
124 /* State : restriction_mode_on( No 1 )*/
125 /* Event : stt_restriction_mode_off( No 0 ) */
126 /****************************************/
127 static void ZAPL_AppsLayers1e0( void )
129 ZAPL_AppsLayerState[ZAPL_APPSLAYER] = ( uint8_t )ZAPL_APPSLAYERS0;
130 ZAPL_AppsLayers0StateEntry();
133 /****************************************/
134 /* Action function */
135 /* STM : RestrictionModeOff */
136 /* State : none( No 0 ) */
137 /* Event : ara_normal( No 0 ) */
138 /****************************************/
139 static void ZAPL_RestrictionModeOffs0e0( void )
141 ZAPL_AppsLayerState[ZAPL_APPSLAYERS0F] = ( uint8_t )ZAPL_RESTRICTIONMODEOFFS1;
142 stm_apl_start_activity_map();
145 /****************************************/
146 /* Action function */
147 /* STM : RestrictionModeOff */
148 /* State : none( No 0 ) */
149 /* Event : ara_fullscreen( No 2 ) */
150 /****************************************/
151 static void ZAPL_RestrictionModeOffs0e2( void )
153 ZAPL_AppsLayerState[ZAPL_APPSLAYERS0F] = ( uint8_t )ZAPL_RESTRICTIONMODEOFFS3;
154 stm_apl_start_activity_map_fullscreen();
157 /****************************************/
158 /* Action function */
159 /* STM : RestrictionModeOff */
160 /* State : none( No 0 ) */
161 /* Event : ara_normal( No 3 ) */
162 /****************************************/
163 static void ZAPL_RestrictionModeOffs0e3( void )
165 ZAPL_AppsLayerState[ZAPL_APPSLAYERS0F] = ( uint8_t )ZAPL_RESTRICTIONMODEOFFS4;
166 stm_apl_start_activity_splitable_normal();
169 /****************************************/
170 /* Action function */
171 /* STM : RestrictionModeOff */
172 /* State : none( No 0 ) */
173 /* Event : ara_normal( No 6 ) */
174 /****************************************/
175 static void ZAPL_RestrictionModeOffs0e6( void )
177 ZAPL_AppsLayerState[ZAPL_APPSLAYERS0F] = ( uint8_t )ZAPL_RESTRICTIONMODEOFFS6;
178 stm_apl_start_activity_general();
181 /****************************************/
182 /* Action function */
183 /* STM : RestrictionModeOff */
184 /* State : none( No 0 ) */
185 /* Event : ara_normal( No 7 ) */
186 /****************************************/
187 static void ZAPL_RestrictionModeOffs0e7( void )
189 ZAPL_AppsLayerState[ZAPL_APPSLAYERS0F] = ( uint8_t )ZAPL_RESTRICTIONMODEOFFS7;
190 stm_apl_start_activity_system();
193 /****************************************/
194 /* Action function */
195 /* STM : RestrictionModeOff */
196 /* State : none( No 0 ) */
197 /* Event : stt_prv_layer_apps_none( No 13 ) */
198 /****************************************/
199 static void ZAPL_RestrictionModeOffs0e13( void )
201 stm_apl_start_activity_none();
204 /****************************************/
205 /* Action function */
206 /* STM : RestrictionModeOff */
207 /* State : none( No 0 ) */
208 /* Event : stt_prv_layer_apps_map_spl( No 15 ) */
209 /****************************************/
210 static void ZAPL_RestrictionModeOffs0e15( void )
212 ZAPL_AppsLayerState[ZAPL_APPSLAYERS0F] = ( uint8_t )ZAPL_RESTRICTIONMODEOFFS2;
213 stm_apl_start_activity_map_split();
216 /****************************************/
217 /* Action function */
218 /* STM : RestrictionModeOff */
219 /* State : none( No 0 ) */
220 /* Event : stt_prv_layer_apps_spl_spl( No 18 ) */
221 /****************************************/
222 static void ZAPL_RestrictionModeOffs0e18( void )
224 ZAPL_AppsLayerState[ZAPL_APPSLAYERS0F] = ( uint8_t )ZAPL_RESTRICTIONMODEOFFS5;
225 stm_apl_start_activity_splitable_split();
228 /****************************************/
229 /* Action function */
230 /* STM : RestrictionModeOff */
231 /* State : map( No 1 ) */
232 /* Event : ara_fullscreen( No 8 ) */
233 /****************************************/
234 static void ZAPL_RestrictionModeOffs1e8( void )
236 ZAPL_AppsLayerState[ZAPL_APPSLAYERS0F] = ( uint8_t )ZAPL_RESTRICTIONMODEOFFS0;
237 stm_apl_start_activity_none();
240 /****************************************/
241 /* Action function */
242 /* STM : RestrictionModeOff */
243 /* State : map( No 1 ) */
244 /* Event : stt_prv_layer_apps_map_nml( No 14 ) */
245 /****************************************/
246 static void ZAPL_RestrictionModeOffs1e14( void )
248 stm_apl_start_activity_map();
251 /****************************************/
252 /* Action function */
253 /* STM : RestrictionModeOff */
254 /* State : map_split( No 2 ) */
255 /* Event : ara_normal( No 3 ) */
256 /****************************************/
257 static void ZAPL_RestrictionModeOffs2e3( void )
259 stm_apl_start_activity_map_split();
262 /****************************************/
263 /* Action function */
264 /* STM : RestrictionModeOff */
265 /* State : map_fullscreen( No 3 ) */
266 /* Event : stt_prv_layer_apps_map_fll( No 16 ) */
267 /****************************************/
268 static void ZAPL_RestrictionModeOffs3e16( void )
270 stm_apl_start_activity_map_fullscreen();
273 /****************************************/
274 /* Action function */
275 /* STM : RestrictionModeOff */
276 /* State : splitable_normal( No 4 ) */
277 /* Event : stt_prv_layer_apps_spl_nml( No 17 ) */
278 /****************************************/
279 static void ZAPL_RestrictionModeOffs4e17( void )
281 stm_apl_start_activity_splitable_normal();
284 /****************************************/
285 /* Action function */
286 /* STM : RestrictionModeOff */
287 /* State : splitable_split( No 5 ) */
288 /* Event : ara_normal( No 3 ) */
289 /****************************************/
290 static void ZAPL_RestrictionModeOffs5e3( void )
292 stm_apl_start_activity_splitable_split();
295 /****************************************/
296 /* Action function */
297 /* STM : RestrictionModeOff */
298 /* State : general( No 6 ) */
299 /* Event : ara_normal( No 6 ) */
300 /****************************************/
301 static void ZAPL_RestrictionModeOffs6e6( void )
303 stm_apl_start_activity_general();
306 /****************************************/
307 /* Action function */
308 /* STM : RestrictionModeOff */
309 /* State : system( No 7 ) */
310 /* Event : ara_normal( No 7 ) */
311 /****************************************/
312 static void ZAPL_RestrictionModeOffs7e7( void )
314 stm_apl_start_activity_system();
317 /****************************************/
318 /* Action function */
319 /* STM : RestrictionModeOn */
320 /* State : map( No 0 ) */
321 /* Event : ara_fullscreen( No 1 ) */
322 /****************************************/
323 static void ZAPL_RestrictionModeOns0e1( void )
325 ZAPL_AppsLayerState[ZAPL_APPSLAYERS1F] = ( uint8_t )ZAPL_RESTRICTIONMODEONS1;
326 stm_apl_start_activity_map_fullscreen();
329 /****************************************/
330 /* Action function */
331 /* STM : RestrictionModeOn */
332 /* State : map( No 0 ) */
333 /* Event : stt_prv_layer_apps_map_nml( No 2 ) */
334 /****************************************/
335 static void ZAPL_RestrictionModeOns0e2( void )
337 stm_apl_start_activity_map();
340 /****************************************/
341 /* Action function */
342 /* STM : RestrictionModeOn */
343 /* State : map_fullscreen( No 1 ) */
344 /* Event : ara_normal( No 0 ) */
345 /****************************************/
346 static void ZAPL_RestrictionModeOns1e0( void )
348 ZAPL_AppsLayerState[ZAPL_APPSLAYERS1F] = ( uint8_t )ZAPL_RESTRICTIONMODEONS0;
349 stm_apl_start_activity_map();
352 /****************************************/
353 /* Action function */
354 /* STM : RestrictionModeOn */
355 /* State : map_fullscreen( No 1 ) */
356 /* Event : stt_prv_layer_apps_map_fll( No 3 ) */
357 /****************************************/
358 static void ZAPL_RestrictionModeOns1e3( void )
360 stm_apl_start_activity_map_fullscreen();
363 /****************************************/
364 /* Event appraisal function */
365 /* STM : AppsLayer */
366 /* State : restriction_mode_off( No 0 ) */
367 /****************************************/
368 static void ZAPL_AppsLayers0Event( void )
370 /*stt_restriction_mode_on*/
371 if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOn )
373 stm_apl_event_restriction_mode_on();
374 /*stt_map_is_activated*/
375 if( g_stm_map_is_activated == STM_TRUE )
377 /*stt_prv_layer_apps_not_sys_nml*/
378 if( g_stm_prv_state.layer[StmLayerNoApps].state != StmLayoutNoSysNml )
380 ZAPL_AppsLayers0e1();
384 /*Else and default design have not done.*/
385 /*Please confirm the STM and design else and default.*/
390 /*Else and default design have not done.*/
391 /*Please confirm the STM and design else and default.*/
396 /*Else and default design have not done.*/
397 /*Please confirm the STM and design else and default.*/
401 /****************************************/
402 /* Event appraisal function */
403 /* STM : RestrictionModeOff */
404 /* State : none( No 0 ) */
405 /****************************************/
406 static void ZAPL_RestrictionModeOffs0Event( void )
408 /*stt_restriction_mode_off*/
409 if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOff )
412 if( g_stm_event == StmEvtNoActivate )
415 if( g_stm_category == StmCtgNoMap )
418 if( g_stm_area == StmAreaNoNormal )
420 ZAPL_RestrictionModeOffs0e0();
423 else if( g_stm_area == StmAreaNoFullscreen )
425 ZAPL_RestrictionModeOffs0e2();
429 /*Else and default design have not done.*/
430 /*Please confirm the STM and design else and default.*/
434 else if( g_stm_category == StmCtgNoSplitable )
437 if( g_stm_area == StmAreaNoNormal )
439 ZAPL_RestrictionModeOffs0e3();
443 /*Else and default design have not done.*/
444 /*Please confirm the STM and design else and default.*/
448 else if( g_stm_category == StmCtgNoGeneral )
451 if( g_stm_area == StmAreaNoNormal )
453 ZAPL_RestrictionModeOffs0e6();
457 /*Else and default design have not done.*/
458 /*Please confirm the STM and design else and default.*/
462 else if( g_stm_category == StmCtgNoSystem )
465 if( g_stm_area == StmAreaNoNormal )
467 ZAPL_RestrictionModeOffs0e7();
471 /*Else and default design have not done.*/
472 /*Please confirm the STM and design else and default.*/
477 /*Else and default design have not done.*/
478 /*Please confirm the STM and design else and default.*/
482 else if( g_stm_event == StmEvtNoUndo )
484 /*stt_prv_layer_apps_none*/
485 if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
487 ZAPL_RestrictionModeOffs0e13();
489 /*stt_prv_layer_apps_map_nml*/
490 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
492 ZAPL_RestrictionModeOffs0e0();
494 /*stt_prv_layer_apps_map_spl*/
495 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
497 ZAPL_RestrictionModeOffs0e15();
499 /*stt_prv_layer_apps_map_fll*/
500 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
502 ZAPL_RestrictionModeOffs0e2();
504 /*stt_prv_layer_apps_spl_nml*/
505 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplNml )
507 ZAPL_RestrictionModeOffs0e3();
509 /*stt_prv_layer_apps_spl_spl*/
510 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
512 ZAPL_RestrictionModeOffs0e18();
514 /*stt_prv_layer_apps_gen_nml*/
515 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
517 ZAPL_RestrictionModeOffs0e6();
519 /*stt_prv_layer_apps_sys_nml*/
520 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSysNml )
522 ZAPL_RestrictionModeOffs0e7();
526 /*Else and default design have not done.*/
527 /*Please confirm the STM and design else and default.*/
532 /*Else and default design have not done.*/
533 /*Please confirm the STM and design else and default.*/
538 /*Else and default design have not done.*/
539 /*Please confirm the STM and design else and default.*/
543 /****************************************/
544 /* Event appraisal function */
545 /* STM : RestrictionModeOff */
546 /* State : map( No 1 ) */
547 /****************************************/
548 static void ZAPL_RestrictionModeOffs1Event( void )
550 /*stt_restriction_mode_off*/
551 if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOff )
554 if( g_stm_event == StmEvtNoActivate )
557 if( g_stm_category == StmCtgNoMap )
560 if( g_stm_area == StmAreaNoFullscreen )
562 ZAPL_RestrictionModeOffs0e2();
566 /*Else and default design have not done.*/
567 /*Please confirm the STM and design else and default.*/
571 else if( g_stm_category == StmCtgNoSplitable )
574 if( g_stm_area == StmAreaNoNormal )
576 ZAPL_RestrictionModeOffs0e15();
579 else if( g_stm_area == StmAreaNoSplitSub )
581 ZAPL_RestrictionModeOffs0e15();
585 /*Else and default design have not done.*/
586 /*Please confirm the STM and design else and default.*/
590 else if( g_stm_category == StmCtgNoGeneral )
593 if( g_stm_area == StmAreaNoNormal )
595 ZAPL_RestrictionModeOffs0e6();
599 /*Else and default design have not done.*/
600 /*Please confirm the STM and design else and default.*/
604 else if( g_stm_category == StmCtgNoSystem )
607 if( g_stm_area == StmAreaNoNormal )
609 ZAPL_RestrictionModeOffs0e7();
613 /*Else and default design have not done.*/
614 /*Please confirm the STM and design else and default.*/
618 else if( g_stm_category == StmCtgNoHomescreen )
621 if( g_stm_area == StmAreaNoFullscreen )
623 ZAPL_RestrictionModeOffs1e8();
627 /*Else and default design have not done.*/
628 /*Please confirm the STM and design else and default.*/
633 /*Else and default design have not done.*/
634 /*Please confirm the STM and design else and default.*/
638 else if( g_stm_event == StmEvtNoDeactivate )
641 if( g_stm_category == StmCtgNoMap )
643 ZAPL_RestrictionModeOffs1e8();
647 /*Else and default design have not done.*/
648 /*Please confirm the STM and design else and default.*/
652 else if( g_stm_event == StmEvtNoUndo )
654 /*stt_prv_layer_apps_none*/
655 if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
657 ZAPL_RestrictionModeOffs1e8();
659 /*stt_prv_layer_apps_map_nml*/
660 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
662 ZAPL_RestrictionModeOffs1e14();
664 /*stt_prv_layer_apps_map_spl*/
665 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
667 ZAPL_RestrictionModeOffs0e15();
669 /*stt_prv_layer_apps_map_fll*/
670 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
672 ZAPL_RestrictionModeOffs0e2();
674 /*stt_prv_layer_apps_spl_nml*/
675 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplNml )
677 ZAPL_RestrictionModeOffs0e3();
679 /*stt_prv_layer_apps_spl_spl*/
680 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
682 ZAPL_RestrictionModeOffs0e18();
684 /*stt_prv_layer_apps_gen_nml*/
685 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
687 ZAPL_RestrictionModeOffs0e6();
689 /*stt_prv_layer_apps_sys_nml*/
690 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSysNml )
692 ZAPL_RestrictionModeOffs0e7();
696 /*Else and default design have not done.*/
697 /*Please confirm the STM and design else and default.*/
702 /*Else and default design have not done.*/
703 /*Please confirm the STM and design else and default.*/
708 /*Else and default design have not done.*/
709 /*Please confirm the STM and design else and default.*/
713 /****************************************/
714 /* Event appraisal function */
715 /* STM : RestrictionModeOff */
716 /* State : map_split( No 2 ) */
717 /****************************************/
718 static void ZAPL_RestrictionModeOffs2Event( void )
720 /*stt_restriction_mode_off*/
721 if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOff )
724 if( g_stm_event == StmEvtNoActivate )
727 if( g_stm_category == StmCtgNoMap )
730 if( g_stm_area == StmAreaNoNormal )
732 ZAPL_RestrictionModeOffs0e0();
735 else if( g_stm_area == StmAreaNoFullscreen )
737 ZAPL_RestrictionModeOffs0e2();
741 /*Else and default design have not done.*/
742 /*Please confirm the STM and design else and default.*/
746 else if( g_stm_category == StmCtgNoSplitable )
749 if( g_stm_area == StmAreaNoNormal )
751 ZAPL_RestrictionModeOffs2e3();
754 else if( g_stm_area == StmAreaNoSplitSub )
756 ZAPL_RestrictionModeOffs2e3();
760 /*Else and default design have not done.*/
761 /*Please confirm the STM and design else and default.*/
765 else if( g_stm_category == StmCtgNoGeneral )
768 if( g_stm_area == StmAreaNoNormal )
770 ZAPL_RestrictionModeOffs0e6();
774 /*Else and default design have not done.*/
775 /*Please confirm the STM and design else and default.*/
779 else if( g_stm_category == StmCtgNoSystem )
782 if( g_stm_area == StmAreaNoNormal )
784 ZAPL_RestrictionModeOffs0e7();
788 /*Else and default design have not done.*/
789 /*Please confirm the STM and design else and default.*/
793 else if( g_stm_category == StmCtgNoHomescreen )
796 if( g_stm_area == StmAreaNoFullscreen )
798 ZAPL_RestrictionModeOffs1e8();
802 /*Else and default design have not done.*/
803 /*Please confirm the STM and design else and default.*/
808 /*Else and default design have not done.*/
809 /*Please confirm the STM and design else and default.*/
813 else if( g_stm_event == StmEvtNoDeactivate )
816 if( g_stm_category == StmCtgNoMap )
818 ZAPL_RestrictionModeOffs0e3();
822 /*Else and default design have not done.*/
823 /*Please confirm the STM and design else and default.*/
827 else if( g_stm_event == StmEvtNoUndo )
829 /*stt_prv_layer_apps_none*/
830 if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
832 ZAPL_RestrictionModeOffs1e8();
834 /*stt_prv_layer_apps_map_nml*/
835 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
837 ZAPL_RestrictionModeOffs0e0();
839 /*stt_prv_layer_apps_map_spl*/
840 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
842 ZAPL_RestrictionModeOffs2e3();
844 /*stt_prv_layer_apps_map_fll*/
845 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
847 ZAPL_RestrictionModeOffs0e2();
849 /*stt_prv_layer_apps_spl_nml*/
850 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplNml )
852 ZAPL_RestrictionModeOffs0e3();
854 /*stt_prv_layer_apps_spl_spl*/
855 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
857 ZAPL_RestrictionModeOffs0e18();
859 /*stt_prv_layer_apps_gen_nml*/
860 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
862 ZAPL_RestrictionModeOffs0e6();
864 /*stt_prv_layer_apps_sys_nml*/
865 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSysNml )
867 ZAPL_RestrictionModeOffs0e7();
871 /*Else and default design have not done.*/
872 /*Please confirm the STM and design else and default.*/
877 /*Else and default design have not done.*/
878 /*Please confirm the STM and design else and default.*/
883 /*Else and default design have not done.*/
884 /*Please confirm the STM and design else and default.*/
888 /****************************************/
889 /* Event appraisal function */
890 /* STM : RestrictionModeOff */
891 /* State : map_fullscreen( No 3 ) */
892 /****************************************/
893 static void ZAPL_RestrictionModeOffs3Event( void )
895 /*stt_restriction_mode_off*/
896 if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOff )
899 if( g_stm_event == StmEvtNoActivate )
902 if( g_stm_category == StmCtgNoMap )
905 if( g_stm_area == StmAreaNoNormal )
907 ZAPL_RestrictionModeOffs0e0();
911 /*Else and default design have not done.*/
912 /*Please confirm the STM and design else and default.*/
916 else if( g_stm_category == StmCtgNoSplitable )
919 if( g_stm_area == StmAreaNoNormal )
921 ZAPL_RestrictionModeOffs0e15();
925 /*Else and default design have not done.*/
926 /*Please confirm the STM and design else and default.*/
930 else if( g_stm_category == StmCtgNoGeneral )
933 if( g_stm_area == StmAreaNoNormal )
935 ZAPL_RestrictionModeOffs0e6();
939 /*Else and default design have not done.*/
940 /*Please confirm the STM and design else and default.*/
944 else if( g_stm_category == StmCtgNoSystem )
947 if( g_stm_area == StmAreaNoNormal )
949 ZAPL_RestrictionModeOffs0e7();
953 /*Else and default design have not done.*/
954 /*Please confirm the STM and design else and default.*/
958 else if( g_stm_category == StmCtgNoHomescreen )
961 if( g_stm_area == StmAreaNoFullscreen )
963 ZAPL_RestrictionModeOffs1e8();
967 /*Else and default design have not done.*/
968 /*Please confirm the STM and design else and default.*/
973 /*Else and default design have not done.*/
974 /*Please confirm the STM and design else and default.*/
978 else if( g_stm_event == StmEvtNoDeactivate )
981 if( g_stm_category == StmCtgNoMap )
983 ZAPL_RestrictionModeOffs1e8();
987 /*Else and default design have not done.*/
988 /*Please confirm the STM and design else and default.*/
992 else if( g_stm_event == StmEvtNoUndo )
994 /*stt_prv_layer_apps_none*/
995 if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
997 ZAPL_RestrictionModeOffs1e8();
999 /*stt_prv_layer_apps_map_nml*/
1000 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
1002 ZAPL_RestrictionModeOffs0e0();
1004 /*stt_prv_layer_apps_map_spl*/
1005 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
1007 ZAPL_RestrictionModeOffs0e15();
1009 /*stt_prv_layer_apps_map_fll*/
1010 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
1012 ZAPL_RestrictionModeOffs3e16();
1014 /*stt_prv_layer_apps_spl_nml*/
1015 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplNml )
1017 ZAPL_RestrictionModeOffs0e3();
1019 /*stt_prv_layer_apps_spl_spl*/
1020 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
1022 ZAPL_RestrictionModeOffs0e18();
1024 /*stt_prv_layer_apps_gen_nml*/
1025 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
1027 ZAPL_RestrictionModeOffs0e6();
1029 /*stt_prv_layer_apps_sys_nml*/
1030 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSysNml )
1032 ZAPL_RestrictionModeOffs0e7();
1036 /*Else and default design have not done.*/
1037 /*Please confirm the STM and design else and default.*/
1042 /*Else and default design have not done.*/
1043 /*Please confirm the STM and design else and default.*/
1048 /*Else and default design have not done.*/
1049 /*Please confirm the STM and design else and default.*/
1053 /****************************************/
1054 /* Event appraisal function */
1055 /* STM : RestrictionModeOff */
1056 /* State : splitable_normal( No 4 ) */
1057 /****************************************/
1058 static void ZAPL_RestrictionModeOffs4Event( void )
1060 /*stt_restriction_mode_off*/
1061 if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOff )
1064 if( g_stm_event == StmEvtNoActivate )
1067 if( g_stm_category == StmCtgNoMap )
1070 if( g_stm_area == StmAreaNoNormal )
1072 ZAPL_RestrictionModeOffs0e15();
1075 else if( g_stm_area == StmAreaNoSplitMain )
1077 ZAPL_RestrictionModeOffs0e15();
1080 else if( g_stm_area == StmAreaNoFullscreen )
1082 ZAPL_RestrictionModeOffs0e2();
1086 /*Else and default design have not done.*/
1087 /*Please confirm the STM and design else and default.*/
1091 else if( g_stm_category == StmCtgNoSplitable )
1094 if( g_stm_area == StmAreaNoSplitMain )
1096 ZAPL_RestrictionModeOffs0e18();
1099 else if( g_stm_area == StmAreaNoSplitSub )
1101 ZAPL_RestrictionModeOffs0e18();
1105 /*Else and default design have not done.*/
1106 /*Please confirm the STM and design else and default.*/
1110 else if( g_stm_category == StmCtgNoGeneral )
1113 if( g_stm_area == StmAreaNoNormal )
1115 ZAPL_RestrictionModeOffs0e6();
1119 /*Else and default design have not done.*/
1120 /*Please confirm the STM and design else and default.*/
1124 else if( g_stm_category == StmCtgNoSystem )
1127 if( g_stm_area == StmAreaNoNormal )
1129 ZAPL_RestrictionModeOffs0e7();
1133 /*Else and default design have not done.*/
1134 /*Please confirm the STM and design else and default.*/
1138 else if( g_stm_category == StmCtgNoHomescreen )
1141 if( g_stm_area == StmAreaNoFullscreen )
1143 ZAPL_RestrictionModeOffs1e8();
1147 /*Else and default design have not done.*/
1148 /*Please confirm the STM and design else and default.*/
1153 /*Else and default design have not done.*/
1154 /*Please confirm the STM and design else and default.*/
1158 else if( g_stm_event == StmEvtNoDeactivate )
1161 if( g_stm_category == StmCtgNoSplitable )
1163 ZAPL_RestrictionModeOffs1e8();
1167 /*Else and default design have not done.*/
1168 /*Please confirm the STM and design else and default.*/
1172 else if( g_stm_event == StmEvtNoUndo )
1174 /*stt_prv_layer_apps_none*/
1175 if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
1177 ZAPL_RestrictionModeOffs1e8();
1179 /*stt_prv_layer_apps_map_nml*/
1180 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
1182 ZAPL_RestrictionModeOffs0e0();
1184 /*stt_prv_layer_apps_map_spl*/
1185 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
1187 ZAPL_RestrictionModeOffs0e15();
1189 /*stt_prv_layer_apps_map_fll*/
1190 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
1192 ZAPL_RestrictionModeOffs0e2();
1194 /*stt_prv_layer_apps_spl_nml*/
1195 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplNml )
1197 ZAPL_RestrictionModeOffs4e17();
1199 /*stt_prv_layer_apps_spl_spl*/
1200 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
1202 ZAPL_RestrictionModeOffs0e18();
1204 /*stt_prv_layer_apps_gen_nml*/
1205 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
1207 ZAPL_RestrictionModeOffs0e6();
1209 /*stt_prv_layer_apps_sys_nml*/
1210 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSysNml )
1212 ZAPL_RestrictionModeOffs0e7();
1216 /*Else and default design have not done.*/
1217 /*Please confirm the STM and design else and default.*/
1222 /*Else and default design have not done.*/
1223 /*Please confirm the STM and design else and default.*/
1228 /*Else and default design have not done.*/
1229 /*Please confirm the STM and design else and default.*/
1233 /****************************************/
1234 /* Event appraisal function */
1235 /* STM : RestrictionModeOff */
1236 /* State : splitable_split( No 5 ) */
1237 /****************************************/
1238 static void ZAPL_RestrictionModeOffs5Event( void )
1240 /*stt_restriction_mode_off*/
1241 if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOff )
1244 if( g_stm_event == StmEvtNoActivate )
1247 if( g_stm_category == StmCtgNoMap )
1250 if( g_stm_area == StmAreaNoNormal )
1252 ZAPL_RestrictionModeOffs0e15();
1255 else if( g_stm_area == StmAreaNoSplitMain )
1257 ZAPL_RestrictionModeOffs0e15();
1260 else if( g_stm_area == StmAreaNoFullscreen )
1262 ZAPL_RestrictionModeOffs0e2();
1266 /*Else and default design have not done.*/
1267 /*Please confirm the STM and design else and default.*/
1271 else if( g_stm_category == StmCtgNoSplitable )
1274 if( g_stm_area == StmAreaNoNormal )
1276 ZAPL_RestrictionModeOffs5e3();
1279 else if( g_stm_area == StmAreaNoSplitMain )
1281 ZAPL_RestrictionModeOffs5e3();
1284 else if( g_stm_area == StmAreaNoSplitSub )
1286 ZAPL_RestrictionModeOffs5e3();
1290 /*Else and default design have not done.*/
1291 /*Please confirm the STM and design else and default.*/
1295 else if( g_stm_category == StmCtgNoGeneral )
1298 if( g_stm_area == StmAreaNoNormal )
1300 ZAPL_RestrictionModeOffs0e6();
1304 /*Else and default design have not done.*/
1305 /*Please confirm the STM and design else and default.*/
1309 else if( g_stm_category == StmCtgNoSystem )
1312 if( g_stm_area == StmAreaNoNormal )
1314 ZAPL_RestrictionModeOffs0e7();
1318 /*Else and default design have not done.*/
1319 /*Please confirm the STM and design else and default.*/
1323 else if( g_stm_category == StmCtgNoHomescreen )
1326 if( g_stm_area == StmAreaNoFullscreen )
1328 ZAPL_RestrictionModeOffs1e8();
1332 /*Else and default design have not done.*/
1333 /*Please confirm the STM and design else and default.*/
1338 /*Else and default design have not done.*/
1339 /*Please confirm the STM and design else and default.*/
1343 else if( g_stm_event == StmEvtNoDeactivate )
1346 if( g_stm_category == StmCtgNoSplitable )
1348 ZAPL_RestrictionModeOffs0e3();
1352 /*Else and default design have not done.*/
1353 /*Please confirm the STM and design else and default.*/
1357 else if( g_stm_event == StmEvtNoUndo )
1359 /*stt_prv_layer_apps_none*/
1360 if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
1362 ZAPL_RestrictionModeOffs1e8();
1364 /*stt_prv_layer_apps_map_nml*/
1365 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
1367 ZAPL_RestrictionModeOffs0e0();
1369 /*stt_prv_layer_apps_map_spl*/
1370 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
1372 ZAPL_RestrictionModeOffs0e15();
1374 /*stt_prv_layer_apps_map_fll*/
1375 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
1377 ZAPL_RestrictionModeOffs0e2();
1379 /*stt_prv_layer_apps_spl_nml*/
1380 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplNml )
1382 ZAPL_RestrictionModeOffs0e3();
1384 /*stt_prv_layer_apps_spl_spl*/
1385 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
1387 ZAPL_RestrictionModeOffs5e3();
1389 /*stt_prv_layer_apps_gen_nml*/
1390 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
1392 ZAPL_RestrictionModeOffs0e6();
1394 /*stt_prv_layer_apps_sys_nml*/
1395 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSysNml )
1397 ZAPL_RestrictionModeOffs0e7();
1401 /*Else and default design have not done.*/
1402 /*Please confirm the STM and design else and default.*/
1407 /*Else and default design have not done.*/
1408 /*Please confirm the STM and design else and default.*/
1413 /*Else and default design have not done.*/
1414 /*Please confirm the STM and design else and default.*/
1418 /****************************************/
1419 /* Event appraisal function */
1420 /* STM : RestrictionModeOff */
1421 /* State : general( No 6 ) */
1422 /****************************************/
1423 static void ZAPL_RestrictionModeOffs6Event( void )
1425 /*stt_restriction_mode_off*/
1426 if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOff )
1429 if( g_stm_event == StmEvtNoActivate )
1432 if( g_stm_category == StmCtgNoMap )
1435 if( g_stm_area == StmAreaNoNormal )
1437 ZAPL_RestrictionModeOffs0e0();
1440 else if( g_stm_area == StmAreaNoFullscreen )
1442 ZAPL_RestrictionModeOffs0e2();
1446 /*Else and default design have not done.*/
1447 /*Please confirm the STM and design else and default.*/
1451 else if( g_stm_category == StmCtgNoSplitable )
1454 if( g_stm_area == StmAreaNoNormal )
1456 ZAPL_RestrictionModeOffs0e3();
1460 /*Else and default design have not done.*/
1461 /*Please confirm the STM and design else and default.*/
1465 else if( g_stm_category == StmCtgNoGeneral )
1468 if( g_stm_area == StmAreaNoNormal )
1470 ZAPL_RestrictionModeOffs6e6();
1474 /*Else and default design have not done.*/
1475 /*Please confirm the STM and design else and default.*/
1479 else if( g_stm_category == StmCtgNoSystem )
1482 if( g_stm_area == StmAreaNoNormal )
1484 ZAPL_RestrictionModeOffs0e7();
1488 /*Else and default design have not done.*/
1489 /*Please confirm the STM and design else and default.*/
1493 else if( g_stm_category == StmCtgNoHomescreen )
1496 if( g_stm_area == StmAreaNoFullscreen )
1498 ZAPL_RestrictionModeOffs1e8();
1502 /*Else and default design have not done.*/
1503 /*Please confirm the STM and design else and default.*/
1508 /*Else and default design have not done.*/
1509 /*Please confirm the STM and design else and default.*/
1513 else if( g_stm_event == StmEvtNoDeactivate )
1516 if( g_stm_category == StmCtgNoGeneral )
1518 ZAPL_RestrictionModeOffs1e8();
1522 /*Else and default design have not done.*/
1523 /*Please confirm the STM and design else and default.*/
1527 else if( g_stm_event == StmEvtNoUndo )
1529 /*stt_prv_layer_apps_none*/
1530 if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
1532 ZAPL_RestrictionModeOffs1e8();
1534 /*stt_prv_layer_apps_map_nml*/
1535 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
1537 ZAPL_RestrictionModeOffs0e0();
1539 /*stt_prv_layer_apps_map_spl*/
1540 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
1542 ZAPL_RestrictionModeOffs0e15();
1544 /*stt_prv_layer_apps_map_fll*/
1545 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
1547 ZAPL_RestrictionModeOffs0e2();
1549 /*stt_prv_layer_apps_spl_nml*/
1550 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplNml )
1552 ZAPL_RestrictionModeOffs0e3();
1554 /*stt_prv_layer_apps_spl_spl*/
1555 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
1557 ZAPL_RestrictionModeOffs0e18();
1559 /*stt_prv_layer_apps_gen_nml*/
1560 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
1562 ZAPL_RestrictionModeOffs6e6();
1564 /*stt_prv_layer_apps_sys_nml*/
1565 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSysNml )
1567 ZAPL_RestrictionModeOffs0e7();
1571 /*Else and default design have not done.*/
1572 /*Please confirm the STM and design else and default.*/
1577 /*Else and default design have not done.*/
1578 /*Please confirm the STM and design else and default.*/
1583 /*Else and default design have not done.*/
1584 /*Please confirm the STM and design else and default.*/
1588 /****************************************/
1589 /* Event appraisal function */
1590 /* STM : RestrictionModeOff */
1591 /* State : system( No 7 ) */
1592 /****************************************/
1593 static void ZAPL_RestrictionModeOffs7Event( void )
1595 /*stt_restriction_mode_off*/
1596 if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOff )
1599 if( g_stm_event == StmEvtNoActivate )
1602 if( g_stm_category == StmCtgNoMap )
1605 if( g_stm_area == StmAreaNoNormal )
1607 ZAPL_RestrictionModeOffs0e0();
1610 else if( g_stm_area == StmAreaNoFullscreen )
1612 ZAPL_RestrictionModeOffs0e2();
1616 /*Else and default design have not done.*/
1617 /*Please confirm the STM and design else and default.*/
1621 else if( g_stm_category == StmCtgNoSplitable )
1624 if( g_stm_area == StmAreaNoNormal )
1626 ZAPL_RestrictionModeOffs0e3();
1630 /*Else and default design have not done.*/
1631 /*Please confirm the STM and design else and default.*/
1635 else if( g_stm_category == StmCtgNoGeneral )
1638 if( g_stm_area == StmAreaNoNormal )
1640 ZAPL_RestrictionModeOffs0e6();
1644 /*Else and default design have not done.*/
1645 /*Please confirm the STM and design else and default.*/
1649 else if( g_stm_category == StmCtgNoSystem )
1652 if( g_stm_area == StmAreaNoNormal )
1654 ZAPL_RestrictionModeOffs7e7();
1658 /*Else and default design have not done.*/
1659 /*Please confirm the STM and design else and default.*/
1663 else if( g_stm_category == StmCtgNoHomescreen )
1666 if( g_stm_area == StmAreaNoFullscreen )
1668 ZAPL_RestrictionModeOffs1e8();
1672 /*Else and default design have not done.*/
1673 /*Please confirm the STM and design else and default.*/
1678 /*Else and default design have not done.*/
1679 /*Please confirm the STM and design else and default.*/
1683 else if( g_stm_event == StmEvtNoDeactivate )
1686 if( g_stm_category == StmCtgNoSystem )
1688 ZAPL_RestrictionModeOffs1e8();
1692 /*Else and default design have not done.*/
1693 /*Please confirm the STM and design else and default.*/
1697 else if( g_stm_event == StmEvtNoUndo )
1699 /*stt_prv_layer_apps_none*/
1700 if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
1702 ZAPL_RestrictionModeOffs1e8();
1704 /*stt_prv_layer_apps_map_nml*/
1705 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
1707 ZAPL_RestrictionModeOffs0e0();
1709 /*stt_prv_layer_apps_map_spl*/
1710 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
1712 ZAPL_RestrictionModeOffs0e15();
1714 /*stt_prv_layer_apps_map_fll*/
1715 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
1717 ZAPL_RestrictionModeOffs0e2();
1719 /*stt_prv_layer_apps_spl_nml*/
1720 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplNml )
1722 ZAPL_RestrictionModeOffs0e3();
1724 /*stt_prv_layer_apps_spl_spl*/
1725 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
1727 ZAPL_RestrictionModeOffs0e18();
1729 /*stt_prv_layer_apps_gen_nml*/
1730 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
1732 ZAPL_RestrictionModeOffs0e6();
1734 /*stt_prv_layer_apps_sys_nml*/
1735 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSysNml )
1737 ZAPL_RestrictionModeOffs7e7();
1741 /*Else and default design have not done.*/
1742 /*Please confirm the STM and design else and default.*/
1747 /*Else and default design have not done.*/
1748 /*Please confirm the STM and design else and default.*/
1753 /*Else and default design have not done.*/
1754 /*Please confirm the STM and design else and default.*/
1758 /****************************************/
1759 /* Event appraisal function */
1760 /* STM : AppsLayer */
1761 /* State : restriction_mode_on( No 1 )*/
1762 /****************************************/
1763 static void ZAPL_AppsLayers1Event( void )
1765 /*stt_restriction_mode_off*/
1766 if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOff )
1768 stm_apl_event_restriction_mode_off();
1769 ZAPL_AppsLayers1e0();
1773 /*Else and default design have not done.*/
1774 /*Please confirm the STM and design else and default.*/
1778 /****************************************/
1779 /* Event appraisal function */
1780 /* STM : RestrictionModeOn */
1781 /* State : map( No 0 ) */
1782 /****************************************/
1783 static void ZAPL_RestrictionModeOns0Event( void )
1785 /*stt_restriction_mode_on*/
1786 if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOn )
1789 if( g_stm_event == StmEvtNoActivate )
1792 if( g_stm_category == StmCtgNoMap )
1795 if( g_stm_area == StmAreaNoFullscreen )
1797 ZAPL_RestrictionModeOns0e1();
1801 /*Else and default design have not done.*/
1802 /*Please confirm the STM and design else and default.*/
1807 /*Else and default design have not done.*/
1808 /*Please confirm the STM and design else and default.*/
1812 else if( g_stm_event == StmEvtNoUndo )
1814 /*stt_prv_layer_apps_map_nml*/
1815 if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
1817 ZAPL_RestrictionModeOns0e2();
1819 /*stt_prv_layer_apps_map_fll*/
1820 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
1822 ZAPL_RestrictionModeOns0e1();
1826 /*Else and default design have not done.*/
1827 /*Please confirm the STM and design else and default.*/
1832 /*Else and default design have not done.*/
1833 /*Please confirm the STM and design else and default.*/
1838 /*Else and default design have not done.*/
1839 /*Please confirm the STM and design else and default.*/
1843 /****************************************/
1844 /* Event appraisal function */
1845 /* STM : RestrictionModeOn */
1846 /* State : map_fullscreen( No 1 ) */
1847 /****************************************/
1848 static void ZAPL_RestrictionModeOns1Event( void )
1850 /*stt_restriction_mode_on*/
1851 if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOn )
1854 if( g_stm_event == StmEvtNoActivate )
1857 if( g_stm_category == StmCtgNoMap )
1860 if( g_stm_area == StmAreaNoNormal )
1862 ZAPL_RestrictionModeOns1e0();
1866 /*Else and default design have not done.*/
1867 /*Please confirm the STM and design else and default.*/
1872 /*Else and default design have not done.*/
1873 /*Please confirm the STM and design else and default.*/
1877 else if( g_stm_event == StmEvtNoUndo )
1879 /*stt_prv_layer_apps_map_nml*/
1880 if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
1882 ZAPL_RestrictionModeOns1e0();
1884 /*stt_prv_layer_apps_map_fll*/
1885 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
1887 ZAPL_RestrictionModeOns1e3();
1891 /*Else and default design have not done.*/
1892 /*Please confirm the STM and design else and default.*/
1897 /*Else and default design have not done.*/
1898 /*Please confirm the STM and design else and default.*/
1903 /*Else and default design have not done.*/
1904 /*Please confirm the STM and design else and default.*/
1908 /****************************************/
1909 /* Event call function */
1910 /* STM : AppsLayer */
1911 /****************************************/
1912 void stm_apl_event_call( void )
1914 stm_apl_start_stm();
1915 switch( ZAPL_AppsLayerState[ZAPL_APPSLAYER] )
1917 case ZAPL_APPSLAYERS0:
1918 switch( ZAPL_AppsLayerState[ZAPL_APPSLAYERS0F] )
1920 case ZAPL_RESTRICTIONMODEOFFS0:
1921 ZAPL_RestrictionModeOffs0Event();
1923 case ZAPL_RESTRICTIONMODEOFFS1:
1924 ZAPL_RestrictionModeOffs1Event();
1926 case ZAPL_RESTRICTIONMODEOFFS2:
1927 ZAPL_RestrictionModeOffs2Event();
1929 case ZAPL_RESTRICTIONMODEOFFS3:
1930 ZAPL_RestrictionModeOffs3Event();
1932 case ZAPL_RESTRICTIONMODEOFFS4:
1933 ZAPL_RestrictionModeOffs4Event();
1935 case ZAPL_RESTRICTIONMODEOFFS5:
1936 ZAPL_RestrictionModeOffs5Event();
1938 case ZAPL_RESTRICTIONMODEOFFS6:
1939 ZAPL_RestrictionModeOffs6Event();
1941 case ZAPL_RESTRICTIONMODEOFFS7:
1942 ZAPL_RestrictionModeOffs7Event();
1945 /*Not accessible to this else (default).*/
1948 ZAPL_AppsLayers0Event();
1950 case ZAPL_APPSLAYERS1:
1951 switch( ZAPL_AppsLayerState[ZAPL_APPSLAYERS1F] )
1953 case ZAPL_RESTRICTIONMODEONS0:
1954 ZAPL_RestrictionModeOns0Event();
1956 case ZAPL_RESTRICTIONMODEONS1:
1957 ZAPL_RestrictionModeOns1Event();
1960 /*Not accessible to this else (default).*/
1963 ZAPL_AppsLayers1Event();
1966 /*Not accessible to this else (default).*/
1971 /****************************************/
1972 /* Initial function */
1973 /* STM : AppsLayer */
1974 /****************************************/
1975 void stm_apl_initialize( void )
1977 ZAPL_AppsLayerState[ZAPL_APPSLAYER] = ( uint8_t )ZAPL_APPSLAYERS0;
1978 ZAPL_AppsLayerState[ZAPL_APPSLAYERS0F] = ( uint8_t )ZAPL_RESTRICTIONMODEOFFS0;
1979 ZAPL_AppsLayerState[ZAPL_APPSLAYERS1F] = ( uint8_t )ZAPL_RESTRICTIONMODEONS0;
1980 ZAPL_AppsLayers0StateEntry();
1983 /****************************************/
1984 /* Terminate function */
1985 /* STM : AppsLayer */
1986 /****************************************/
1987 void ZAPL_AppsLayerTerminate( void )
1989 ZAPL_AppsLayerState[ZAPL_APPSLAYER] = ( uint8_t )ZAPL_APPSLAYERTERMINATE;