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

📄 hfet2param.c

📁 ngspice又一个电子CAD仿真软件代码.功能更全
💻 C
字号:
/**********Imported from MacSpice3f4 - Antony WilsonModified: Paolo Nenzi**********/#include "ngspice.h"#include "ifsim.h"#include "hfet2defs.h"#include "sperror.h"#include "suffix.h"int HFET2param(int param, IFvalue *value, GENinstance *inst, IFvalue *select){    HFET2instance *here = (HFET2instance*)inst;  switch(param) {    case HFET2_LENGTH:      L = value->rValue;      here->HFET2lengthGiven = TRUE;      break;    case HFET2_IC_VDS:      here->HFET2icVDS = value->rValue;      here->HFET2icVDSGiven = TRUE;      break;    case HFET2_IC_VGS:      here->HFET2icVGS = value->rValue;      here->HFET2icVGSGiven = TRUE;      break;    case HFET2_OFF:      here->HFET2off = value->iValue;      break;    case HFET2_IC:      switch(value->v.numValue) {        case 2:          here->HFET2icVGS = *(value->v.vec.rVec+1);          here->HFET2icVGSGiven = TRUE;        case 1:          here->HFET2icVDS = *(value->v.vec.rVec);          here->HFET2icVDSGiven = TRUE;          break;        default:          return(E_BADPARM);      }      break;    case HFET2_TEMP:      TEMP = value->rValue + CONSTCtoK;      here->HFET2tempGiven = TRUE;      break;    case HFET2_DTEMP:      here->HFET2dtemp = value->rValue;      here->HFET2dtempGiven = TRUE;      break;    case HFET2_WIDTH:      W = value->rValue;      here->HFET2widthGiven = TRUE;      break;    case HFET2_M:      here->HFET2m = value->rValue;      here->HFET2mGiven = TRUE;      break;    default:      return(E_BADPARM);  }  return(OK);  }

⌨️ 快捷键说明

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