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 size_t item_size()
override 58 void connect(gr::top_block_sptr top_block)
override;
59 void disconnect(gr::top_block_sptr top_block)
override;
60 gr::basic_block_sptr get_left_block()
override;
61 gr::basic_block_sptr get_right_block()
override;
64 const std::string default_gain_mode = std::string(
"slow_attack");
65 const double default_tx_attenuation_db = -10.0;
68 #if GR_IIO_TEMPLATIZED_API 69 gr::iio::fmcomms2_source<gr_complex>::sptr fmcomms2_source_f32c_;
71 gr::iio::fmcomms2_source::sptr fmcomms2_source_f32c_;
74 gr::iio::fmcomms2_source_f32c::sptr fmcomms2_source_f32c_;
76 gnss_shared_ptr<gr::block> valve_;
77 gr::blocks::file_sink::sptr file_sink_;
79 std::string item_type_;
80 std::string dump_filename_;
84 std::string gain_mode_rx1_;
85 std::string gain_mode_rx2_;
86 std::string rf_port_select_;
87 std::string filter_file_;
88 std::string filter_source_;
89 std::string filter_filename_;
97 uint64_t sample_rate_;
99 uint64_t buffer_size_;
102 unsigned int in_stream_;
103 unsigned int out_stream_;
107 double scale_dds_dbfs_;
108 double phase_dds_deg_;
109 double tx_attenuation_db_;
110 uint64_t freq_dds_tx_hz_;
111 uint64_t freq_rf_tx_hz_;
112 uint64_t tx_bandwidth_;
128 #endif // GNSS_SDR_FMCOMMS2_SIGNAL_SOURCE_H Interface of a thread-safe std::queue.
Header file of the base class to signal_source GNSS blocks.
This abstract class represents an interface to configuration parameters.