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

📄 jfet2par.c

📁 ngspice又一个电子CAD仿真软件代码.功能更全
💻 C
字号:
/**********based on jfetpar.cCopyright 1990 Regents of the University of California.  All rights reserved.Author: 1985 Thomas L. QuarlesModified to jfet2 for PS model definition ( Anthony E. Parker )   Copyright 1994  Macquarie University, Sydney Australia.**********//* */#include "ngspice.h"#include "const.h"#include "ifsim.h"#include "jfet2defs.h"#include "sperror.h"#include "suffix.h"/* ARGSUSED */intJFET2param(int param, IFvalue *value, GENinstance *inst, IFvalue *select){    JFET2instance *here = (JFET2instance *)inst;    switch(param) {        case JFET2_TEMP:            here->JFET2temp = value->rValue+CONSTCtoK;            here->JFET2tempGiven = TRUE;            break;        case JFET2_DTEMP:            here->JFET2temp = value->rValue;            here->JFET2tempGiven = TRUE;            break;        case JFET2_AREA:            here->JFET2area = value->rValue;            here->JFET2areaGiven = TRUE;            break;         case JFET2_M:            here->JFET2m = value->rValue;            here->JFET2mGiven = TRUE;            break;        case JFET2_IC_VDS:            here->JFET2icVDS = value->rValue;            here->JFET2icVDSGiven = TRUE;            break;        case JFET2_IC_VGS:            here->JFET2icVGS = value->rValue;            here->JFET2icVGSGiven = TRUE;            break;        case JFET2_OFF:            here->JFET2off = value->iValue;            break;        case JFET2_IC:            switch(value->v.numValue) {                case 2:                    here->JFET2icVGS = *(value->v.vec.rVec+1);                    here->JFET2icVGSGiven = TRUE;                case 1:                    here->JFET2icVDS = *(value->v.vec.rVec);                    here->JFET2icVDSGiven = TRUE;                    break;                default:                    return(E_BADPARM);            }            break;        default:            return(E_BADPARM);    }    return(OK);}

⌨️ 快捷键说明

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