20 #ifndef GNSS_SDR_TWO_BIT_CPX_FILE_SIGNAL_SOURCE_H 21 #define GNSS_SDR_TWO_BIT_CPX_FILE_SIGNAL_SOURCE_H 26 #include <gnuradio/blocks/file_sink.h> 27 #include <gnuradio/blocks/file_source.h> 28 #include <gnuradio/blocks/interleaved_short_to_complex.h> 29 #include <gnuradio/blocks/throttle.h> 30 #include <gnuradio/hier_block2.h> 51 const std::string& role,
52 unsigned int in_streams,
53 unsigned int out_streams,
57 inline std::string role()
override 67 return "Two_Bit_Cpx_File_Signal_Source";
70 inline size_t item_size()
override 75 void connect(gr::top_block_sptr top_block)
override;
76 void disconnect(gr::top_block_sptr top_block)
override;
77 gr::basic_block_sptr get_left_block()
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::interleaved_short_to_complex::sptr inter_shorts_to_cpx_;
108 unpack_byte_2bit_cpx_samples_sptr unpack_byte_;
109 gnss_shared_ptr<gr::block> valve_;
110 gr::blocks::file_sink::sptr sink_;
111 gr::blocks::throttle::sptr throttle_;
112 std::string filename_;
113 std::string item_type_;
114 std::string dump_filename_;
118 int64_t sampling_frequency_;
119 unsigned int in_streams_;
120 unsigned int out_streams_;
124 bool enable_throttle_control_;
130 #endif // GNSS_SDR_TWO_BIT_CPX_FILE_SIGNAL_SOURCE_H Interface of a thread-safe std::queue.
Unpacks byte samples to 2 bits complex samples. Packing Order Most Significant Nibble - Sample n Leas...
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.
std::string implementation() override
Returns "Two_Bit_Cpx_File_Signal_Source".