17 #ifndef GNSS_SDR_UHD_SIGNAL_SOURCE_H 18 #define GNSS_SDR_UHD_SIGNAL_SOURCE_H 22 #include <gnuradio/blocks/file_sink.h> 23 #include <gnuradio/hier_block2.h> 24 #include <gnuradio/uhd/usrp_source.h> 45 const std::string& role,
unsigned int in_stream,
50 inline std::string role()
override 60 return "UHD_Signal_Source";
63 inline size_t item_size()
override 68 void connect(gr::top_block_sptr top_block)
override;
69 void disconnect(gr::top_block_sptr top_block)
override;
70 gr::basic_block_sptr get_left_block()
override;
71 gr::basic_block_sptr get_right_block()
override;
72 gr::basic_block_sptr get_right_block(
int RF_channel)
override;
75 gr::uhd::usrp_source::sptr uhd_source_;
77 std::vector<gnss_shared_ptr<gr::block>> valve_;
78 std::vector<gr::blocks::file_sink::sptr> file_sink_;
79 std::vector<double> freq_;
80 std::vector<double> gain_;
81 std::vector<double> IF_bandwidth_hz_;
82 std::vector<uint64_t> samples_;
83 std::vector<std::string> dump_filename_;
84 std::vector<bool> dump_;
86 uhd::stream_args_t uhd_stream_args_;
88 std::string device_address_;
89 std::string item_type_;
90 std::string subdevice_;
91 std::string clock_source_;
97 unsigned int in_stream_;
98 unsigned int out_stream_;
104 #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.