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

scic.h

Go to the documentation of this file.
00001 /*
00002  * SPUC - Signal processing using C++ - A DSP library
00003  * 
00004  * This program is free software; you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License as published by
00006  * the Free Software Foundation; either version 2, or (at your option)
00007  * any later version.
00008  * 
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  * 
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00017 */
00018 #ifndef SCIC
00019 #define SCIC
00020 #include <delay.h>
00021 #include <cic.h>
00022 namespace SPUC {
00027 //
00029 class scic
00030 {
00031  protected:
00032         cic main;
00033         cic sub;
00034         delay<long> dly;
00035         char stages;
00036         long max_rate;
00037  public:                         
00038         // Constructor
00039         scic(char n=2, long r=4);
00040         // For SCIC decimation
00041         signed long decimate(signed long in, long rate, signed char dump);
00042         // To change the number of stages dynamically
00043         void num_stages(char n, long r);
00044 };
00045 } // namespace SPUC 
00046 #endif

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