21 #ifndef GNSS_SDR_TWO_BIT_PACKED_FILE_SIGNAL_SOURCE_H 22 #define GNSS_SDR_TWO_BIT_PACKED_FILE_SIGNAL_SOURCE_H 27 #include <gnuradio/blocks/file_sink.h> 28 #include <gnuradio/blocks/file_source.h> 29 #include <gnuradio/blocks/interleaved_char_to_complex.h> 30 #include <gnuradio/blocks/throttle.h> 31 #include <gnuradio/hier_block2.h> 53 unsigned int in_streams,
unsigned int out_streams,
57 inline std::string role()
override 67 return "Two_Bit_Packed_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 105 inline bool big_endian_items()
const 107 return big_endian_items_;
110 inline bool big_endian_bytes()
const 112 return big_endian_bytes_;
115 inline bool is_complex()
const 120 inline bool reverse_interleaving()
const 122 return reverse_interleaving_;
126 gr::blocks::file_source::sptr file_source_;
127 unpack_2bit_samples_sptr unpack_samples_;
128 gr::basic_block_sptr char_to_float_;
129 gnss_shared_ptr<gr::block> valve_;
130 gr::blocks::file_sink::sptr sink_;
131 gr::blocks::throttle::sptr throttle_;
132 std::string filename_;
133 std::string item_type_;
134 std::string dump_filename_;
136 std::string sample_type_;
138 int64_t sampling_frequency_;
140 unsigned int in_streams_;
141 unsigned int out_streams_;
142 bool big_endian_items_;
143 bool big_endian_bytes_;
145 bool reverse_interleaving_;
149 bool enable_throttle_control_;
155 #endif // GNSS_SDR_TWO_BIT_CPX_FILE_SIGNAL_SOURCE_H Interface of a thread-safe std::queue.
Class that reads signals samples from a file and adapts it to a SignalSourceInterface.
This interface represents a GNSS block.
This abstract class represents an interface to configuration parameters.
std::string implementation() override
Returns "Two_Bit_Packed_File_Signal_Source".
This abstract class represents an interface to GNSS blocks.
Unpacks 2 bit samples samples may be packed in any of the following ways: 1) Into bytes [ item == byt...