X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fpolicy_manager%2Fstm%2Fzipc%2Fsrc%2FStateTransitionor%2FRestrictionMode%2FZREM_RestrictionMode_func.c;fp=src%2Fpolicy_manager%2Fstm%2Fzipc%2Fsrc%2FStateTransitionor%2FRestrictionMode%2FZREM_RestrictionMode_func.c;h=94807f8de9e7bfe70055ae1e8fcfca8a159113ae;hb=67f414f67ee22ddf40003d1be3fa1d0cb13deb8f;hp=0000000000000000000000000000000000000000;hpb=99b6f4d2fcd421d3a760a88a67e511fb6fc98068;p=apps%2Fagl-service-windowmanager-2017.git diff --git a/src/policy_manager/stm/zipc/src/StateTransitionor/RestrictionMode/ZREM_RestrictionMode_func.c b/src/policy_manager/stm/zipc/src/StateTransitionor/RestrictionMode/ZREM_RestrictionMode_func.c new file mode 100644 index 0000000..94807f8 --- /dev/null +++ b/src/policy_manager/stm/zipc/src/StateTransitionor/RestrictionMode/ZREM_RestrictionMode_func.c @@ -0,0 +1,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; +}