21 #ifndef GNSS_SDR_CUSTOM_UDP_SIGNAL_SOURCE_H 22 #define GNSS_SDR_CUSTOM_UDP_SIGNAL_SOURCE_H 27 #include <gnuradio/blocks/file_sink.h> 28 #include <gnuradio/blocks/null_sink.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 "Custom_UDP_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;
77 gr::basic_block_sptr get_right_block(
int RF_channel)
override;
80 Gr_Complex_Ip_Packet_Source::sptr udp_gnss_rx_source_;
81 #if GNURADIO_USES_STD_POINTERS 82 std::vector<std::shared_ptr<gr::block>> null_sinks_;
83 std::vector<std::shared_ptr<gr::block>> file_sink_;
85 std::vector<boost::shared_ptr<gr::block>> null_sinks_;
86 std::vector<boost::shared_ptr<gr::block>> file_sink_;
90 std::string item_type_;
91 std::string dump_filename_;
97 unsigned int in_stream_;
98 unsigned int out_stream_;
104 #endif // GNSS_SDR_CUSTOM_UDP_SIGNAL_SOURCE_H Interface of a thread-safe std::queue.
std::string implementation() override
Returns "Custom_UDP_Signal_Source".
This class reads from UDP packets, which streams interleaved I/Q samples over a network.
Receives ip frames containing samples in UDP frame encapsulation using a high performance packet capt...
This interface represents a GNSS block.
This abstract class represents an interface to configuration parameters.
This abstract class represents an interface to GNSS blocks.