bjtinit.c

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

C
85 行
字号
#include <config.h>#include <devdefs.h>#include "bjtitf.h"#include "bjtext.h"#include "bjtinit.h"SPICEdev BJTinfo = {                  /* description from struct IFdevice  */      {      "BJT",                          /*  char *name               */      "Bipolar Junction Transistor",  /*  char *description        */            &BJTnSize,                      /*  int *terms               */      &BJTnSize,                      /*  int *numNames            */      BJTnames,                       /*  char **termnames         */            &BJTpTSize,                     /*  int *numInstanceparms    */      BJTpTable,                      /*  IFparm *instanceParms    */            &BJTmPTSize,                    /*  int *numModelparms       */      BJTmPTable,                     /*  IFparm *modelParms       */#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      DEV_DEFAULT                     /*  int flags                */    },        DEVparam      : BJTparam,    DEVmodParam   : BJTmParam,    DEVload       : BJTload,    DEVsetup      : BJTsetup,    DEVunsetup    : BJTunsetup,    DEVpzSetup    : BJTsetup,    DEVtemperature: BJTtemp,    DEVtrunc      : BJTtrunc,    DEVfindBranch : NULL,    DEVacLoad     : BJTacLoad,    DEVaccept     : NULL,    DEVdestroy    : BJTdestroy,    DEVmodDelete  : BJTmDelete,    DEVdelete     : BJTdelete,    DEVsetic      : BJTgetic,    DEVask        : BJTask,    DEVmodAsk     : BJTmAsk,    DEVpzLoad     : BJTpzLoad,    DEVconvTest   : BJTconvTest,    DEVsenSetup   : BJTsSetup,    DEVsenLoad    : BJTsLoad,    DEVsenUpdate  : BJTsUpdate,    DEVsenAcLoad  : BJTsAcLoad,    DEVsenPrint   : BJTsPrint,    DEVsenTrunc   : NULL,    DEVdisto      : BJTdisto,    DEVnoise      : BJTnoise,#ifdef CIDER    DEVdump	  : NULL,    DEVacct       : NULL,#endif                         DEVinstSize   : &BJTiSize,    DEVmodSize    : &BJTmSize};SPICEdev *get_bjt_info(void){    return &BJTinfo;}

⌨️ 快捷键说明

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