Jspice3
Main Page
Data Structures
Files
File List
Globals
noiaskq.c
Go to the documentation of this file.
1
/***************************************************************************
2
JSPICE3 adaptation of Spice3e2 - Copyright (c) Stephen R. Whiteley 1992
3
Copyright 1990 Regents of the University of California. All rights reserved.
4
Authors: 1987 Gary W. Ng
5
1992 Stephen R. Whiteley
6
****************************************************************************/
7
8
#include "
spice.h
"
9
#include <stdio.h>
10
#include "
cktdefs.h
"
11
#include "
noisedef.h
"
12
#include "
iferrmsg.h
"
13
14
15
int
16
NOISEaskQuest
(cktp,anal,which,value)
17
18
GENERIC
*cktp;
19
GENERIC
*anal;
20
int
which;
21
IFvalue
*value;
22
{
23
NOISEAN
*job = (
NOISEAN
*) anal;
24
25
switch
(which) {
26
27
case
N_OUTPUT
:
28
value->
sValue
= job->
Noutput
;
29
break
;
30
31
case
N_OUTREF
:
32
value->
sValue
= job->
NoutputRef
;
33
break
;
34
35
case
N_INPUT
:
36
value->
sValue
= job->
Ninput
;
37
break
;
38
39
case
N_PTSPERSUM
:
40
value->
iValue
= job->
NStpsSm
;
41
break
;
42
43
default
:
44
if
(
ACquery
(&job->
AC
,which,value) ==
OK
)
45
return
(
OK
);
46
if
(
DCTquery
(&job->
DC
,which,value) ==
OK
)
47
return
(
OK
);
48
return
(
E_BADPARM
);
49
}
50
return
(
OK
);
51
}
52
cktdefs.h
N_PTSPERSUM
#define N_PTSPERSUM
Definition:
noisedef.h:78
NOISEAN::Ninput
char * Ninput
Definition:
noisedef.h:47
noisedef.h
ACquery
int ACquery()
E_BADPARM
#define E_BADPARM
Definition:
iferrmsg.h:26
N_OUTREF
#define N_OUTREF
Definition:
noisedef.h:76
uIFvalue::iValue
int iValue
Definition:
ifsim.h:232
N_OUTPUT
#define N_OUTPUT
Definition:
noisedef.h:75
DCTquery
int DCTquery()
OK
#define OK
Definition:
iferrmsg.h:17
NOISEAN::NoutputRef
char * NoutputRef
Definition:
noisedef.h:46
NOISEAN
Definition:
noisedef.h:41
N_INPUT
#define N_INPUT
Definition:
noisedef.h:77
spice.h
iferrmsg.h
NOISEAN::AC
struct sACprms AC
Definition:
noisedef.h:55
uIFvalue
Definition:
ifsim.h:231
NOISEAN::NStpsSm
int NStpsSm
Definition:
noisedef.h:50
uIFvalue::sValue
char * sValue
Definition:
ifsim.h:235
NOISEAN::DC
struct sDCTprms DC
Definition:
noisedef.h:56
NOISEAN::Noutput
char * Noutput
Definition:
noisedef.h:45
NOISEaskQuest
int NOISEaskQuest(GENERIC *cktp, GENERIC *anal, int which, IFvalue *value)
Definition:
noiaskq.c:16
GENERIC
char GENERIC
Definition:
ifsim.h:27
src
lib
analysis
noiaskq.c
Generated by
1.8.11