Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

make_GrMC4020Source.h

Go to the documentation of this file.
00001 /* -*- c++ -*- */
00002 /*
00003  * Copyright 2003 Free Software Foundation, Inc.
00004  * 
00005  * This file is part of GNU Radio
00006  * 
00007  * GNU Radio 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  * GNU Radio 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 GNU Radio; see the file COPYING.  If not, write to
00019  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00020  * Boston, MA 02111-1307, USA.
00021  */
00022 
00023 /*
00024  * This interface is used to instantiate either a real GrMC4020Source if you've
00025  * got the hardware, or to instantiate a zero source if you don't.  This keeps
00026  * us from having to touch a bunch of code depending on availability of hardware.
00027  *
00028  * This can't be a template, because the implementation needs to include config.h
00029  * in order to get the result of configure's test for the existence of the hardware.
00030  */
00031 
00032 #include <mc4020_bitmask.h>
00033 #include <VrSource.h>
00034 
00035 // produce a stream of shorts from the A/D
00036 VrSource<short> *
00037 make_GrMC4020SourceS (double sampling_freq = 20e6,
00038                       unsigned long bitmask = MCC_CH0_EN | MCC_ALL_5V);

Generated on Tue Mar 15 23:48:04 2005 for GNU Radio by  doxygen 1.4.0