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

sim_qpsk.h

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

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