more fix on Ec/Ev.
[gss-tcad.git] / src / include / ndevexch.h
blobfbf846855ef40606178d5753778920bc10d0e00b
1 #ifndef _netexchange_h_
2 #define _netexchange_h_
4 #define NG_QUERY "This is ngspice. Are you ready?"
5 #define NDEV_REPLY "Waiting orders!"
6 #define NG_STOP "Ngspice finished, goodbye."
8 #define NDEV_LOAD 0x0001
9 #define NDEV_ACCEPT 0x0002
10 #define NDEV_CONVERGINCE_TEST 0x0004
11 #define NDEV_TRUNCATION_ERROR 0x0008
13 #define NDEV_TEMPERATURE 0x1000
14 #define NDEV_AC_LOAD 0x0010
15 #define NDEV_PZ_LOAD 0x0020
17 #ifndef CKT
18 /* defines for CKTmode */
19 /* this should be the same as cktdefs.h */
20 /* old 'mode' parameters */
21 #define MODE 0x3
22 #define MODETRAN 0x1
23 #define MODEAC 0x2
25 /* old 'modedc' parameters */
26 #define MODEDC 0x70
27 #define MODEDCOP 0x10
28 #define MODETRANOP 0x20
29 #define MODEDCTRANCURVE 0x40
31 /* old 'initf' parameters */
32 #define INITF 0x3f00
33 #define MODEINITFLOAT 0x100
34 #define MODEINITJCT 0x200
35 #define MODEINITFIX 0x400
36 #define MODEINITSMSIG 0x800
37 #define MODEINITTRAN 0x1000
38 #define MODEINITPRED 0x2000
40 /* old 'nosolv' paramater */
41 #define MODEUIC 0x10000l
42 #endif
44 typedef struct {
45 char NDEVname[32];
46 int term;
47 }sDeviceinfo;
50 typedef struct {
51 int pin;
52 char name[32];
53 double V,I;
54 double V_old;
55 double dI_dV[7];
56 } sPINinfo;
58 typedef struct {
59 long DEV_CALL;
60 long CKTmode;
61 double time;
62 double dt;
63 double dt_old;
64 double omega;
65 int accept_flag;
66 int convergence_flag;
67 }sCKTinfo;
69 #endif