resinit.c

来自「ngspice又一个电子CAD仿真软件代码.功能更全」· C语言 代码 · 共 85 行

C
85 行
字号
#include <config.h>#include <devdefs.h>#include "resitf.h"#include "resext.h"#include "resinit.h"SPICEdev RESinfo = {    {        "Resistor",        "Simple linear resistor",        &RESnSize,        &RESnSize,        RESnames,        &RESpTSize,        RESpTable,        &RESmPTSize,        RESmPTable,#ifdef XSPICE/*----  Fixed by SDB 5.2.2003 to enable XSPICE/tclspice integration  -----*/        NULL,  /* This is a SPICE device, it has no MIF info data */        0,     /* This is a SPICE device, it has no MIF info data */        NULL,  /* This is a SPICE device, it has no MIF info data */        0,     /* This is a SPICE device, it has no MIF info data */        NULL,  /* This is a SPICE device, it has no MIF info data */        0,     /* This is a SPICE device, it has no MIF info data */        NULL,  /* This is a SPICE device, it has no MIF info data *//*---------------------------  End of SDB fix   -------------------------*/#endif	0    },    DEVparam      : RESparam,    DEVmodParam   : RESmParam,    DEVload       : RESload,    DEVsetup      : RESsetup,    DEVunsetup    : NULL,    DEVpzSetup    : RESsetup,    DEVtemperature: REStemp,    DEVtrunc      : NULL,    DEVfindBranch : NULL,    DEVacLoad     : RESacload,  /* ac load and normal load are identical */    DEVaccept     : NULL,    DEVdestroy    : RESdestroy,    DEVmodDelete  : RESmDelete,    DEVdelete     : RESdelete,    DEVsetic      : NULL,    DEVask        : RESask,    DEVmodAsk     : RESmodAsk,    DEVpzLoad     : RESpzLoad,    DEVconvTest   : NULL,     /* RESconvTest, XXXX experimental */    DEVsenSetup   : RESsSetup,    DEVsenLoad    : RESsLoad,    DEVsenUpdate  : NULL,    DEVsenAcLoad  : RESsAcLoad,    DEVsenPrint   : RESsPrint,    DEVsenTrunc   : NULL,    DEVdisto      : NULL,    DEVnoise      : RESnoise,#ifdef CIDER    DEVdump       : NULL,    DEVacct       : NULL,#endif                            DEVinstSize   : &RESiSize,    DEVmodSize    : &RESmSize};SPICEdev *get_res_info(void){    return &RESinfo;}

⌨️ 快捷键说明

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