1 #ifndef ngspice_DGEN_H 2 #define ngspice_DGEN_H 3 4 typedef struct st_dgen dgen; 5 6 struct st_dgen { 7 CKTcircuit *ckt; 8 wordlist *dev_list; 9 int flags; 10 int dev_type_no; 11 int dev; 12 GENinstance *instance; 13 GENmodel *model; 14 }; 15 16 17 #define DGEN_ALL 0x00e 18 #define DGEN_TYPE 0x002 19 #define DGEN_MODEL 0x004 20 #define DGEN_INSTANCE 0x008 21 #define DGEN_INIT 0x010 22 23 #define DGEN_DEFDEVS 0x020 24 #define DGEN_ALLDEVS 0x040 25 26 #define DGEN_DEFPARAMS 0x001 27 #define DGEN_ALLPARAMS 0x002 28 29 extern dgen *dgen_init(CKTcircuit *ckt, wordlist *wl, int nomix, int flag, int model); 30 31 #endif 32