📄 nbjtparm.c
字号:
/**********Copyright 1992 Regents of the University of California. All rights reserved.Author: 1987 Kartikeya Mayaram, U. C. Berkeley CAD Group**********//* * This routine sets instance parameters for NBJTs in the circuit. */#include "spice.h"#include <stdio.h>#include "const.h"#include "util.h"#include "ifsim.h"#include "nbjtdefs.h"#include "sperror.h"#include "suffix.h"intNBJTparam(param, value, inInst, select) int param; IFvalue *value; GENinstance *inInst; IFvalue *select;{ register NBJTinstance *inst = (NBJTinstance *) inInst; switch (param) { case NBJT_AREA: inst->NBJTarea = value->rValue; inst->NBJTareaGiven = TRUE; break; case NBJT_OFF: inst->NBJToff = TRUE; break; case NBJT_IC_FILE: inst->NBJTicFile = value->sValue; inst->NBJTicFileGiven = TRUE; break; case NBJT_PRINT: inst->NBJTprint = value->rValue; inst->NBJTprintGiven = TRUE; break; case NBJT_TEMP: inst->NBJTtemp = value->rValue + CONSTCtoK; inst->NBJTtempGiven = TRUE; break; default: return (E_BADPARM); } return (OK);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -