20 #ifndef GNSS_SDR_UHD_SIGNAL_SOURCE_H 21 #define GNSS_SDR_UHD_SIGNAL_SOURCE_H 25 #include <gnuradio/blocks/file_sink.h> 26 #include <gnuradio/hier_block2.h> 27 #include <gnuradio/uhd/usrp_source.h> 33 #if GNURADIO_USES_STD_POINTERS 35 #include <boost/shared_ptr.hpp> 48 const std::string& role,
unsigned int in_stream,
53 inline std::string role()
override 63 return "UHD_Signal_Source";
66 inline size_t item_size()
override 71 void connect(gr::top_block_sptr top_block)
override;
72 void disconnect(gr::top_block_sptr top_block)
override;
73 gr::basic_block_sptr get_left_block()
override;
74 gr::basic_block_sptr get_right_block()
override;
75 gr::basic_block_sptr get_right_block(
int RF_channel)
override;
78 gr::uhd::usrp_source::sptr uhd_source_;
79 #if GNURADIO_USES_STD_POINTERS 80 std::vector<std::shared_ptr<gr::block>> valve_;
82 std::vector<boost::shared_ptr<gr::block>> valve_;
84 std::vector<gr::blocks::file_sink::sptr> file_sink_;
85 std::vector<double> freq_;
86 std::vector<double> gain_;
87 std::vector<double> IF_bandwidth_hz_;
88 std::vector<uint64_t> samples_;
89 std::vector<std::string> dump_filename_;
90 std::vector<bool> dump_;
92 uhd::stream_args_t uhd_stream_args_;
94 std::string device_address_;
95 std::string item_type_;
96 std::string subdevice_;
97 std::string clock_source_;
103 unsigned int in_stream_;
104 unsigned int out_stream_;
107 #endif // GNSS_SDR_UHD_SIGNAL_SOURCE_H Interface of a thread-safe std::queue.
This class reads samples from a UHD device (see http://code.ettus.com/redmine/ettus/projects/uhd/wiki...
This interface represents a GNSS block.
This abstract class represents an interface to configuration parameters.
std::string implementation() override
Returns "UHD_Signal_Source".
This abstract class represents an interface to GNSS blocks.