Jspice3
Main Page
Data Structures
Files
File List
Globals
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*/
sGENinstance::GENnode1
int GENnode1
Definition:
gendefs.h:30
sGENinstance::GENnode5
int GENnode5
Definition:
gendefs.h:34
sGENinstance::GENnextInstance
struct sGENinstance * GENnextInstance
Definition:
gendefs.h:26
sGENmodel::GENnextModel
struct sGENmodel * GENnextModel
Definition:
gendefs.h:41
sGENinstance::GENstate
int GENstate
Definition:
gendefs.h:29
IFuid
GENERIC * IFuid
Definition:
ifsim.h:72
GENmodel
struct sGENmodel GENmodel
sGENinstance::GENnode3
int GENnode3
Definition:
gendefs.h:32
sGENmodel
Definition:
gendefs.h:39
sGENmodel::GENmodType
int GENmodType
Definition:
gendefs.h:40
GENinstance
struct sGENinstance GENinstance
sGENinstance::GENnode2
int GENnode2
Definition:
gendefs.h:31
sGENinstance::GENmodPtr
struct sGENmodel * GENmodPtr
Definition:
gendefs.h:25
sGENmodel::GENinstances
GENinstance * GENinstances
Definition:
gendefs.h:43
sGENinstance
Definition:
gendefs.h:24
sGENinstance::GENnode4
int GENnode4
Definition:
gendefs.h:33
sGENinstance::GENname
IFuid GENname
Definition:
gendefs.h:28
ifsim.h
sGENmodel::GENmodName
IFuid GENmodName
Definition:
gendefs.h:45
src
include
gendefs.h
Generated by
1.8.11