blob: 94807f8de9e7bfe70055ae1e8fcfca8a159113ae (
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
51
52
53
|
/************************************************************/
/* ZREM_RestrictionMode_func.c */
/* Function and variable source file */
/* ZIPC Designer Version 1.2.0 */
/************************************************************/
#include "../ZST_include.h"
/*************************************************************
Function definition
*************************************************************/
/*
* @name stm_rem_start_activity_restriction_mode_1_on
*/
void stm_rem_start_activity_restriction_mode_1_on() {
g_stm_crr_state.mode[StmModeNoRestrictionMode].state = StmRestrictionModeSttNo1On;
g_stm_crr_state.mode[StmModeNoRestrictionMode].changed = STM_TRUE;
}
/*
* @name stm_rem_start_activity_restriction_mode_2_on
*/
void stm_rem_start_activity_restriction_mode_2_on() {
g_stm_crr_state.mode[StmModeNoRestrictionMode].state = StmRestrictionModeSttNo2On;
g_stm_crr_state.mode[StmModeNoRestrictionMode].changed = STM_TRUE;
}
/*
* @name stm_rem_start_activity_restriction_mode_off
*/
void stm_rem_start_activity_restriction_mode_off() {
g_stm_crr_state.mode[StmModeNoRestrictionMode].state = StmRestrictionModeSttNoOff;
g_stm_crr_state.mode[StmModeNoRestrictionMode].changed = STM_TRUE;
}
/*
* @name stm_rem_initialize_variable
*/
void stm_rem_initialize_variable() {
g_stm_prv_state.mode[StmModeNoRestrictionMode].state = StmRestrictionModeSttNoOff;
g_stm_prv_state.mode[StmModeNoRestrictionMode].changed = STM_FALSE;
g_stm_crr_state.mode[StmModeNoRestrictionMode].state = StmRestrictionModeSttNoOff;
g_stm_crr_state.mode[StmModeNoRestrictionMode].changed = STM_FALSE;
}
/*
* @name stm_rem_start_stm
*/
void stm_rem_start_stm() {
g_stm_prv_state.mode[StmModeNoRestrictionMode].state = g_stm_crr_state.mode[StmModeNoRestrictionMode].state;
g_stm_crr_state.mode[StmModeNoRestrictionMode].changed = STM_FALSE;
}
|