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

📄 inppname.c

📁 spice中支持多层次元件模型仿真的可单独运行的插件源码
💻 C
字号:
/**********Copyright 1990 Regents of the University of California.  All rights reserved.Author: 1985 Thomas L. Quarles**********/    /*     * INPpName()     *     *  Take a parameter by Name and set it on the specified device      */#include "spice.h"#include <stdio.h>#include "util.h"#include "cpdefs.h"#include "fteext.h"#include "ifsim.h"#include "iferrmsg.h"#include "suffix.h"intINPpName(parm,val,ckt,dev,fast)    char *parm;     /* the name of the parameter to set */    IFvalue *val;   /* the parameter union containing the value to set */    GENERIC *ckt;   /* the circuit this device is a member of */    int dev;        /* the device type code to the device being parsed */    GENERIC *fast;  /* direct pointer to device being parsed */{    int error;  /* int to store evaluate error return codes in */    int i;    for(i=0;i<(*(*(ft_sim->devices)[dev]).numInstanceParms);i++) {        if(strcmp(parm,                ((*(ft_sim->devices)[dev]).instanceParms[i].keyword))==0) {            error = (*(ft_sim->setInstanceParm))(ckt,fast, (*(ft_sim->                    devices)[dev]).instanceParms[i].id,val,(IFvalue*)NULL);            if(error) return(error);            break;        }    }    if(i==(*(*(ft_sim->devices)[dev]).numInstanceParms)) {        return(E_BADPARM);    }    return(OK);}

⌨️ 快捷键说明

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