Initial version of donated sources by Avertec, 3.4p5.
[tas-yagle.git] / distrib / sources / tas / trc / trc_noise.h
1 typedef struct {
2 rcxparam *PARAM;
3 RCXFLOAT CGLOBALE;
4 RCXFLOAT CLOCALE;
5 } agrnoise;
6
7 typedef struct {
8 rcxparam *PARAM;
9 RCXFLOAT CGLOBALE;
10 RCXFLOAT CLOCALE;
11 double TA;
12 double CC;
13 double CCM;
14 double DT;
15 } agrnoise2;
16
17 typedef struct {
18 agrnoise2 *tabagr;
19 int nbagr;
20 double tamax;
21 double vdd;
22 double rv;
23 double fv;
24 double tv;
25 double ct;
26 } agrnoise_data ;
27
28 extern RCXFLOAT rcx_noisedelay_scr( lofig_list*, losig_list*, RCXFLOAT, rcx_slope*, RCXFLOAT, RCXFLOAT, char );
29 RCXFLOAT rcx_noise_basic_scr( RCXFLOAT, RCXFLOAT, RCXFLOAT, RCXFLOAT, RCXFLOAT );
30 extern rcx_signal_noise* rcx_noise_scr_detail( lofig_list*, losig_list *victime, RCXFLOAT rv, RCXFLOAT vdd, int *nbagr );
31 RCXFLOAT rcx_noise_scr_1( lofig_list *lofig, losig_list *victime, rcx_slope *fvmiller, RCXFLOAT rv, RCXFLOAT vdd, char type );
32
33
34 RCXFLOAT rcx_noise_scr_2( lofig_list *lofig, losig_list *victime, rcx_slope *fvmiller, RCXFLOAT fv, RCXFLOAT rv, RCXFLOAT vdd, char type );
35 int rcx_noise_fn( agrnoise_data *infos, double bt, double *f );
36 double rcx_noise_allagr( agrnoise_data *infos, double bt );
37 void rcx_noise_complete_tabagr( agrnoise2 *tabagr, int nbagr, double tamax, double ct );
38 void rcx_noise_get_tamax( agrnoise2 *tabagr, int nbagr, int *idmax, double *tamax );
39 void rcx_noise_calc_ta( agrnoise2 *tabagr, int nbagr, rcx_slope *fvmiller, RCXFLOAT fv, char type, losig_list *victime );
40 void rcx_noise_trace_noise( agrnoise_data *infos, double tmax );