urcmask.c

来自「ngspice又一个电子CAD仿真软件代码.功能更全」· C语言 代码 · 共 51 行

C
51
字号
/**********Copyright 1990 Regents of the University of California.  All rights reserved.Author: 1987 Thomas L. Quarles**********//* *//* * This routine gives access to the internal model parameters * of Uniform distributed RC lines */#include "ngspice.h"#include "cktdefs.h"#include "devdefs.h"#include "ifsim.h"#include "urcdefs.h"#include "sperror.h"#include "suffix.h"/* ARGSUSED */intURCmAsk(CKTcircuit *ckt, GENmodel *inst, int which, IFvalue *value){    URCmodel *here = (URCmodel *)inst;    switch(which) {        case URC_MOD_K:            value->rValue = here->URCk;            return (OK);        case URC_MOD_FMAX:            value->rValue = here->URCfmax;            return (OK);        case URC_MOD_RPERL:            value->rValue = here->URCrPerL;            return (OK);        case URC_MOD_CPERL:            value->rValue = here->URCcPerL;            return (OK);        case URC_MOD_ISPERL:            value->rValue = here->URCisPerL;            return (OK);        case URC_MOD_RSPERL:            value->rValue = here->URCrsPerL;            return (OK);        default:            return (E_BADPARM);    }    /* NOTREACHED */}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?