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

📄 dioparam.c

📁 ngspice又一个电子CAD仿真软件代码.功能更全
💻 C
字号:
/**********Copyright 1990 Regents of the University of California.  All rights reserved.Author: 1985 Thomas L. QuarlesModified by Dietmar Warning 2003 and Paolo Nenzi 2003**********//* */#include "ngspice.h"#include "const.h"#include "ifsim.h"#include "diodefs.h"#include "sperror.h"#include "suffix.h"/* ARGSUSED */intDIOparam(int param, IFvalue *value, GENinstance *inst, IFvalue *select){    DIOinstance *here = (DIOinstance*)inst;    switch(param) {        case DIO_AREA:            here->DIOarea = value->rValue;            here->DIOareaGiven = TRUE;            break;        case DIO_PJ:            here->DIOpj = value->rValue;            here->DIOpjGiven = TRUE;            break;        case DIO_M:            here->DIOm = value->rValue;            here->DIOmGiven = TRUE;            break;        case DIO_TEMP:            here->DIOtemp = value->rValue+CONSTCtoK;            here->DIOtempGiven = TRUE;            break;	case DIO_DTEMP:            here->DIOdtemp = value->rValue;            here->DIOdtempGiven = TRUE;            break;            case DIO_OFF:            here->DIOoff = value->iValue;            break;        case DIO_IC:            here->DIOinitCond = value->rValue;            break;        case DIO_AREA_SENS:            here->DIOsenParmNo = value->iValue;            break;        default:            return(E_BADPARM);    }    return(OK);}

⌨️ 快捷键说明

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