24 #ifndef GNSS_SDR_NSR_FILE_SIGNAL_SOURCE_H 25 #define GNSS_SDR_NSR_FILE_SIGNAL_SOURCE_H 30 #include <gnuradio/blocks/file_sink.h> 31 #include <gnuradio/blocks/file_source.h> 32 #include <gnuradio/blocks/throttle.h> 33 #include <gnuradio/hier_block2.h> 37 #if GNURADIO_USES_STD_POINTERS 39 #include <boost/shared_ptr.hpp> 52 unsigned int in_streams,
unsigned int out_streams,
56 inline std::string role()
override 66 return "Nsr_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()
override;
79 inline std::string filename()
const 84 inline std::string item_type()
const 89 inline bool repeat()
const 94 inline int64_t sampling_frequency()
const 96 return sampling_frequency_;
99 inline uint64_t samples()
const 105 gr::blocks::file_source::sptr file_source_;
106 unpack_byte_2bit_samples_sptr unpack_byte_;
107 #if GNURADIO_USES_STD_POINTERS 108 std::shared_ptr<gr::block> valve_;
110 boost::shared_ptr<gr::block> valve_;
112 gr::blocks::file_sink::sptr sink_;
113 gr::blocks::throttle::sptr throttle_;
115 int64_t sampling_frequency_;
117 std::string filename_;
118 std::string item_type_;
119 std::string dump_filename_;
121 uint32_t in_streams_;
122 uint32_t out_streams_;
126 bool enable_throttle_control_;
129 #endif // GNSS_SDR_NSR_FILE_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.
std::string implementation() override
Returns "Nsr_File_Signal_Source".
Class that reads signals samples from a file and adapts it to a SignalSourceInterface.
Unpacks byte samples to NSR 2 bits samples.
This abstract class represents an interface to GNSS blocks.