aboutsummaryrefslogtreecommitdiffstats
path: root/policy_manager/stm/zipc/StateTransitionor/OnScreenlayer/ZOSL_OslMain.c
diff options
context:
space:
mode:
Diffstat (limited to 'policy_manager/stm/zipc/StateTransitionor/OnScreenlayer/ZOSL_OslMain.c')
-rwxr-xr-x[-rw-r--r--]policy_manager/stm/zipc/StateTransitionor/OnScreenlayer/ZOSL_OslMain.c106
1 files changed, 30 insertions, 76 deletions
diff --git a/policy_manager/stm/zipc/StateTransitionor/OnScreenlayer/ZOSL_OslMain.c b/policy_manager/stm/zipc/StateTransitionor/OnScreenlayer/ZOSL_OslMain.c
index 53a50e1..910df6c 100644..100755
--- a/policy_manager/stm/zipc/StateTransitionor/OnScreenlayer/ZOSL_OslMain.c
+++ b/policy_manager/stm/zipc/StateTransitionor/OnScreenlayer/ZOSL_OslMain.c
@@ -1,7 +1,7 @@
/************************************************************/
/* ZOSL_OslMain.c */
/* OslMain State transition model source file */
-/* ZIPC Designer Version 1.2.0 */
+/* ZIPC Designer Version 1.2.1 */
/************************************************************/
#include "../ZST_include.h"
@@ -18,11 +18,11 @@ static void ZOSL_OslRestOffs0e1( void );
static void ZOSL_OslRestOffs0e4( void );
static void ZOSL_OslRestOffs1e0( void );
static void ZOSL_OslRestOffs1e2( void );
-static void ZOSL_OslRestOffs2e1( void );
+static void ZOSL_OslRestOffs2e6( void );
static void ZOSL_OslRestOns0e0( void );
static void ZOSL_OslRestOns0e2( void );
-static void ZOSL_OslRestOns1e0( void );
static void ZOSL_OslRestOns1e1( void );
+static void ZOSL_OslRestOns1e3( void );
static void ZOSL_OslMains0Event( void );
static void ZOSL_OslRestOffs0Event( void );
static void ZOSL_OslRestOffs1Event( void );
@@ -58,7 +58,7 @@ static void ZOSL_OslMains0StateEntry( void )
/****************************************/
/* State start activity function */
/* STM : OslMain */
-/* State : restriction_mode_2_on( No 1 ) */
+/* State : restriction_mode_on( No 1 )*/
/****************************************/
static void ZOSL_OslMains1StateEntry( void )
{
@@ -105,7 +105,7 @@ static void ZOSL_OslMains0e2( void )
/****************************************/
/* Action function */
/* STM : OslMain */
-/* State : restriction_mode_2_on( No 1 ) */
+/* State : restriction_mode_on( No 1 )*/
/* Event : stt_restriction_mode_off( No 0 ) */
/****************************************/
static void ZOSL_OslMains1e0( void )
@@ -176,9 +176,9 @@ static void ZOSL_OslRestOffs1e2( void )
/* Action function */
/* STM : OslRestOff */
/* State : system_alert( No 2 ) */
-/* Event : ara_onscreen( No 1 ) */
+/* Event : stt_prv_layer_on_screen_sys_alt( No 6 ) */
/****************************************/
-static void ZOSL_OslRestOffs2e1( void )
+static void ZOSL_OslRestOffs2e6( void )
{
stm_osl_start_activity_system_alert();
}
@@ -210,23 +210,23 @@ static void ZOSL_OslRestOns0e2( void )
/* Action function */
/* STM : OslRestOn */
/* State : system_alert( No 1 ) */
-/* Event : ara_onscreen( No 0 ) */
+/* Event : ctg_systemalert( No 1 ) */
/****************************************/
-static void ZOSL_OslRestOns1e0( void )
+static void ZOSL_OslRestOns1e1( void )
{
- stm_osl_start_activity_system_alert();
+ ZOSL_OslMainState[ZOSL_OSLMAINS1F] = ( uint8_t )ZOSL_OSLRESTONS0;
+ stm_osl_start_activity_none();
}
/****************************************/
/* Action function */
/* STM : OslRestOn */
/* State : system_alert( No 1 ) */
-/* Event : ctg_systemalert( No 1 ) */
+/* Event : stt_prv_layer_on_screen_sys_alt( No 3 ) */
/****************************************/
-static void ZOSL_OslRestOns1e1( void )
+static void ZOSL_OslRestOns1e3( void )
{
- ZOSL_OslMainState[ZOSL_OSLMAINS1F] = ( uint8_t )ZOSL_OSLRESTONS0;
- stm_osl_start_activity_none();
+ stm_osl_start_activity_system_alert();
}
/****************************************/
@@ -236,10 +236,10 @@ static void ZOSL_OslRestOns1e1( void )
/****************************************/
static void ZOSL_OslMains0Event( void )
{
- /*stt_restriction_mode_2_on*/
- if( g_stm_crr_state.mode[StmModeNoRestrictionMode].state == StmRestrictionModeSttNo2On )
+ /*stt_restriction_mode_on*/
+ if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOn )
{
- stm_rel_event_restriction_mode_2_on();
+ stm_rel_event_restriction_mode_on();
/*stt_crr_layer_on_screen_pop*/
if( g_stm_crr_state.layer[StmLayerNoOnScreen].state == StmLayoutNoPopUp )
{
@@ -271,7 +271,7 @@ static void ZOSL_OslMains0Event( void )
static void ZOSL_OslRestOffs0Event( void )
{
/*stt_restriction_mode_off*/
- if( g_stm_crr_state.mode[StmModeNoRestrictionMode].state == StmRestrictionModeSttNoOff )
+ if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOff )
{
/*evt_activate*/
if( g_stm_event == StmEvtNoActivate )
@@ -355,7 +355,7 @@ static void ZOSL_OslRestOffs0Event( void )
static void ZOSL_OslRestOffs1Event( void )
{
/*stt_restriction_mode_off*/
- if( g_stm_crr_state.mode[StmModeNoRestrictionMode].state == StmRestrictionModeSttNoOff )
+ if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOff )
{
/*evt_activate*/
if( g_stm_event == StmEvtNoActivate )
@@ -453,33 +453,10 @@ static void ZOSL_OslRestOffs1Event( void )
static void ZOSL_OslRestOffs2Event( void )
{
/*stt_restriction_mode_off*/
- if( g_stm_crr_state.mode[StmModeNoRestrictionMode].state == StmRestrictionModeSttNoOff )
+ if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOff )
{
- /*evt_activate*/
- if( g_stm_event == StmEvtNoActivate )
- {
- /*ctg_systemalert*/
- if( g_stm_category == StmCtgNoSystemAlert )
- {
- /*ara_onscreen*/
- if( g_stm_area == StmAreaNoOnScreen )
- {
- ZOSL_OslRestOffs2e1();
- }
- 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 )
+ if( g_stm_event == StmEvtNoDeactivate )
{
/*ctg_systemalert*/
if( g_stm_category == StmCtgNoSystemAlert )
@@ -508,7 +485,7 @@ static void ZOSL_OslRestOffs2Event( void )
/*stt_prv_layer_on_screen_sys_alt*/
else if( g_stm_prv_state.layer[StmLayerNoOnScreen].state == StmLayoutNoSysAlt )
{
- ZOSL_OslRestOffs2e1();
+ ZOSL_OslRestOffs2e6();
}
else
{
@@ -532,12 +509,12 @@ static void ZOSL_OslRestOffs2Event( void )
/****************************************/
/* Event appraisal function */
/* STM : OslMain */
-/* State : restriction_mode_2_on( No 1 ) */
+/* State : restriction_mode_on( No 1 )*/
/****************************************/
static void ZOSL_OslMains1Event( void )
{
/*stt_restriction_mode_off*/
- if( g_stm_crr_state.mode[StmModeNoRestrictionMode].state == StmRestrictionModeSttNoOff )
+ if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOff )
{
stm_rel_event_restriction_mode_off();
ZOSL_OslMains1e0();
@@ -556,8 +533,8 @@ static void ZOSL_OslMains1Event( void )
/****************************************/
static void ZOSL_OslRestOns0Event( void )
{
- /*stt_restriction_mode_2_on*/
- if( g_stm_crr_state.mode[StmModeNoRestrictionMode].state == StmRestrictionModeSttNo2On )
+ /*stt_restriction_mode_on*/
+ if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOn )
{
/*evt_activate*/
if( g_stm_event == StmEvtNoActivate )
@@ -621,34 +598,11 @@ static void ZOSL_OslRestOns0Event( void )
/****************************************/
static void ZOSL_OslRestOns1Event( void )
{
- /*stt_restriction_mode_2_on*/
- if( g_stm_crr_state.mode[StmModeNoRestrictionMode].state == StmRestrictionModeSttNo2On )
+ /*stt_restriction_mode_on*/
+ if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOn )
{
- /*evt_activate*/
- if( g_stm_event == StmEvtNoActivate )
- {
- /*ctg_systemalert*/
- if( g_stm_category == StmCtgNoSystemAlert )
- {
- /*ara_onscreen*/
- if( g_stm_area == StmAreaNoOnScreen )
- {
- ZOSL_OslRestOns1e0();
- }
- 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 )
+ if( g_stm_event == StmEvtNoDeactivate )
{
/*ctg_systemalert*/
if( g_stm_category == StmCtgNoSystemAlert )
@@ -672,7 +626,7 @@ static void ZOSL_OslRestOns1Event( void )
/*stt_prv_layer_on_screen_sys_alt*/
else if( g_stm_prv_state.layer[StmLayerNoOnScreen].state == StmLayoutNoSysAlt )
{
- ZOSL_OslRestOns1e0();
+ ZOSL_OslRestOns1e3();
}
else
{