Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

sim_qpsk_variable.h

Go to the documentation of this file.
00001 // 
00002 // author="Tony Kirke"
00003 // Copyright(c) 1993-1996 Tony Kirke
00004 /*
00005  * SPUC - Signal processing using C++ - A DSP library
00006  * 
00007  * This program is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 2, or (at your option)
00010  * any later version.
00011  * 
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  * 
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00020 */
00021 #include <stdio.h>
00022 #include <stdlib.h>
00023 #include <math.h>
00024 #include <complex.h>
00025 #include <max_pn.h>     
00026 #include <noise.h>     
00027 #include <vco.h>        
00028 #include <fir_interp.h>
00029 #include "quad_data.h"
00030 #include "qpsk_ber_test.h"
00031 #include "qpsk_variable.h"
00032 namespace SPUC {
00036 
00037 
00038 //
00044 class sim_qpsk_variable
00045 {
00046  public:
00047         qpsk_ber_test* BER_mon;
00048         quad_data* tx_data_source;
00049         vco* freq_offset;
00050         noise* n;
00051         qpsk_variable* RECEIVER;      
00052 
00053         long num;
00054         double var;
00055         double snr;
00056         double timing_offset;
00057         long total_over;
00058 
00059         complex<double> data; 
00060         complex<double> base; 
00061         complex<double> main; 
00062         complex<double> b_noise;                // Noise
00063         
00064         double sum_s;                       // Signal sum for Es/No estimation
00065         double sum_n;                       // Noise sum for Es/No estimation
00066         long rcv_symbols;                         // Number of symbols decoded
00067         long count;                                       // index of sample number at input rate
00068         int dec_rate_log;
00069         double resample_over ;
00070         // AGC stuff
00071         double agc_scale;
00072         double nominal_scale;
00073         double analog_agc;
00074         double analog_filter_gain;
00075         double analog_agc_gain;
00076         //
00077 
00078         double actual_over;
00079         double tx_time_inc;
00080         int rc_delay;
00081         long symbol_nco_word;
00082 
00083         sim_qpsk_variable(void);
00084         void loop_init(double actual_over,  double time_offset=0);
00085         void step(void);
00086         void loop_end(void);
00087 };                       
00088 
00089 } // namespace SPUC 

Generated on Fri Sep 16 11:02:24 2005 for spuc by  doxygen 1.4.4