diff options
Diffstat (limited to 'policy_manager/stm/zipc/StateTransitionor/rse1/layer/apps/Zrse1_apps_rse1_apps.c')
-rwxr-xr-x | policy_manager/stm/zipc/StateTransitionor/rse1/layer/apps/Zrse1_apps_rse1_apps.c | 179 |
1 files changed, 179 insertions, 0 deletions
diff --git a/policy_manager/stm/zipc/StateTransitionor/rse1/layer/apps/Zrse1_apps_rse1_apps.c b/policy_manager/stm/zipc/StateTransitionor/rse1/layer/apps/Zrse1_apps_rse1_apps.c new file mode 100755 index 0000000..09851de --- /dev/null +++ b/policy_manager/stm/zipc/StateTransitionor/rse1/layer/apps/Zrse1_apps_rse1_apps.c @@ -0,0 +1,179 @@ +/************************************************************/ +/* Zrse1_apps_rse1_apps.c */ +/* rse1_apps State transition model source file */ +/* ZIPC Designer Version 1.2.1 */ +/************************************************************/ +#include "../../../ZST_include.h" + +/* State management variable */ +static uint8_t Zrse1_apps_rse1_appsState[ZRSE1_APPS_RSE1_APPSSTATENOMAX]; + +static void Zrse1_apps_rse1_appss0e0( void ); +static void Zrse1_apps_rse1_appss1e0( void ); +static void Zrse1_apps_rse1_appss1e1( void ); +static void Zrse1_apps_rse1_appss0Event( void ); +static void Zrse1_apps_rse1_appss1Event( void ); + +/****************************************/ +/* Action function */ +/* STM : rse1_apps */ +/* State : none( No 0 ) */ +/* Event : ara_normal( No 0 ) */ +/****************************************/ +static void Zrse1_apps_rse1_appss0e0( void ) +{ + Zrse1_apps_rse1_appsState[ZRSE1_APPS_RSE1_APPS] = ( uint8_t )ZRSE1_APPS_RSE1_APPSS1; + stm_rse1_apps_start_activity_general(); +} + +/****************************************/ +/* Action function */ +/* STM : rse1_apps */ +/* State : general( No 1 ) */ +/* Event : ara_normal( No 0 ) */ +/****************************************/ +static void Zrse1_apps_rse1_appss1e0( void ) +{ + stm_rse1_apps_start_activity_general(); +} + +/****************************************/ +/* Action function */ +/* STM : rse1_apps */ +/* State : general( No 1 ) */ +/* Event : ctg_receiver( No 1 ) */ +/****************************************/ +static void Zrse1_apps_rse1_appss1e1( void ) +{ + Zrse1_apps_rse1_appsState[ZRSE1_APPS_RSE1_APPS] = ( uint8_t )ZRSE1_APPS_RSE1_APPSS0; + stm_rse1_apps_start_activity_none(); +} + +/****************************************/ +/* Event appraisal function */ +/* STM : rse1_apps */ +/* State : none( No 0 ) */ +/****************************************/ +static void Zrse1_apps_rse1_appss0Event( void ) +{ + /*evt_activate*/ + if( g_stm_event == StmEvtNoActivate ) + { + /*ctg_receiver*/ + if( g_stm_category == StmCtgNoReceiver ) + { + /*ara_normal*/ + if( g_stm_area == StmAreaNoNormal ) + { + Zrse1_apps_rse1_appss0e0(); + } + else + { + /*Else and default design have not done.*/ + /*Please confirm the STM and design else and default.*/ + } + } + else + { + /*Else and default design have not done.*/ + /*Please confirm the STM and design else and default.*/ + } + } + else + { + /*Else and default design have not done.*/ + /*Please confirm the STM and design else and default.*/ + } +} + +/****************************************/ +/* Event appraisal function */ +/* STM : rse1_apps */ +/* State : general( No 1 ) */ +/****************************************/ +static void Zrse1_apps_rse1_appss1Event( void ) +{ + /*evt_activate*/ + if( g_stm_event == StmEvtNoActivate ) + { + /*ctg_receiver*/ + if( g_stm_category == StmCtgNoReceiver ) + { + /*ara_normal*/ + if( g_stm_area == StmAreaNoNormal ) + { + Zrse1_apps_rse1_appss1e0(); + } + else + { + /*Else and default design have not done.*/ + /*Please confirm the STM and design else and default.*/ + } + } + else + { + /*Else and default design have not done.*/ + /*Please confirm the STM and design else and default.*/ + } + } + /*evt_deactivate*/ + else if( g_stm_event == StmEvtNoDeactivate ) + { + /*ctg_receiver*/ + if( g_stm_category == StmCtgNoReceiver ) + { + Zrse1_apps_rse1_appss1e1(); + } + else + { + /*Else and default design have not done.*/ + /*Please confirm the STM and design else and default.*/ + } + } + else + { + /*Else and default design have not done.*/ + /*Please confirm the STM and design else and default.*/ + } +} + +/****************************************/ +/* Event call function */ +/* STM : rse1_apps */ +/****************************************/ +void stm_rse1_apps_event_call( void ) +{ + stm_rse1_apps_start_stm(); + switch( Zrse1_apps_rse1_appsState[ZRSE1_APPS_RSE1_APPS] ) + { + case ZRSE1_APPS_RSE1_APPSS0: + Zrse1_apps_rse1_appss0Event(); + break; + case ZRSE1_APPS_RSE1_APPSS1: + Zrse1_apps_rse1_appss1Event(); + break; + default: + /*Not accessible to this else (default).*/ + break; + } +} + +/****************************************/ +/* Initial function */ +/* STM : rse1_apps */ +/****************************************/ +void stm_rse1_apps_initialize( void ) +{ + Zrse1_apps_rse1_appsState[ZRSE1_APPS_RSE1_APPS] = ( uint8_t )ZRSE1_APPS_RSE1_APPSS0; + stm_rse1_apps_start_activity_none(); +} + +/****************************************/ +/* Terminate function */ +/* STM : rse1_apps */ +/****************************************/ +void Zrse1_apps_rse1_appsTerminate( void ) +{ + Zrse1_apps_rse1_appsState[ZRSE1_APPS_RSE1_APPS] = ( uint8_t )ZRSE1_APPS_RSE1_APPSTERMINATE; +} + |