usrp1_sink_c.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_C_H
00024 #define INCLUDED_USRP1_SINK_C_H
00025
00026 #include <usrp1_sink_base.h>
00027
00028 class usrp1_sink_c;
00029 typedef boost::shared_ptr<usrp1_sink_c> usrp1_sink_c_sptr;
00030
00031
00032
00033
00034 usrp1_sink_c_sptr
00035 usrp1_make_sink_c (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
00045
00051 class usrp1_sink_c : public usrp1_sink_base {
00052 private:
00053
00054 friend usrp1_sink_c_sptr
00055 usrp1_make_sink_c (int which_board,
00056 unsigned int interp_rate,
00057 int nchan,
00058 int mux,
00059 int fusb_block_size,
00060 int fusb_nblocks,
00061 const std::string fpga_filename,
00062 const std::string firmware_filename
00063 ) throw (std::runtime_error);
00064
00065 protected:
00066 usrp1_sink_c (int which_board,
00067 unsigned int interp_rate,
00068 int nchan,
00069 int mux,
00070 int fusb_block_size,
00071 int fusb_nblocks,
00072 const std::string fpga_filename,
00073 const std::string firmware_filename
00074 ) throw (std::runtime_error);
00075
00076 virtual void copy_to_usrp_buffer (gr_vector_const_void_star &input_items,
00077 int input_index,
00078 int input_items_available,
00079 int &input_items_consumed,
00080 void *usrp_buffer,
00081 int usrp_buffer_length,
00082 int &bytes_written);
00083 public:
00084 ~usrp1_sink_c ();
00085 };
00086
00087 #endif