urcmask.c

来自「spice中支持多层次元件模型仿真的可单独运行的插件源码」· C语言 代码 · 共 56 行

C
56
字号
/**********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 "spice.h"#include <stdio.h>#include "cktdefs.h"#include "devdefs.h"#include "ifsim.h"#include "urcdefs.h"#include "sperror.h"#include "suffix.h"/* ARGSUSED */intURCmAsk(ckt,inst,which,value)    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 + -
显示快捷键?