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_USRP_SINK_C_H
00024 #define INCLUDED_USRP_SINK_C_H
00025
00026 #include <usrp_sink_base.h>
00027
00028 class usrp_sink_c;
00029 typedef boost::shared_ptr<usrp_sink_c> usrp_sink_c_sptr;
00030
00031
00032
00033
00034 usrp_sink_c_sptr
00035 usrp_make_sink_c (int which_board=0,
00036 unsigned int interp_rate=32,
00037 int nchan=1,
00038 int mux=-1,
00039 int fusb_block_size=0,
00040 int fusb_nblocks=0,
00041 const std::string fpga_filename="",
00042 const std::string firmware_filename=""
00043 ) throw (std::runtime_error);
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053 class usrp_sink_c : public usrp_sink_base {
00054 private:
00055
00056 friend usrp_sink_c_sptr
00057 usrp_make_sink_c (int which_board,
00058 unsigned int interp_rate,
00059 int nchan,
00060 int mux,
00061 int fusb_block_size,
00062 int fusb_nblocks,
00063 const std::string fpga_filename,
00064 const std::string firmware_filename
00065 ) throw (std::runtime_error);
00066
00067 protected:
00068 usrp_sink_c (int which_board,
00069 unsigned int interp_rate,
00070 int nchan,
00071 int mux,
00072 int fusb_block_size,
00073 int fusb_nblocks,
00074 const std::string fpga_filename,
00075 const std::string firmware_filename
00076 ) throw (std::runtime_error);
00077
00078 virtual void copy_to_usrp_buffer (gr_vector_const_void_star &input_items,
00079 int input_index,
00080 int input_items_available,
00081 int &input_items_consumed,
00082 void *usrp_buffer,
00083 int usrp_buffer_length,
00084 int &bytes_written);
00085 public:
00086 ~usrp_sink_c ();
00087 };
00088
00089 #endif