1 /************************************************************/
2 /* Zhud_near_apps_hud_near_apps.c */
3 /* hud_near_apps State transition model source file */
4 /* ZIPC Designer Version 1.2.1 */
5 /************************************************************/
6 #include "../../../ZST_include.h"
8 /* State management variable */
9 static uint8_t Zhud_near_apps_hud_near_appsState[ZHUD_NEAR_APPS_HUD_NEAR_APPSSTATENOMAX];
11 static void Zhud_near_apps_hud_near_appss0e0( void );
12 static void Zhud_near_apps_hud_near_appss1e0( void );
13 static void Zhud_near_apps_hud_near_appss1e1( void );
14 static void Zhud_near_apps_hud_near_appss0Event( void );
15 static void Zhud_near_apps_hud_near_appss1Event( void );
17 /****************************************/
19 /* STM : hud_near_apps */
20 /* State : none( No 0 ) */
21 /* Event : ara_upper_left( No 0 ) */
22 /****************************************/
23 static void Zhud_near_apps_hud_near_appss0e0( void )
25 Zhud_near_apps_hud_near_appsState[ZHUD_NEAR_APPS_HUD_NEAR_APPS] = ( uint8_t )ZHUD_NEAR_APPS_HUD_NEAR_APPSS1;
26 stm_hud_near_apps_start_activity_upper_left();
29 /****************************************/
31 /* STM : hud_near_apps */
32 /* State : upper_left( No 1 ) */
33 /* Event : ara_upper_left( No 0 ) */
34 /****************************************/
35 static void Zhud_near_apps_hud_near_appss1e0( void )
37 stm_hud_near_apps_start_activity_upper_left();
40 /****************************************/
42 /* STM : hud_near_apps */
43 /* State : upper_left( No 1 ) */
44 /* Event : ctg_receiver2( No 1 ) */
45 /****************************************/
46 static void Zhud_near_apps_hud_near_appss1e1( void )
48 Zhud_near_apps_hud_near_appsState[ZHUD_NEAR_APPS_HUD_NEAR_APPS] = ( uint8_t )ZHUD_NEAR_APPS_HUD_NEAR_APPSS0;
49 stm_hud_near_apps_start_activity_none();
52 /****************************************/
53 /* Event appraisal function */
54 /* STM : hud_near_apps */
55 /* State : none( No 0 ) */
56 /****************************************/
57 static void Zhud_near_apps_hud_near_appss0Event( void )
60 if( g_stm_event == StmEvtNoActivate )
63 if( g_stm_category == StmCtgNoReceiver2 )
66 if( g_stm_area == StmAreaNoUpperLeft )
68 Zhud_near_apps_hud_near_appss0e0();
72 /*Else and default design have not done.*/
73 /*Please confirm the STM and design else and default.*/
78 /*Else and default design have not done.*/
79 /*Please confirm the STM and design else and default.*/
84 /*Else and default design have not done.*/
85 /*Please confirm the STM and design else and default.*/
89 /****************************************/
90 /* Event appraisal function */
91 /* STM : hud_near_apps */
92 /* State : upper_left( No 1 ) */
93 /****************************************/
94 static void Zhud_near_apps_hud_near_appss1Event( void )
97 if( g_stm_event == StmEvtNoActivate )
100 if( g_stm_category == StmCtgNoReceiver2 )
103 if( g_stm_area == StmAreaNoUpperLeft )
105 Zhud_near_apps_hud_near_appss1e0();
109 /*Else and default design have not done.*/
110 /*Please confirm the STM and design else and default.*/
115 /*Else and default design have not done.*/
116 /*Please confirm the STM and design else and default.*/
120 else if( g_stm_event == StmEvtNoDeactivate )
123 if( g_stm_category == StmCtgNoReceiver2 )
125 Zhud_near_apps_hud_near_appss1e1();
129 /*Else and default design have not done.*/
130 /*Please confirm the STM and design else and default.*/
135 /*Else and default design have not done.*/
136 /*Please confirm the STM and design else and default.*/
140 /****************************************/
141 /* Event call function */
142 /* STM : hud_near_apps */
143 /****************************************/
144 void stm_hud_near_apps_event_call( void )
146 stm_hud_near_apps_start_stm();
147 switch( Zhud_near_apps_hud_near_appsState[ZHUD_NEAR_APPS_HUD_NEAR_APPS] )
149 case ZHUD_NEAR_APPS_HUD_NEAR_APPSS0:
150 Zhud_near_apps_hud_near_appss0Event();
152 case ZHUD_NEAR_APPS_HUD_NEAR_APPSS1:
153 Zhud_near_apps_hud_near_appss1Event();
156 /*Not accessible to this else (default).*/
161 /****************************************/
162 /* Initial function */
163 /* STM : hud_near_apps */
164 /****************************************/
165 void stm_hud_near_apps_initialize( void )
167 Zhud_near_apps_hud_near_appsState[ZHUD_NEAR_APPS_HUD_NEAR_APPS] = ( uint8_t )ZHUD_NEAR_APPS_HUD_NEAR_APPSS0;
168 stm_hud_near_apps_start_activity_none();
171 /****************************************/
172 /* Terminate function */
173 /* STM : hud_near_apps */
174 /****************************************/
175 void Zhud_near_apps_hud_near_appsTerminate( void )
177 Zhud_near_apps_hud_near_appsState[ZHUD_NEAR_APPS_HUD_NEAR_APPS] = ( uint8_t )ZHUD_NEAR_APPS_HUD_NEAR_APPSTERMINATE;