usrp1_sink_s.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
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
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