21 #ifndef GNSS_SDR_SPIR_GSS6450_FILE_SIGNAL_SOURCE_H 22 #define GNSS_SDR_SPIR_GSS6450_FILE_SIGNAL_SOURCE_H 28 #include <gnuradio/blocks/deinterleave.h> 29 #include <gnuradio/blocks/endian_swap.h> 30 #include <gnuradio/blocks/file_sink.h> 31 #include <gnuradio/blocks/file_source.h> 32 #include <gnuradio/blocks/null_sink.h> 33 #include <gnuradio/blocks/throttle.h> 34 #include <gnuradio/hier_block2.h> 40 #if GNURADIO_USES_STD_POINTERS 42 #include <boost/shared_ptr.hpp> 59 inline std::string role()
override 64 inline std::string implementation()
override 66 return "Spir_GSS6450_File_Signal_Source";
69 inline size_t item_size()
override 74 void connect(gr::top_block_sptr top_block)
override;
75 void disconnect(gr::top_block_sptr top_block)
override;
76 gr::basic_block_sptr get_left_block()
override;
77 gr::basic_block_sptr get_right_block(
int RF_channel)
override;
78 gr::basic_block_sptr get_right_block()
override;
80 inline std::string filename()
const 85 inline std::string item_type()
const 90 inline bool repeat()
const 95 inline int64_t sampling_frequency()
const 97 return sampling_frequency_;
100 inline uint64_t samples()
const 106 gr::blocks::file_source::sptr file_source_;
107 gr::blocks::deinterleave::sptr deint_;
108 #if GNURADIO_USES_STD_POINTERS 109 std::vector<std::shared_ptr<gr::block>> valve_vec_;
111 std::vector<boost::shared_ptr<gr::block>> valve_vec_;
113 std::vector<gr::blocks::endian_swap::sptr> endian_vec_;
114 std::vector<gr::blocks::null_sink::sptr> null_sinks_;
115 std::vector<unpack_spir_gss6450_samples_sptr> unpack_spir_vec_;
116 std::vector<gr::blocks::file_sink::sptr> sink_vec_;
117 std::vector<gr::blocks::throttle::sptr> throttle_vec_;
118 std::string filename_;
119 std::string dump_filename_;
121 std::string item_type_;
123 int64_t sampling_frequency_;
125 uint32_t in_streams_;
126 uint32_t out_streams_;
132 bool enable_throttle_control_;
136 #endif // GNSS_SDR_SPIR_GSS6450_FILE_SIGNAL_SOURCE_H Interface of a thread-safe std::queue.
Interface of a GNU Radio block that sends a STOP message to the control queue right after a specific ...
Unpacks SPIR int samples.
This interface represents a GNSS block.
This abstract class represents an interface to configuration parameters.
This abstract class represents an interface to GNSS blocks.
Class that reads signals samples from a file and adapts it to a SignalSourceInterface.