Jspice3
Main Page
Data Structures
Files
File List
Globals
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
TFAN::TFoutPos
CKTnode * TFoutPos
Definition:
tfdefs.h:19
cktdefs.h
TFAN
Definition:
tfdefs.h:15
TF_OUTNEG
#define TF_OUTNEG
Definition:
tfdefs.h:36
TFAN::AC
struct sACprms AC
Definition:
tfdefs.h:31
ACquery
int ACquery()
E_BADPARM
#define E_BADPARM
Definition:
iferrmsg.h:26
TFaskQuest
int TFaskQuest(GENERIC *cktp, GENERIC *anal, int which, IFvalue *value)
Definition:
tfaskq.c:17
TF_OUTNAME
#define TF_OUTNAME
Definition:
tfdefs.h:39
TFAN::TFoutSrc
IFuid TFoutSrc
Definition:
tfdefs.h:21
TFAN::TFoutName
char * TFoutName
Definition:
tfdefs.h:26
DCTquery
int DCTquery()
OK
#define OK
Definition:
iferrmsg.h:17
TF_OUTPOS
#define TF_OUTPOS
Definition:
tfdefs.h:35
TF_INSRC
#define TF_INSRC
Definition:
tfdefs.h:38
IFnode
GENERIC * IFnode
Definition:
ifsim.h:220
TFAN::DC
struct sDCTprms DC
Definition:
tfdefs.h:32
uIFvalue::nValue
IFnode nValue
Definition:
ifsim.h:237
spice.h
TFAN::TFoutNeg
CKTnode * TFoutNeg
Definition:
tfdefs.h:20
iferrmsg.h
uIFvalue
Definition:
ifsim.h:231
tfdefs.h
TF_OUTSRC
#define TF_OUTSRC
Definition:
tfdefs.h:37
TFAN::TFinSrc
IFuid TFinSrc
Definition:
tfdefs.h:22
uIFvalue::sValue
char * sValue
Definition:
ifsim.h:235
GENERIC
char GENERIC
Definition:
ifsim.h:27
uIFvalue::uValue
IFuid uValue
Definition:
ifsim.h:236
src
lib
analysis
tfaskq.c
Generated by
1.8.11