20 #ifndef GNSS_SDR_FMCOMMS2_SIGNAL_SOURCE_H 21 #define GNSS_SDR_FMCOMMS2_SIGNAL_SOURCE_H 24 #include <gnuradio/blocks/file_sink.h> 25 #if GRIIO_INCLUDE_HAS_GNURADIO 26 #include <gnuradio/iio/fmcomms2_source.h> 28 #include <iio/fmcomms2_source.h> 48 const std::string& role,
unsigned int in_stream,
53 inline std::string role()
override 63 return "Fmcomms2_Signal_Source";
66 inline size_t item_size()
override 71 void connect(gr::top_block_sptr top_block)
override;
72 void disconnect(gr::top_block_sptr top_block)
override;
73 gr::basic_block_sptr get_left_block()
override;
74 gr::basic_block_sptr get_right_block()
override;
77 gr::iio::fmcomms2_source_f32c::sptr fmcomms2_source_f32c_;
78 gnss_shared_ptr<gr::block> valve_;
79 gr::blocks::file_sink::sptr file_sink_;
82 std::string item_type_;
83 std::string dump_filename_;
87 std::string gain_mode_rx1_;
88 std::string gain_mode_rx2_;
89 std::string rf_port_select_;
90 std::string filter_file_;
91 std::string filter_source_;
92 std::string filter_filename_;
97 unsigned int in_stream_;
98 unsigned int out_stream_;
103 uint64_t sample_rate_;
105 uint64_t buffer_size_;
111 double scale_dds_dbfs_;
112 double phase_dds_deg_;
113 double tx_attenuation_db_;
114 uint64_t freq_rf_tx_hz_;
115 uint64_t freq_dds_tx_hz_;
116 uint64_t tx_bandwidth_;
132 #endif // GNSS_SDR_FMCOMMS2_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.
This abstract class represents an interface to GNSS blocks.
std::string implementation() override
Returns "Fmcomms2_Signal_Source".