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_RestrictionModeOffs1e0( void );
24 static void ZAPL_RestrictionModeOffs1e8( void );
25 static void ZAPL_RestrictionModeOffs2e3( void );
26 static void ZAPL_RestrictionModeOffs3e2( void );
27 static void ZAPL_RestrictionModeOffs4e3( 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_2_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_2_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_normal( No 0 ) */
233 /****************************************/
234 static void ZAPL_RestrictionModeOffs1e0( void )
236 stm_apl_start_activity_map();
239 /****************************************/
240 /* Action function */
241 /* STM : RestrictionModeOff */
242 /* State : map( No 1 ) */
243 /* Event : ara_fullscreen( No 8 ) */
244 /****************************************/
245 static void ZAPL_RestrictionModeOffs1e8( void )
247 ZAPL_AppsLayerState[ZAPL_APPSLAYERS0F] = ( uint8_t )ZAPL_RESTRICTIONMODEOFFS0;
248 stm_apl_start_activity_none();
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 : ara_fullscreen( No 2 ) */
267 /****************************************/
268 static void ZAPL_RestrictionModeOffs3e2( void )
270 stm_apl_start_activity_map_fullscreen();
273 /****************************************/
274 /* Action function */
275 /* STM : RestrictionModeOff */
276 /* State : splitable_normal( No 4 ) */
277 /* Event : ara_normal( No 3 ) */
278 /****************************************/
279 static void ZAPL_RestrictionModeOffs4e3( 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_2_on*/
371 if( g_stm_crr_state.mode[StmModeNoRestrictionMode].state == StmRestrictionModeSttNo2On )
373 stm_apl_event_restriction_mode_2_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.mode[StmModeNoRestrictionMode].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.mode[StmModeNoRestrictionMode].state == StmRestrictionModeSttNoOff )
554 if( g_stm_event == StmEvtNoActivate )
557 if( g_stm_category == StmCtgNoMap )
560 if( g_stm_area == StmAreaNoNormal )
562 ZAPL_RestrictionModeOffs1e0();
565 else if( g_stm_area == StmAreaNoFullscreen )
567 ZAPL_RestrictionModeOffs0e2();
571 /*Else and default design have not done.*/
572 /*Please confirm the STM and design else and default.*/
576 else if( g_stm_category == StmCtgNoSplitable )
579 if( g_stm_area == StmAreaNoNormal )
581 ZAPL_RestrictionModeOffs0e15();
584 else if( g_stm_area == StmAreaNoSplitSub )
586 ZAPL_RestrictionModeOffs0e15();
590 /*Else and default design have not done.*/
591 /*Please confirm the STM and design else and default.*/
595 else if( g_stm_category == StmCtgNoGeneral )
598 if( g_stm_area == StmAreaNoNormal )
600 ZAPL_RestrictionModeOffs0e6();
604 /*Else and default design have not done.*/
605 /*Please confirm the STM and design else and default.*/
609 else if( g_stm_category == StmCtgNoSystem )
612 if( g_stm_area == StmAreaNoNormal )
614 ZAPL_RestrictionModeOffs0e7();
618 /*Else and default design have not done.*/
619 /*Please confirm the STM and design else and default.*/
623 else if( g_stm_category == StmCtgNoHomescreen )
626 if( g_stm_area == StmAreaNoFullscreen )
628 ZAPL_RestrictionModeOffs1e8();
632 /*Else and default design have not done.*/
633 /*Please confirm the STM and design else and default.*/
638 /*Else and default design have not done.*/
639 /*Please confirm the STM and design else and default.*/
643 else if( g_stm_event == StmEvtNoDeactivate )
646 if( g_stm_category == StmCtgNoMap )
648 ZAPL_RestrictionModeOffs1e8();
652 /*Else and default design have not done.*/
653 /*Please confirm the STM and design else and default.*/
657 else if( g_stm_event == StmEvtNoUndo )
659 /*stt_prv_layer_apps_none*/
660 if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
662 ZAPL_RestrictionModeOffs1e8();
664 /*stt_prv_layer_apps_map_nml*/
665 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
667 ZAPL_RestrictionModeOffs1e0();
669 /*stt_prv_layer_apps_map_spl*/
670 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
672 ZAPL_RestrictionModeOffs0e15();
674 /*stt_prv_layer_apps_map_fll*/
675 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
677 ZAPL_RestrictionModeOffs0e2();
679 /*stt_prv_layer_apps_spl_nml*/
680 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplNml )
682 ZAPL_RestrictionModeOffs0e3();
684 /*stt_prv_layer_apps_spl_spl*/
685 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
687 ZAPL_RestrictionModeOffs0e18();
689 /*stt_prv_layer_apps_gen_nml*/
690 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
692 ZAPL_RestrictionModeOffs0e6();
694 /*stt_prv_layer_apps_sys_nml*/
695 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSysNml )
697 ZAPL_RestrictionModeOffs0e7();
701 /*Else and default design have not done.*/
702 /*Please confirm the STM and design else and default.*/
707 /*Else and default design have not done.*/
708 /*Please confirm the STM and design else and default.*/
713 /*Else and default design have not done.*/
714 /*Please confirm the STM and design else and default.*/
718 /****************************************/
719 /* Event appraisal function */
720 /* STM : RestrictionModeOff */
721 /* State : map_split( No 2 ) */
722 /****************************************/
723 static void ZAPL_RestrictionModeOffs2Event( void )
725 /*stt_restriction_mode_off*/
726 if( g_stm_crr_state.mode[StmModeNoRestrictionMode].state == StmRestrictionModeSttNoOff )
729 if( g_stm_event == StmEvtNoActivate )
732 if( g_stm_category == StmCtgNoMap )
735 if( g_stm_area == StmAreaNoNormal )
737 ZAPL_RestrictionModeOffs0e0();
740 else if( g_stm_area == StmAreaNoFullscreen )
742 ZAPL_RestrictionModeOffs0e2();
746 /*Else and default design have not done.*/
747 /*Please confirm the STM and design else and default.*/
751 else if( g_stm_category == StmCtgNoSplitable )
754 if( g_stm_area == StmAreaNoNormal )
756 ZAPL_RestrictionModeOffs2e3();
759 else if( g_stm_area == StmAreaNoSplitSub )
761 ZAPL_RestrictionModeOffs2e3();
765 /*Else and default design have not done.*/
766 /*Please confirm the STM and design else and default.*/
770 else if( g_stm_category == StmCtgNoGeneral )
773 if( g_stm_area == StmAreaNoNormal )
775 ZAPL_RestrictionModeOffs0e6();
779 /*Else and default design have not done.*/
780 /*Please confirm the STM and design else and default.*/
784 else if( g_stm_category == StmCtgNoSystem )
787 if( g_stm_area == StmAreaNoNormal )
789 ZAPL_RestrictionModeOffs0e7();
793 /*Else and default design have not done.*/
794 /*Please confirm the STM and design else and default.*/
798 else if( g_stm_category == StmCtgNoHomescreen )
801 if( g_stm_area == StmAreaNoFullscreen )
803 ZAPL_RestrictionModeOffs1e8();
807 /*Else and default design have not done.*/
808 /*Please confirm the STM and design else and default.*/
813 /*Else and default design have not done.*/
814 /*Please confirm the STM and design else and default.*/
818 else if( g_stm_event == StmEvtNoDeactivate )
821 if( g_stm_category == StmCtgNoMap )
823 ZAPL_RestrictionModeOffs0e3();
827 /*Else and default design have not done.*/
828 /*Please confirm the STM and design else and default.*/
832 else if( g_stm_event == StmEvtNoUndo )
834 /*stt_prv_layer_apps_none*/
835 if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
837 ZAPL_RestrictionModeOffs1e8();
839 /*stt_prv_layer_apps_map_nml*/
840 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
842 ZAPL_RestrictionModeOffs0e0();
844 /*stt_prv_layer_apps_map_spl*/
845 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
847 ZAPL_RestrictionModeOffs2e3();
849 /*stt_prv_layer_apps_map_fll*/
850 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
852 ZAPL_RestrictionModeOffs0e2();
854 /*stt_prv_layer_apps_spl_nml*/
855 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplNml )
857 ZAPL_RestrictionModeOffs0e3();
859 /*stt_prv_layer_apps_spl_spl*/
860 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
862 ZAPL_RestrictionModeOffs0e18();
864 /*stt_prv_layer_apps_gen_nml*/
865 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
867 ZAPL_RestrictionModeOffs0e6();
869 /*stt_prv_layer_apps_sys_nml*/
870 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSysNml )
872 ZAPL_RestrictionModeOffs0e7();
876 /*Else and default design have not done.*/
877 /*Please confirm the STM and design else and default.*/
882 /*Else and default design have not done.*/
883 /*Please confirm the STM and design else and default.*/
888 /*Else and default design have not done.*/
889 /*Please confirm the STM and design else and default.*/
893 /****************************************/
894 /* Event appraisal function */
895 /* STM : RestrictionModeOff */
896 /* State : map_fullscreen( No 3 ) */
897 /****************************************/
898 static void ZAPL_RestrictionModeOffs3Event( void )
900 /*stt_restriction_mode_off*/
901 if( g_stm_crr_state.mode[StmModeNoRestrictionMode].state == StmRestrictionModeSttNoOff )
904 if( g_stm_event == StmEvtNoActivate )
907 if( g_stm_category == StmCtgNoMap )
910 if( g_stm_area == StmAreaNoNormal )
912 ZAPL_RestrictionModeOffs0e0();
915 else if( g_stm_area == StmAreaNoFullscreen )
917 ZAPL_RestrictionModeOffs3e2();
921 /*Else and default design have not done.*/
922 /*Please confirm the STM and design else and default.*/
926 else if( g_stm_category == StmCtgNoSplitable )
929 if( g_stm_area == StmAreaNoNormal )
931 ZAPL_RestrictionModeOffs0e15();
935 /*Else and default design have not done.*/
936 /*Please confirm the STM and design else and default.*/
940 else if( g_stm_category == StmCtgNoGeneral )
943 if( g_stm_area == StmAreaNoNormal )
945 ZAPL_RestrictionModeOffs0e6();
949 /*Else and default design have not done.*/
950 /*Please confirm the STM and design else and default.*/
954 else if( g_stm_category == StmCtgNoSystem )
957 if( g_stm_area == StmAreaNoNormal )
959 ZAPL_RestrictionModeOffs0e7();
963 /*Else and default design have not done.*/
964 /*Please confirm the STM and design else and default.*/
968 else if( g_stm_category == StmCtgNoHomescreen )
971 if( g_stm_area == StmAreaNoFullscreen )
973 ZAPL_RestrictionModeOffs1e8();
977 /*Else and default design have not done.*/
978 /*Please confirm the STM and design else and default.*/
983 /*Else and default design have not done.*/
984 /*Please confirm the STM and design else and default.*/
988 else if( g_stm_event == StmEvtNoDeactivate )
991 if( g_stm_category == StmCtgNoMap )
993 ZAPL_RestrictionModeOffs1e8();
997 /*Else and default design have not done.*/
998 /*Please confirm the STM and design else and default.*/
1002 else if( g_stm_event == StmEvtNoUndo )
1004 /*stt_prv_layer_apps_none*/
1005 if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
1007 ZAPL_RestrictionModeOffs1e8();
1009 /*stt_prv_layer_apps_map_nml*/
1010 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
1012 ZAPL_RestrictionModeOffs0e0();
1014 /*stt_prv_layer_apps_map_spl*/
1015 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
1017 ZAPL_RestrictionModeOffs0e15();
1019 /*stt_prv_layer_apps_map_fll*/
1020 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
1022 ZAPL_RestrictionModeOffs3e2();
1024 /*stt_prv_layer_apps_spl_nml*/
1025 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplNml )
1027 ZAPL_RestrictionModeOffs0e3();
1029 /*stt_prv_layer_apps_spl_spl*/
1030 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
1032 ZAPL_RestrictionModeOffs0e18();
1034 /*stt_prv_layer_apps_gen_nml*/
1035 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
1037 ZAPL_RestrictionModeOffs0e6();
1039 /*stt_prv_layer_apps_sys_nml*/
1040 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSysNml )
1042 ZAPL_RestrictionModeOffs0e7();
1046 /*Else and default design have not done.*/
1047 /*Please confirm the STM and design else and default.*/
1052 /*Else and default design have not done.*/
1053 /*Please confirm the STM and design else and default.*/
1058 /*Else and default design have not done.*/
1059 /*Please confirm the STM and design else and default.*/
1063 /****************************************/
1064 /* Event appraisal function */
1065 /* STM : RestrictionModeOff */
1066 /* State : splitable_normal( No 4 ) */
1067 /****************************************/
1068 static void ZAPL_RestrictionModeOffs4Event( void )
1070 /*stt_restriction_mode_off*/
1071 if( g_stm_crr_state.mode[StmModeNoRestrictionMode].state == StmRestrictionModeSttNoOff )
1074 if( g_stm_event == StmEvtNoActivate )
1077 if( g_stm_category == StmCtgNoMap )
1080 if( g_stm_area == StmAreaNoNormal )
1082 ZAPL_RestrictionModeOffs0e15();
1085 else if( g_stm_area == StmAreaNoSplitMain )
1087 ZAPL_RestrictionModeOffs0e15();
1090 else if( g_stm_area == StmAreaNoFullscreen )
1092 ZAPL_RestrictionModeOffs0e2();
1096 /*Else and default design have not done.*/
1097 /*Please confirm the STM and design else and default.*/
1101 else if( g_stm_category == StmCtgNoSplitable )
1104 if( g_stm_area == StmAreaNoNormal )
1106 ZAPL_RestrictionModeOffs4e3();
1109 else if( g_stm_area == StmAreaNoSplitMain )
1111 ZAPL_RestrictionModeOffs0e18();
1114 else if( g_stm_area == StmAreaNoSplitSub )
1116 ZAPL_RestrictionModeOffs0e18();
1120 /*Else and default design have not done.*/
1121 /*Please confirm the STM and design else and default.*/
1125 else if( g_stm_category == StmCtgNoGeneral )
1128 if( g_stm_area == StmAreaNoNormal )
1130 ZAPL_RestrictionModeOffs0e6();
1134 /*Else and default design have not done.*/
1135 /*Please confirm the STM and design else and default.*/
1139 else if( g_stm_category == StmCtgNoSystem )
1142 if( g_stm_area == StmAreaNoNormal )
1144 ZAPL_RestrictionModeOffs0e7();
1148 /*Else and default design have not done.*/
1149 /*Please confirm the STM and design else and default.*/
1153 else if( g_stm_category == StmCtgNoHomescreen )
1156 if( g_stm_area == StmAreaNoFullscreen )
1158 ZAPL_RestrictionModeOffs1e8();
1162 /*Else and default design have not done.*/
1163 /*Please confirm the STM and design else and default.*/
1168 /*Else and default design have not done.*/
1169 /*Please confirm the STM and design else and default.*/
1173 else if( g_stm_event == StmEvtNoDeactivate )
1176 if( g_stm_category == StmCtgNoSplitable )
1178 ZAPL_RestrictionModeOffs1e8();
1182 /*Else and default design have not done.*/
1183 /*Please confirm the STM and design else and default.*/
1187 else if( g_stm_event == StmEvtNoUndo )
1189 /*stt_prv_layer_apps_none*/
1190 if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
1192 ZAPL_RestrictionModeOffs1e8();
1194 /*stt_prv_layer_apps_map_nml*/
1195 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
1197 ZAPL_RestrictionModeOffs0e0();
1199 /*stt_prv_layer_apps_map_spl*/
1200 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
1202 ZAPL_RestrictionModeOffs0e15();
1204 /*stt_prv_layer_apps_map_fll*/
1205 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
1207 ZAPL_RestrictionModeOffs0e2();
1209 /*stt_prv_layer_apps_spl_nml*/
1210 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplNml )
1212 ZAPL_RestrictionModeOffs4e3();
1214 /*stt_prv_layer_apps_spl_spl*/
1215 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
1217 ZAPL_RestrictionModeOffs0e18();
1219 /*stt_prv_layer_apps_gen_nml*/
1220 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
1222 ZAPL_RestrictionModeOffs0e6();
1224 /*stt_prv_layer_apps_sys_nml*/
1225 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSysNml )
1227 ZAPL_RestrictionModeOffs0e7();
1231 /*Else and default design have not done.*/
1232 /*Please confirm the STM and design else and default.*/
1237 /*Else and default design have not done.*/
1238 /*Please confirm the STM and design else and default.*/
1243 /*Else and default design have not done.*/
1244 /*Please confirm the STM and design else and default.*/
1248 /****************************************/
1249 /* Event appraisal function */
1250 /* STM : RestrictionModeOff */
1251 /* State : splitable_split( No 5 ) */
1252 /****************************************/
1253 static void ZAPL_RestrictionModeOffs5Event( void )
1255 /*stt_restriction_mode_off*/
1256 if( g_stm_crr_state.mode[StmModeNoRestrictionMode].state == StmRestrictionModeSttNoOff )
1259 if( g_stm_event == StmEvtNoActivate )
1262 if( g_stm_category == StmCtgNoMap )
1265 if( g_stm_area == StmAreaNoNormal )
1267 ZAPL_RestrictionModeOffs0e15();
1270 else if( g_stm_area == StmAreaNoSplitMain )
1272 ZAPL_RestrictionModeOffs0e15();
1275 else if( g_stm_area == StmAreaNoFullscreen )
1277 ZAPL_RestrictionModeOffs0e2();
1281 /*Else and default design have not done.*/
1282 /*Please confirm the STM and design else and default.*/
1286 else if( g_stm_category == StmCtgNoSplitable )
1289 if( g_stm_area == StmAreaNoNormal )
1291 ZAPL_RestrictionModeOffs5e3();
1294 else if( g_stm_area == StmAreaNoSplitMain )
1296 ZAPL_RestrictionModeOffs5e3();
1299 else if( g_stm_area == StmAreaNoSplitSub )
1301 ZAPL_RestrictionModeOffs5e3();
1305 /*Else and default design have not done.*/
1306 /*Please confirm the STM and design else and default.*/
1310 else if( g_stm_category == StmCtgNoGeneral )
1313 if( g_stm_area == StmAreaNoNormal )
1315 ZAPL_RestrictionModeOffs0e6();
1319 /*Else and default design have not done.*/
1320 /*Please confirm the STM and design else and default.*/
1324 else if( g_stm_category == StmCtgNoSystem )
1327 if( g_stm_area == StmAreaNoNormal )
1329 ZAPL_RestrictionModeOffs0e7();
1333 /*Else and default design have not done.*/
1334 /*Please confirm the STM and design else and default.*/
1338 else if( g_stm_category == StmCtgNoHomescreen )
1341 if( g_stm_area == StmAreaNoFullscreen )
1343 ZAPL_RestrictionModeOffs1e8();
1347 /*Else and default design have not done.*/
1348 /*Please confirm the STM and design else and default.*/
1353 /*Else and default design have not done.*/
1354 /*Please confirm the STM and design else and default.*/
1358 else if( g_stm_event == StmEvtNoDeactivate )
1361 if( g_stm_category == StmCtgNoSplitable )
1363 ZAPL_RestrictionModeOffs0e3();
1367 /*Else and default design have not done.*/
1368 /*Please confirm the STM and design else and default.*/
1372 else if( g_stm_event == StmEvtNoUndo )
1374 /*stt_prv_layer_apps_none*/
1375 if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
1377 ZAPL_RestrictionModeOffs1e8();
1379 /*stt_prv_layer_apps_map_nml*/
1380 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
1382 ZAPL_RestrictionModeOffs0e0();
1384 /*stt_prv_layer_apps_map_spl*/
1385 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
1387 ZAPL_RestrictionModeOffs0e15();
1389 /*stt_prv_layer_apps_map_fll*/
1390 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
1392 ZAPL_RestrictionModeOffs0e2();
1394 /*stt_prv_layer_apps_spl_nml*/
1395 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplNml )
1397 ZAPL_RestrictionModeOffs0e3();
1399 /*stt_prv_layer_apps_spl_spl*/
1400 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
1402 ZAPL_RestrictionModeOffs5e3();
1404 /*stt_prv_layer_apps_gen_nml*/
1405 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
1407 ZAPL_RestrictionModeOffs0e6();
1409 /*stt_prv_layer_apps_sys_nml*/
1410 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSysNml )
1412 ZAPL_RestrictionModeOffs0e7();
1416 /*Else and default design have not done.*/
1417 /*Please confirm the STM and design else and default.*/
1422 /*Else and default design have not done.*/
1423 /*Please confirm the STM and design else and default.*/
1428 /*Else and default design have not done.*/
1429 /*Please confirm the STM and design else and default.*/
1433 /****************************************/
1434 /* Event appraisal function */
1435 /* STM : RestrictionModeOff */
1436 /* State : general( No 6 ) */
1437 /****************************************/
1438 static void ZAPL_RestrictionModeOffs6Event( void )
1440 /*stt_restriction_mode_off*/
1441 if( g_stm_crr_state.mode[StmModeNoRestrictionMode].state == StmRestrictionModeSttNoOff )
1444 if( g_stm_event == StmEvtNoActivate )
1447 if( g_stm_category == StmCtgNoMap )
1450 if( g_stm_area == StmAreaNoNormal )
1452 ZAPL_RestrictionModeOffs0e0();
1455 else if( g_stm_area == StmAreaNoFullscreen )
1457 ZAPL_RestrictionModeOffs0e2();
1461 /*Else and default design have not done.*/
1462 /*Please confirm the STM and design else and default.*/
1466 else if( g_stm_category == StmCtgNoSplitable )
1469 if( g_stm_area == StmAreaNoNormal )
1471 ZAPL_RestrictionModeOffs0e3();
1475 /*Else and default design have not done.*/
1476 /*Please confirm the STM and design else and default.*/
1480 else if( g_stm_category == StmCtgNoGeneral )
1483 if( g_stm_area == StmAreaNoNormal )
1485 ZAPL_RestrictionModeOffs6e6();
1489 /*Else and default design have not done.*/
1490 /*Please confirm the STM and design else and default.*/
1494 else if( g_stm_category == StmCtgNoSystem )
1497 if( g_stm_area == StmAreaNoNormal )
1499 ZAPL_RestrictionModeOffs0e7();
1503 /*Else and default design have not done.*/
1504 /*Please confirm the STM and design else and default.*/
1508 else if( g_stm_category == StmCtgNoHomescreen )
1511 if( g_stm_area == StmAreaNoFullscreen )
1513 ZAPL_RestrictionModeOffs1e8();
1517 /*Else and default design have not done.*/
1518 /*Please confirm the STM and design else and default.*/
1523 /*Else and default design have not done.*/
1524 /*Please confirm the STM and design else and default.*/
1528 else if( g_stm_event == StmEvtNoDeactivate )
1531 if( g_stm_category == StmCtgNoGeneral )
1533 ZAPL_RestrictionModeOffs1e8();
1537 /*Else and default design have not done.*/
1538 /*Please confirm the STM and design else and default.*/
1542 else if( g_stm_event == StmEvtNoUndo )
1544 /*stt_prv_layer_apps_none*/
1545 if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
1547 ZAPL_RestrictionModeOffs1e8();
1549 /*stt_prv_layer_apps_map_nml*/
1550 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
1552 ZAPL_RestrictionModeOffs0e0();
1554 /*stt_prv_layer_apps_map_spl*/
1555 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
1557 ZAPL_RestrictionModeOffs0e15();
1559 /*stt_prv_layer_apps_map_fll*/
1560 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
1562 ZAPL_RestrictionModeOffs0e2();
1564 /*stt_prv_layer_apps_spl_nml*/
1565 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplNml )
1567 ZAPL_RestrictionModeOffs0e3();
1569 /*stt_prv_layer_apps_spl_spl*/
1570 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
1572 ZAPL_RestrictionModeOffs0e18();
1574 /*stt_prv_layer_apps_gen_nml*/
1575 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
1577 ZAPL_RestrictionModeOffs6e6();
1579 /*stt_prv_layer_apps_sys_nml*/
1580 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSysNml )
1582 ZAPL_RestrictionModeOffs0e7();
1586 /*Else and default design have not done.*/
1587 /*Please confirm the STM and design else and default.*/
1592 /*Else and default design have not done.*/
1593 /*Please confirm the STM and design else and default.*/
1598 /*Else and default design have not done.*/
1599 /*Please confirm the STM and design else and default.*/
1603 /****************************************/
1604 /* Event appraisal function */
1605 /* STM : RestrictionModeOff */
1606 /* State : system( No 7 ) */
1607 /****************************************/
1608 static void ZAPL_RestrictionModeOffs7Event( void )
1610 /*stt_restriction_mode_off*/
1611 if( g_stm_crr_state.mode[StmModeNoRestrictionMode].state == StmRestrictionModeSttNoOff )
1614 if( g_stm_event == StmEvtNoActivate )
1617 if( g_stm_category == StmCtgNoMap )
1620 if( g_stm_area == StmAreaNoNormal )
1622 ZAPL_RestrictionModeOffs0e0();
1625 else if( g_stm_area == StmAreaNoFullscreen )
1627 ZAPL_RestrictionModeOffs0e2();
1631 /*Else and default design have not done.*/
1632 /*Please confirm the STM and design else and default.*/
1636 else if( g_stm_category == StmCtgNoSplitable )
1639 if( g_stm_area == StmAreaNoNormal )
1641 ZAPL_RestrictionModeOffs0e3();
1645 /*Else and default design have not done.*/
1646 /*Please confirm the STM and design else and default.*/
1650 else if( g_stm_category == StmCtgNoGeneral )
1653 if( g_stm_area == StmAreaNoNormal )
1655 ZAPL_RestrictionModeOffs0e6();
1659 /*Else and default design have not done.*/
1660 /*Please confirm the STM and design else and default.*/
1664 else if( g_stm_category == StmCtgNoSystem )
1667 if( g_stm_area == StmAreaNoNormal )
1669 ZAPL_RestrictionModeOffs7e7();
1673 /*Else and default design have not done.*/
1674 /*Please confirm the STM and design else and default.*/
1678 else if( g_stm_category == StmCtgNoHomescreen )
1681 if( g_stm_area == StmAreaNoFullscreen )
1683 ZAPL_RestrictionModeOffs1e8();
1687 /*Else and default design have not done.*/
1688 /*Please confirm the STM and design else and default.*/
1693 /*Else and default design have not done.*/
1694 /*Please confirm the STM and design else and default.*/
1698 else if( g_stm_event == StmEvtNoDeactivate )
1701 if( g_stm_category == StmCtgNoSystem )
1703 ZAPL_RestrictionModeOffs1e8();
1707 /*Else and default design have not done.*/
1708 /*Please confirm the STM and design else and default.*/
1712 else if( g_stm_event == StmEvtNoUndo )
1714 /*stt_prv_layer_apps_none*/
1715 if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
1717 ZAPL_RestrictionModeOffs1e8();
1719 /*stt_prv_layer_apps_map_nml*/
1720 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
1722 ZAPL_RestrictionModeOffs0e0();
1724 /*stt_prv_layer_apps_map_spl*/
1725 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
1727 ZAPL_RestrictionModeOffs0e15();
1729 /*stt_prv_layer_apps_map_fll*/
1730 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
1732 ZAPL_RestrictionModeOffs0e2();
1734 /*stt_prv_layer_apps_spl_nml*/
1735 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplNml )
1737 ZAPL_RestrictionModeOffs0e3();
1739 /*stt_prv_layer_apps_spl_spl*/
1740 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
1742 ZAPL_RestrictionModeOffs0e18();
1744 /*stt_prv_layer_apps_gen_nml*/
1745 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
1747 ZAPL_RestrictionModeOffs0e6();
1749 /*stt_prv_layer_apps_sys_nml*/
1750 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSysNml )
1752 ZAPL_RestrictionModeOffs7e7();
1756 /*Else and default design have not done.*/
1757 /*Please confirm the STM and design else and default.*/
1762 /*Else and default design have not done.*/
1763 /*Please confirm the STM and design else and default.*/
1768 /*Else and default design have not done.*/
1769 /*Please confirm the STM and design else and default.*/
1773 /****************************************/
1774 /* Event appraisal function */
1775 /* STM : AppsLayer */
1776 /* State : restriction_mode_2_on( No 1 ) */
1777 /****************************************/
1778 static void ZAPL_AppsLayers1Event( void )
1780 /*stt_restriction_mode_off*/
1781 if( g_stm_crr_state.mode[StmModeNoRestrictionMode].state == StmRestrictionModeSttNoOff )
1783 stm_apl_event_restriction_mode_off();
1784 ZAPL_AppsLayers1e0();
1788 /*Else and default design have not done.*/
1789 /*Please confirm the STM and design else and default.*/
1793 /****************************************/
1794 /* Event appraisal function */
1795 /* STM : RestrictionModeOn */
1796 /* State : map( No 0 ) */
1797 /****************************************/
1798 static void ZAPL_RestrictionModeOns0Event( void )
1800 /*stt_restriction_mode_2_on*/
1801 if( g_stm_crr_state.mode[StmModeNoRestrictionMode].state == StmRestrictionModeSttNo2On )
1804 if( g_stm_event == StmEvtNoActivate )
1807 if( g_stm_category == StmCtgNoMap )
1810 if( g_stm_area == StmAreaNoFullscreen )
1812 ZAPL_RestrictionModeOns0e1();
1816 /*Else and default design have not done.*/
1817 /*Please confirm the STM and design else and default.*/
1822 /*Else and default design have not done.*/
1823 /*Please confirm the STM and design else and default.*/
1827 else if( g_stm_event == StmEvtNoUndo )
1829 /*stt_prv_layer_apps_map_nml*/
1830 if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
1832 ZAPL_RestrictionModeOns0e2();
1834 /*stt_prv_layer_apps_map_fll*/
1835 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
1837 ZAPL_RestrictionModeOns0e1();
1841 /*Else and default design have not done.*/
1842 /*Please confirm the STM and design else and default.*/
1847 /*Else and default design have not done.*/
1848 /*Please confirm the STM and design else and default.*/
1853 /*Else and default design have not done.*/
1854 /*Please confirm the STM and design else and default.*/
1858 /****************************************/
1859 /* Event appraisal function */
1860 /* STM : RestrictionModeOn */
1861 /* State : map_fullscreen( No 1 ) */
1862 /****************************************/
1863 static void ZAPL_RestrictionModeOns1Event( void )
1865 /*stt_restriction_mode_2_on*/
1866 if( g_stm_crr_state.mode[StmModeNoRestrictionMode].state == StmRestrictionModeSttNo2On )
1869 if( g_stm_event == StmEvtNoActivate )
1872 if( g_stm_category == StmCtgNoMap )
1875 if( g_stm_area == StmAreaNoNormal )
1877 ZAPL_RestrictionModeOns1e0();
1881 /*Else and default design have not done.*/
1882 /*Please confirm the STM and design else and default.*/
1887 /*Else and default design have not done.*/
1888 /*Please confirm the STM and design else and default.*/
1892 else if( g_stm_event == StmEvtNoUndo )
1894 /*stt_prv_layer_apps_map_nml*/
1895 if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
1897 ZAPL_RestrictionModeOns1e0();
1899 /*stt_prv_layer_apps_map_fll*/
1900 else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
1902 ZAPL_RestrictionModeOns1e3();
1906 /*Else and default design have not done.*/
1907 /*Please confirm the STM and design else and default.*/
1912 /*Else and default design have not done.*/
1913 /*Please confirm the STM and design else and default.*/
1918 /*Else and default design have not done.*/
1919 /*Please confirm the STM and design else and default.*/
1923 /****************************************/
1924 /* Event call function */
1925 /* STM : AppsLayer */
1926 /****************************************/
1927 void stm_apl_event_call( void )
1929 stm_apl_start_stm();
1930 switch( ZAPL_AppsLayerState[ZAPL_APPSLAYER] )
1932 case ZAPL_APPSLAYERS0:
1933 switch( ZAPL_AppsLayerState[ZAPL_APPSLAYERS0F] )
1935 case ZAPL_RESTRICTIONMODEOFFS0:
1936 ZAPL_RestrictionModeOffs0Event();
1938 case ZAPL_RESTRICTIONMODEOFFS1:
1939 ZAPL_RestrictionModeOffs1Event();
1941 case ZAPL_RESTRICTIONMODEOFFS2:
1942 ZAPL_RestrictionModeOffs2Event();
1944 case ZAPL_RESTRICTIONMODEOFFS3:
1945 ZAPL_RestrictionModeOffs3Event();
1947 case ZAPL_RESTRICTIONMODEOFFS4:
1948 ZAPL_RestrictionModeOffs4Event();
1950 case ZAPL_RESTRICTIONMODEOFFS5:
1951 ZAPL_RestrictionModeOffs5Event();
1953 case ZAPL_RESTRICTIONMODEOFFS6:
1954 ZAPL_RestrictionModeOffs6Event();
1956 case ZAPL_RESTRICTIONMODEOFFS7:
1957 ZAPL_RestrictionModeOffs7Event();
1960 /*Not accessible to this else (default).*/
1963 ZAPL_AppsLayers0Event();
1965 case ZAPL_APPSLAYERS1:
1966 switch( ZAPL_AppsLayerState[ZAPL_APPSLAYERS1F] )
1968 case ZAPL_RESTRICTIONMODEONS0:
1969 ZAPL_RestrictionModeOns0Event();
1971 case ZAPL_RESTRICTIONMODEONS1:
1972 ZAPL_RestrictionModeOns1Event();
1975 /*Not accessible to this else (default).*/
1978 ZAPL_AppsLayers1Event();
1981 /*Not accessible to this else (default).*/
1986 /****************************************/
1987 /* Initial function */
1988 /* STM : AppsLayer */
1989 /****************************************/
1990 void stm_apl_initialize( void )
1992 ZAPL_AppsLayerState[ZAPL_APPSLAYER] = ( uint8_t )ZAPL_APPSLAYERS0;
1993 ZAPL_AppsLayerState[ZAPL_APPSLAYERS0F] = ( uint8_t )ZAPL_RESTRICTIONMODEOFFS0;
1994 ZAPL_AppsLayerState[ZAPL_APPSLAYERS1F] = ( uint8_t )ZAPL_RESTRICTIONMODEONS0;
1995 ZAPL_AppsLayers0StateEntry();
1998 /****************************************/
1999 /* Terminate function */
2000 /* STM : AppsLayer */
2001 /****************************************/
2002 void ZAPL_AppsLayerTerminate( void )
2004 ZAPL_AppsLayerState[ZAPL_APPSLAYER] = ( uint8_t )ZAPL_APPSLAYERTERMINATE;