aboutsummaryrefslogtreecommitdiffstats
path: root/policy_manager/stm/zipc/stm_master_remote.c
blob: d63cba126a0371f4b3ddc11cc93c6eb342d4510f (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
#include "./StateTransitionor/ZST_include.h"

void stm_mst_rmt_start_activity_none() {
    g_stm_crr_state.layer[StmLayerNoRemote].state = StmLayoutNoNone;
    g_stm_crr_state.layer[StmLayerNoRemote].changed = STM_TRUE;
}

void stm_mst_rmt_start_activity_tbt() {
    g_stm_crr_state.layer[StmLayerNoRemote].state = StmLayoutNoRmtTbt;
    g_stm_crr_state.layer[StmLayerNoRemote].changed = STM_TRUE;
}

void stm_mst_rmt_initialize_valiable() {
	g_stm_prv_state.layer[StmLayerNoRemote].state = StmLayoutNoNone;
	g_stm_prv_state.layer[StmLayerNoRemote].changed = STM_FALSE;

	g_stm_crr_state.layer[StmLayerNoRemote].state = StmLayoutNoNone;
	g_stm_crr_state.layer[StmLayerNoRemote].changed = STM_FALSE;
}

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