23 #ifndef GNSS_SDR_FMCOMMS2_SIGNAL_SOURCE_H 24 #define GNSS_SDR_FMCOMMS2_SIGNAL_SOURCE_H 27 #include <gnuradio/blocks/file_sink.h> 28 #if GRIIO_INCLUDE_HAS_GNURADIO 29 #include <gnuradio/iio/fmcomms2_source.h> 31 #include <iio/fmcomms2_source.h> 38 #if GNURADIO_USES_STD_POINTERS 40 #include <boost/shared_ptr.hpp> 49 const std::string& role,
unsigned int in_stream,
54 inline std::string role()
override 64 return "Fmcomms2_Signal_Source";
67 inline size_t item_size()
override 72 void connect(gr::top_block_sptr top_block)
override;
73 void disconnect(gr::top_block_sptr top_block)
override;
74 gr::basic_block_sptr get_left_block()
override;
75 gr::basic_block_sptr get_right_block()
override;
78 gr::iio::fmcomms2_source_f32c::sptr fmcomms2_source_f32c_;
80 #if GNURADIO_USES_STD_POINTERS 81 std::shared_ptr<gr::block> valve_;
83 boost::shared_ptr<gr::block> valve_;
85 gr::blocks::file_sink::sptr file_sink_;
88 std::string item_type_;
89 std::string dump_filename_;
93 std::string gain_mode_rx1_;
94 std::string gain_mode_rx2_;
95 std::string rf_port_select_;
96 std::string filter_file_;
97 std::string filter_source_;
98 std::string filter_filename_;
103 unsigned int in_stream_;
104 unsigned int out_stream_;
109 uint64_t sample_rate_;
111 uint64_t buffer_size_;
117 double scale_dds_dbfs_;
118 double phase_dds_deg_;
119 double tx_attenuation_db_;
120 uint64_t freq_rf_tx_hz_;
121 uint64_t freq_dds_tx_hz_;
122 uint64_t tx_bandwidth_;
135 #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".