⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 urcmask.c

📁 spice中支持多层次元件模型仿真的可单独运行的插件源码
💻 C
字号:
/**********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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -