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

📄 hfetparam.c

📁 ngspice又一个电子CAD仿真软件代码.功能更全
💻 C
字号:
/**********Imported from MacSpice3f4 - Antony WilsonModified: Paolo Nenzi**********/#include "ngspice.h"#include "ifsim.h"#include "hfetdefs.h"#include "sperror.h"#include "suffix.h"/* ARGSUSED */intHFETAparam(int param, IFvalue *value, GENinstance *inst, IFvalue *select){    HFETAinstance *here = (HFETAinstance*)inst;    switch(param) {        case HFETA_LENGTH:            here->HFETAlength = value->rValue;            here->HFETAlengthGiven = TRUE;            break;        case HFETA_WIDTH:            here->HFETAwidth = value->rValue;            here->HFETAwidthGiven = TRUE;            break;        case HFETA_M:            here->HFETAm = value->rValue;            here->HFETAmGiven = TRUE;            break;        case HFETA_IC_VDS:            here->HFETAicVDS = value->rValue;            here->HFETAicVDSGiven = TRUE;            break;        case HFETA_IC_VGS:            here->HFETAicVGS = value->rValue;            here->HFETAicVGSGiven = TRUE;            break;        case HFETA_OFF:            here->HFETAoff = value->iValue;            break;        case HFETA_IC:            switch(value->v.numValue) {                case 2:                    here->HFETAicVGS = *(value->v.vec.rVec+1);                    here->HFETAicVGSGiven = TRUE;                case 1:                    here->HFETAicVDS = *(value->v.vec.rVec);                    here->HFETAicVDSGiven = TRUE;                    break;                default:                    return(E_BADPARM);            }            break;        case HFETA_TEMP:            here->HFETAtemp = value->rValue + CONSTCtoK;            here->HFETAtempGiven = TRUE;            break;        case HFETA_DTEMP:            here->HFETAdtemp = value->rValue;            here->HFETAdtempGiven = TRUE;            break;        default:            return(E_BADPARM);    }    return(OK);}

⌨️ 快捷键说明

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