Jspice3
devdefs.h File Reference
#include "cktdefs.h"
Include dependency graph for devdefs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SPICEdev
 

Macros

#define IP(a, b, c, d)   { a , b , c|IF_SET , d }
 
#define OP(a, b, c, d)   { a , b , c|IF_ASK , d }
 
#define IOP(a, b, c, d)   { a , b , c|IF_SET|IF_ASK , d }
 
#define P(a, b, c, d)   { a , b , c , d }
 
#define TSTALLOC(ptr, first, second)
 
#define NI_SUM(ckt, ceq, qcap)
 
#define NI_INTEG(ckt, geq, ceq, cap, qcap)
 

Typedefs

typedef struct SPICEdev SPICEdev
 

Functions

double DEVlimvds ()
 
double DEVpnjlim ()
 
double DEVfetlim ()
 
void DEVqmeyer ()
 
double DEVpred ()
 
double * DEVpredNew ()
 
int GENdelete ()
 
void GENdestroy ()
 
int GENmDelete ()
 
void GENmosParse ()
 

Macro Definition Documentation

#define IOP (   a,
  b,
  c,
  d 
)    { a , b , c|IF_SET|IF_ASK , d }

Definition at line 120 of file devdefs.h.

#define IP (   a,
  b,
  c,
  d 
)    { a , b , c|IF_SET , d }

Definition at line 118 of file devdefs.h.

#define NI_INTEG (   ckt,
  geq,
  ceq,
  cap,
  qcap 
)
Value:
{ \
if (ckt->CKTintegrateMethod==TRAPEZOIDAL){ \
if (ckt->CKTorder==1) \
ceq=ckt->CKTag[1]* *(ckt->CKTstate1+qcap); \
else \
ceq= - *(ckt->CKTstate1+qcap+1)*ckt->CKTag[1]- \
ckt->CKTag[0]* *(ckt->CKTstate1+qcap); \
*(ckt->CKTstate0+qcap+1)= \
ckt->CKTag[0]* *(ckt->CKTstate0+qcap)+ceq; \
geq=ckt->CKTag[0]*cap; \
} \
else {error=NIintegrate(ckt,&geq,&ceq,cap,qcap); if(error) return(error);} \
}
if(TDesc==NULL)
Definition: cd.c:1326
#define TRAPEZOIDAL
Definition: cktdefs.h:92
int NIintegrate()

Definition at line 141 of file devdefs.h.

#define NI_SUM (   ckt,
  ceq,
  qcap 
)
Value:
{ \
if(ckt->CKTintegrateMethod==TRAPEZOIDAL){ \
if(ckt->CKTorder==1) \
ceq=ckt->CKTag[1]* *(ckt->CKTstate1+qcap); \
else \
ceq= - *(ckt->CKTstate1+qcap+1)*ckt->CKTag[1]- \
ckt->CKTag[0]* *(ckt->CKTstate1+qcap); \
} \
else {error=NIsum(ckt,&ceq,qcap); if(error) return(error);}\
}
if(TDesc==NULL)
Definition: cd.c:1326
#define TRAPEZOIDAL
Definition: cktdefs.h:92
int NIsum()

Definition at line 130 of file devdefs.h.

#define OP (   a,
  b,
  c,
  d 
)    { a , b , c|IF_ASK , d }

Definition at line 119 of file devdefs.h.

#define P (   a,
  b,
  c,
  d 
)    { a , b , c , d }

Definition at line 121 of file devdefs.h.

#define TSTALLOC (   ptr,
  first,
  second 
)
Value:
if((here->ptr = spGetElement(matrix,here->first,here->second))==(double *)NULL){\
}
#define NULL
Definition: spdefs.h:121
#define E_NOMEM
Definition: iferrmsg.h:27
spREAL * spGetElement()
return(True)

Definition at line 124 of file devdefs.h.

Typedef Documentation

typedef struct SPICEdev SPICEdev

Function Documentation

double DEVfetlim ( )
double DEVlimvds ( )
double DEVpnjlim ( )
double DEVpred ( )
double* DEVpredNew ( )
void DEVqmeyer ( )
int GENdelete ( )
void GENdestroy ( )
int GENmDelete ( )
void GENmosParse ( )