aboutsummaryrefslogtreecommitdiffstats
path: root/policy_manager/stm/zipc/StateTransitionor/rse2/layer/apps/Zrse2_apps_rse2_apps_func.c
blob: 7ae2775c144650e55b3d0830251a678be6fab044 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/************************************************************/
/*     Zrse2_apps_rse2_apps_func.c                          */
/*     Function and variable source file                    */
/*     ZIPC Designer Version 1.2.1                          */
/************************************************************/
#include "../../../ZST_include.h"

/*************************************************************
    Function definition
*************************************************************/

/**
 *  stm_rse2_apps_initialize_variable
 */
void stm_rse2_apps_initialize_variable() {
    g_stm_prv_state.layer[StmLayerNoApps].state = StmLayoutNoGenNml;
    g_stm_prv_state.layer[StmLayerNoApps].changed = STM_FALSE;

    g_stm_crr_state.layer[StmLayerNoApps].state = StmLayoutNoGenNml;
    g_stm_crr_state.layer[StmLayerNoApps].changed = STM_FALSE;
}

/**
 *  stm_rse2_apps_start_stm
 */
void stm_rse2_apps_start_stm() {
    if (g_stm_event == StmEvtNoUndo) {
        // nop
    }
    else {
        g_stm_prv_state.layer[StmLayerNoApps].state = g_stm_crr_state.layer[StmLayerNoApps].state;
    }
    g_stm_crr_state.layer[StmLayerNoApps].changed = STM_FALSE;
}

/*
 * @name stm_rse2_apps_start_activity_none
 */
void stm_rse2_apps_start_activity_none() {
    g_stm_crr_state.layer[StmLayerNoApps].state = StmLayoutNoNone;
    g_stm_crr_state.layer[StmLayerNoApps].changed = STM_TRUE;
}

/**
 *  stm_rse2_apps_start_activity_general
 */
void stm_rse2_apps_start_activity_general(){
    g_stm_crr_state.layer[StmLayerNoApps].state = StmLayoutNoGenNml;
    g_stm_crr_state.layer[StmLayerNoApps].changed = STM_TRUE;
}