Jspice3
gendefs.h
Go to the documentation of this file.
1 /***************************************************************************
2 JSPICE3 adaptation of Spice3f2 - Copyright (c) Stephen R. Whiteley 1992
3 Copyright 1990 Regents of the University of California. All rights reserved.
4 Authors: 1985 Thomas L. Quarles
5  1993 Stephen R. Whiteley
6 ****************************************************************************/
7 
8 /* IMPORTANT: The the first four items in the data structures defined
9  * in this file must match the heads of the model and instance structures
10  * defined for the devices.
11  */
12 
13 
14 #ifndef GEN
15 #define GEN
16 
17 
18 #include "ifsim.h"
19 
20  /* definitions used to describe generic devices */
21 
22 /* information used to describe a single instance */
23 
24 typedef struct sGENinstance {
25  struct sGENmodel *GENmodPtr; /* backpointer to model */
26  struct sGENinstance *GENnextInstance; /* pointer to next instance of
27  * current model*/
28  IFuid GENname; /* pointer to character string naming this instance */
29  int GENstate; /* state index number */
30  int GENnode1; /* appropriate node numbers */
31  int GENnode2; /* appropriate node numbers */
32  int GENnode3; /* appropriate node numbers */
33  int GENnode4; /* appropriate node numbers */
34  int GENnode5; /* appropriate node numbers */
35 } GENinstance;
36 
37 /* per model data */
38 
39 typedef struct sGENmodel { /* model structure for a resistor */
40  int GENmodType; /* type index of this device type */
41  struct sGENmodel *GENnextModel; /* pointer to next possible model in
42  * linked list */
43  GENinstance *GENinstances; /* pointer to list of instances that have this
44  * model */
45  IFuid GENmodName; /* pointer to character string naming this model */
46 } GENmodel;
47 
48 #endif /*GEN*/
int GENnode1
Definition: gendefs.h:30
int GENnode5
Definition: gendefs.h:34
struct sGENinstance * GENnextInstance
Definition: gendefs.h:26
struct sGENmodel * GENnextModel
Definition: gendefs.h:41
int GENstate
Definition: gendefs.h:29
GENERIC * IFuid
Definition: ifsim.h:72
struct sGENmodel GENmodel
int GENnode3
Definition: gendefs.h:32
int GENmodType
Definition: gendefs.h:40
struct sGENinstance GENinstance
int GENnode2
Definition: gendefs.h:31
struct sGENmodel * GENmodPtr
Definition: gendefs.h:25
GENinstance * GENinstances
Definition: gendefs.h:43
int GENnode4
Definition: gendefs.h:33
IFuid GENname
Definition: gendefs.h:28
IFuid GENmodName
Definition: gendefs.h:45