23 #ifndef GNSS_SDR_TWO_BIT_CPX_FILE_SIGNAL_SOURCE_H 24 #define GNSS_SDR_TWO_BIT_CPX_FILE_SIGNAL_SOURCE_H 29 #include <gnuradio/blocks/file_sink.h> 30 #include <gnuradio/blocks/file_source.h> 31 #include <gnuradio/blocks/interleaved_short_to_complex.h> 32 #include <gnuradio/blocks/throttle.h> 33 #include <gnuradio/hier_block2.h> 38 #if GNURADIO_USES_STD_POINTERS 40 #include <boost/shared_ptr.hpp> 54 const std::string& role,
55 unsigned int in_streams,
56 unsigned int out_streams,
60 inline std::string role()
override 70 return "Two_Bit_Cpx_File_Signal_Source";
73 inline size_t item_size()
override 78 void connect(gr::top_block_sptr top_block)
override;
79 void disconnect(gr::top_block_sptr top_block)
override;
80 gr::basic_block_sptr get_left_block()
override;
81 gr::basic_block_sptr get_right_block()
override;
83 inline std::string filename()
const 88 inline std::string item_type()
const 93 inline bool repeat()
const 98 inline int64_t sampling_frequency()
const 100 return sampling_frequency_;
103 inline uint64_t samples()
const 109 gr::blocks::file_source::sptr file_source_;
110 gr::blocks::interleaved_short_to_complex::sptr inter_shorts_to_cpx_;
111 unpack_byte_2bit_cpx_samples_sptr unpack_byte_;
112 #if GNURADIO_USES_STD_POINTERS 113 std::shared_ptr<gr::block> valve_;
115 boost::shared_ptr<gr::block> valve_;
117 gr::blocks::file_sink::sptr sink_;
118 gr::blocks::throttle::sptr throttle_;
119 std::string filename_;
120 std::string item_type_;
121 std::string dump_filename_;
125 int64_t sampling_frequency_;
126 unsigned int in_streams_;
127 unsigned int out_streams_;
131 bool enable_throttle_control_;
134 #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".