Jspice3
tfaskq.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 "cktdefs.h"
11 #include "tfdefs.h"
12 #include "iferrmsg.h"
13 
14 
15 /* ARGSUSED */
16 int
17 TFaskQuest(cktp,anal,which,value)
18 
19 GENERIC *cktp;
20 GENERIC *anal;
21 int which;
22 IFvalue *value;
23 {
24  TFAN *job = (TFAN *) anal;
25 
26  switch (which) {
27 
28  case TF_OUTPOS:
29  value->nValue = (IFnode)job->TFoutPos;
30  break;
31 
32  case TF_OUTNEG:
33  value->nValue = (IFnode)job->TFoutNeg;
34  break;
35 
36  case TF_OUTNAME:
37  value->sValue = job->TFoutName;
38  break;
39 
40  case TF_OUTSRC:
41  value->uValue = job->TFoutSrc;
42  break;
43 
44  case TF_INSRC:
45  value->uValue = job->TFinSrc;
46  break;
47 
48  default:
49  if (ACquery(&job->AC,which,value) == OK)
50  return (OK);
51  if (DCTquery(&job->DC,which,value) == OK)
52  return (OK);
53  return (E_BADPARM);
54  }
55  return (OK);
56 }
57 
CKTnode * TFoutPos
Definition: tfdefs.h:19
Definition: tfdefs.h:15
#define TF_OUTNEG
Definition: tfdefs.h:36
struct sACprms AC
Definition: tfdefs.h:31
int ACquery()
#define E_BADPARM
Definition: iferrmsg.h:26
int TFaskQuest(GENERIC *cktp, GENERIC *anal, int which, IFvalue *value)
Definition: tfaskq.c:17
#define TF_OUTNAME
Definition: tfdefs.h:39
IFuid TFoutSrc
Definition: tfdefs.h:21
char * TFoutName
Definition: tfdefs.h:26
int DCTquery()
#define OK
Definition: iferrmsg.h:17
#define TF_OUTPOS
Definition: tfdefs.h:35
#define TF_INSRC
Definition: tfdefs.h:38
GENERIC * IFnode
Definition: ifsim.h:220
struct sDCTprms DC
Definition: tfdefs.h:32
IFnode nValue
Definition: ifsim.h:237
CKTnode * TFoutNeg
Definition: tfdefs.h:20
#define TF_OUTSRC
Definition: tfdefs.h:37
IFuid TFinSrc
Definition: tfdefs.h:22
char * sValue
Definition: ifsim.h:235
char GENERIC
Definition: ifsim.h:27
IFuid uValue
Definition: ifsim.h:236