24 #ifndef GNSS_SDR_TWO_BIT_PACKED_FILE_SIGNAL_SOURCE_H 25 #define GNSS_SDR_TWO_BIT_PACKED_FILE_SIGNAL_SOURCE_H 30 #include <gnuradio/blocks/file_sink.h> 31 #include <gnuradio/blocks/file_source.h> 32 #include <gnuradio/blocks/interleaved_char_to_complex.h> 33 #include <gnuradio/blocks/throttle.h> 34 #include <gnuradio/hier_block2.h> 39 #if GNURADIO_USES_STD_POINTERS 41 #include <boost/shared_ptr.hpp> 55 unsigned int in_streams,
unsigned int out_streams,
59 inline std::string role()
override 69 return "Two_Bit_Packed_File_Signal_Source";
72 inline size_t item_size()
override 77 void connect(gr::top_block_sptr top_block)
override;
78 void disconnect(gr::top_block_sptr top_block)
override;
79 gr::basic_block_sptr get_left_block()
override;
80 gr::basic_block_sptr get_right_block()
override;
82 inline std::string filename()
const 87 inline std::string item_type()
const 92 inline bool repeat()
const 97 inline int64_t sampling_frequency()
const 99 return sampling_frequency_;
102 inline uint64_t samples()
const 107 inline bool big_endian_items()
const 109 return big_endian_items_;
112 inline bool big_endian_bytes()
const 114 return big_endian_bytes_;
117 inline bool is_complex()
const 122 inline bool reverse_interleaving()
const 124 return reverse_interleaving_;
128 gr::blocks::file_source::sptr file_source_;
129 unpack_2bit_samples_sptr unpack_samples_;
130 gr::basic_block_sptr char_to_float_;
131 #if GNURADIO_USES_STD_POINTERS 132 std::shared_ptr<gr::block> valve_;
134 boost::shared_ptr<gr::block> valve_;
136 gr::blocks::file_sink::sptr sink_;
137 gr::blocks::throttle::sptr throttle_;
138 std::string filename_;
139 std::string item_type_;
140 std::string dump_filename_;
142 std::string sample_type_;
144 int64_t sampling_frequency_;
146 unsigned int in_streams_;
147 unsigned int out_streams_;
148 bool big_endian_items_;
149 bool big_endian_bytes_;
151 bool reverse_interleaving_;
155 bool enable_throttle_control_;
158 #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...