22 #ifndef GNSS_SDR_OSMOSDR_SIGNAL_SOURCE_H 23 #define GNSS_SDR_OSMOSDR_SIGNAL_SOURCE_H 27 #include <gnuradio/blocks/file_sink.h> 31 #include <osmosdr/source.h> 34 #if GNURADIO_USES_STD_POINTERS 36 #include <boost/shared_ptr.hpp> 50 const std::string& role,
unsigned int in_stream,
55 inline std::string role()
override 65 return "Osmosdr_Signal_Source";
68 inline size_t item_size()
override 73 void connect(gr::top_block_sptr top_block)
override;
74 void disconnect(gr::top_block_sptr top_block)
override;
75 gr::basic_block_sptr get_left_block()
override;
76 gr::basic_block_sptr get_right_block()
override;
79 void driver_instance();
81 osmosdr::source::sptr osmosdr_source_;
82 #if GNURADIO_USES_STD_POINTERS 83 std::shared_ptr<gr::block> valve_;
85 boost::shared_ptr<gr::block> valve_;
87 gr::blocks::file_sink::sptr file_sink_;
90 std::string item_type_;
91 std::string dump_filename_;
92 std::string osmosdr_args_;
105 unsigned int in_stream_;
106 unsigned int out_stream_;
112 #endif // GNSS_SDR_OSMOSDR_SIGNAL_SOURCE_H Interface of a thread-safe std::queue.
This interface represents a GNSS block.
This abstract class represents an interface to configuration parameters.
This class reads samples OsmoSDR-compatible front-ends, such as HackRF or Realtek's RTL2832U-based US...
std::string implementation() override
Returns "Osmosdr_Signal_Source".
This abstract class represents an interface to GNSS blocks.