public void SetParams() { if (m_inst != null) { m_inst.SetParamExpr("SchedulingMode", SchedulingMode.ToString()); m_inst.SetParamExpr("RoundRobinTimeout", RoundRobinTimeout.ToString()); m_inst.SetParamExpr("FreeStackLimit", FreeStackLimit.ToString()); m_inst.SetParamExpr("StackErrorMacro", StackErrorMacro); m_inst.SetParamExpr("StackCheckEnable", StackCheckEnable.ToString()); m_inst.SetParamExpr("StackErrorMacroEn", StackErrorMacroEn.ToString()); m_inst.SetParamExpr("LongUsrIntEnable", LongUsrIntEnable.ToString()); } }
public void SetParam(string paramName) { if (m_inst != null) { switch (paramName) { case "SchedulingMode": m_inst.SetParamExpr("SchedulingMode", SchedulingMode.ToString()); break; case "RoundRobinTimeout": m_inst.SetParamExpr("RoundRobinTimeout", RoundRobinTimeout.ToString()); break; case "FreeStackLimit": m_inst.SetParamExpr("FreeStackLimit", FreeStackLimit.ToString()); break; case "StackErrorMacro": m_inst.SetParamExpr("StackErrorMacro", StackErrorMacro); break; case "StackCheckEnable": m_inst.SetParamExpr("StackCheckEnable", StackCheckEnable.ToString()); break; case "StackErrorMacroEn": m_inst.SetParamExpr("StackErrorMacroEn", StackErrorMacroEn.ToString()); break; case "LongUsrIntEnable": m_inst.SetParamExpr("LongUsrIntEnable", LongUsrIntEnable.ToString()); break; default: break; } } }