Jspice3
urcparam.c
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 #include "spice.h"
9 #include <stdio.h>
10 #include "urcdefs.h"
11 #include "sperror.h"
12 #include "util.h"
13 
14 
15 /* ARGSUSED */
16 int
17 URCparam(ckt,param,value,inst,select)
18 
19 CKTcircuit *ckt;
20 int param;
21 IFvalue *value;
22 GENinstance *inst;
23 IFvalue *select;
24 {
25  URCinstance *here = (URCinstance *)inst;
26  switch(param) {
27  case URC_LEN:
28  here->URClength = value->rValue;
29  here->URClenGiven = TRUE;
30  break;
31  case URC_LUMPS:
32  here->URClumps = value->rValue;
33  here->URClumpsGiven = TRUE;
34  break;
35  default:
36  return(E_BADPARM);
37  }
38  return(OK);
39 }
#define URC_LUMPS
Definition: urcdefs.h:64
int URClumps
Definition: urcdefs.h:31
#define E_BADPARM
Definition: iferrmsg.h:26
#define TRUE
Definition: util.h:27
double rValue
Definition: ifsim.h:233
unsigned URClumpsGiven
Definition: urcdefs.h:33
int URCparam(CKTcircuit *ckt, int param, IFvalue *value, GENinstance *inst, IFvalue *select)
Definition: urcparam.c:17
#define OK
Definition: iferrmsg.h:17
unsigned URClenGiven
Definition: urcdefs.h:32
double URClength
Definition: urcdefs.h:30
#define URC_LEN
Definition: urcdefs.h:63