cktmodparam.c
来自「支持数字元件仿真的SPICE插件」· C语言 代码 · 共 40 行
C
40 行
/* * Copyright (c) 1985 Thomas L. Quarles */ /* CKTmodParam * attach the given parameter to the specified model in the given circuit */#include "prefix.h"#include <stdio.h>#include "CKTdefs.h"#include "IFsim.h"#include "util.h"#include "DEVdefs.h"#include "SPerror.h"#include "suffix.h"RCSID("CKTmodParam.c $Revision: 1.1 $ on $Date: 91/04/02 12:07:51 $")extern SPICEdev *DEVices[];/* ARGSUSED */intCKTmodParam(ckt,modfast,param,val,selector) GENERIC *ckt; GENERIC *modfast; int param; IFvalue *val; IFvalue *selector;{ register int type = ((GENmodel *)modfast)->GENmodType; if (((*DEVices[type]).DEVmodParam)) { return(((*((*DEVices[type]).DEVmodParam)) (param,val, (GENmodel *)modfast))); } else { return(E_BADPARM); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?