19 #ifndef GNSS_SDR_OSMOSDR_SIGNAL_SOURCE_H 20 #define GNSS_SDR_OSMOSDR_SIGNAL_SOURCE_H 24 #include <gnuradio/blocks/file_sink.h> 28 #include <osmosdr/source.h> 49 const std::string& role,
unsigned int in_stream,
54 inline std::string role()
override 64 return "Osmosdr_Signal_Source";
67 inline size_t item_size()
override 72 void connect(gr::top_block_sptr top_block)
override;
73 void disconnect(gr::top_block_sptr top_block)
override;
74 gr::basic_block_sptr get_left_block()
override;
75 gr::basic_block_sptr get_right_block()
override;
78 void driver_instance();
80 osmosdr::source::sptr osmosdr_source_;
81 gnss_shared_ptr<gr::block> valve_;
82 gr::blocks::file_sink::sptr file_sink_;
85 std::string item_type_;
86 std::string dump_filename_;
87 std::string osmosdr_args_;
100 unsigned int in_stream_;
101 unsigned int out_stream_;
110 #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.