21 #ifndef GNSS_SDR_SPIR_FILE_SIGNAL_SOURCE_H 22 #define GNSS_SDR_SPIR_FILE_SIGNAL_SOURCE_H 27 #include <gnuradio/blocks/file_sink.h> 28 #include <gnuradio/blocks/file_source.h> 29 #include <gnuradio/blocks/throttle.h> 30 #include <gnuradio/hier_block2.h> 35 #if GNURADIO_USES_STD_POINTERS 37 #include <boost/shared_ptr.hpp> 50 unsigned int in_streams,
unsigned int out_streams,
55 inline std::string role()
override 65 return "Spir_File_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;
78 inline std::string filename()
const 83 inline std::string item_type()
const 88 inline bool repeat()
const 93 inline int64_t sampling_frequency()
const 95 return sampling_frequency_;
98 inline uint64_t samples()
const 104 gr::blocks::file_source::sptr file_source_;
105 unpack_intspir_1bit_samples_sptr unpack_intspir_;
106 #if GNURADIO_USES_STD_POINTERS 107 std::shared_ptr<gr::block> valve_;
109 boost::shared_ptr<gr::block> valve_;
111 gr::blocks::file_sink::sptr sink_;
112 gr::blocks::throttle::sptr throttle_;
113 std::string filename_;
114 std::string item_type_;
115 std::string dump_filename_;
119 int64_t sampling_frequency_;
122 unsigned int in_streams_;
123 unsigned int out_streams_;
129 bool enable_throttle_control_;
132 #endif // GNSS_SDR_SPIR_FILE_SIGNAL_SOURCE_H Interface of a thread-safe std::queue.
std::string implementation() override
Returns "Spir_File_Signal_Source".
Unpacks SPIR int samples to NSR 1 bit samples.
This interface represents a GNSS block.
This abstract class represents an interface to configuration parameters.
Class that reads signals samples from a file and adapts it to a SignalSourceInterface.
This abstract class represents an interface to GNSS blocks.