usrp1_sink_s.h

Go to the documentation of this file.
00001 /* -*- c++ -*- */
00002 /*
00003  * Copyright 2004 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 3, 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., 51 Franklin Street,
00020  * Boston, MA 02110-1301, USA.
00021  */
00022 
00023 #ifndef INCLUDED_USRP1_SINK_S_H
00024 #define INCLUDED_USRP1_SINK_S_H
00025 
00026 #include <usrp1_sink_base.h>
00027 
00028 class usrp1_sink_s;
00029 typedef boost::shared_ptr<usrp1_sink_s> usrp1_sink_s_sptr;
00030 
00031 
00032 // public shared_ptr constructor
00033 
00034 usrp1_sink_s_sptr
00035 usrp1_make_sink_s (int which_board,
00036                    unsigned int interp_rate,
00037                    int nchan,
00038                    int mux,
00039                    int fusb_block_size,
00040                    int fusb_nblocks,
00041                    const std::string fpga_filename,
00042                    const std::string firmware_filename
00043                    ) throw (std::runtime_error);
00044 
00050 class usrp1_sink_s : public usrp1_sink_base {
00051  private:
00052 
00053   friend usrp1_sink_s_sptr
00054   usrp1_make_sink_s (int which_board,
00055                      unsigned int interp_rate,
00056                      int nchan,
00057                      int mux,
00058                      int fusb_block_size,
00059                      int fusb_nblocks,
00060                      const std::string fpga_filename,
00061                      const std::string firmware_filename
00062                      ) throw (std::runtime_error);
00063 
00064  protected:
00065   usrp1_sink_s (int which_board,
00066                 unsigned int interp_rate,
00067                 int nchan,
00068                 int mux,
00069                 int fusb_block_size,
00070                 int fusb_nblocks,
00071                 const std::string fpga_filename,
00072                 const std::string firmware_filename
00073                 ) throw (std::runtime_error);
00074 
00075   virtual void copy_to_usrp_buffer (gr_vector_const_void_star &input_items,
00076                                     int  input_index,
00077                                     int  input_items_available,
00078                                     int  &input_items_consumed,
00079                                     void *usrp_buffer,
00080                                     int  usrp_buffer_length,
00081                                     int  &bytes_written);
00082  public:
00083   ~usrp1_sink_s ();
00084 };
00085 
00086 #endif /* INCLUDED_USRP1_SINK_S_H */

Generated on Thu Mar 5 09:01:19 2009 for GNU Radio 3.1.3 by  doxygen 1.5.8