23 #ifndef INCLUDED_GR_UHD_USRP_SOURCE_H 24 #define INCLUDED_GR_UHD_USRP_SOURCE_H 31 class uhd_usrp_source;
61 typedef boost::shared_ptr<usrp_source>
sptr;
69 static sptr make(const ::uhd::device_addr_t& device_addr,
70 const ::uhd::stream_args_t& stream_args,
71 const bool issue_stream_cmd_on_start =
true);
84 virtual void set_start_time(const ::uhd::time_spec_t& time) = 0;
98 virtual void issue_stream_cmd(const ::uhd::stream_cmd_t& cmd) = 0;
122 virtual void set_recv_timeout(
const double timeout,
const bool one_packet =
true) = 0;
131 virtual ::uhd::dict<std::string, std::string> get_usrp_info(
size_t chan = 0) = 0;
139 virtual std::vector<std::string> get_lo_names(
size_t chan = 0) = 0;
151 set_lo_source(
const std::string& src,
const std::string& name,
size_t chan = 0) = 0;
159 virtual const std::string get_lo_source(
const std::string& name,
size_t chan = 0) = 0;
167 virtual std::vector<std::string> get_lo_sources(
const std::string& name,
168 size_t chan = 0) = 0;
179 set_lo_export_enabled(
bool enabled,
const std::string& name,
size_t chan = 0) = 0;
186 virtual bool get_lo_export_enabled(
const std::string& name,
size_t chan = 0) = 0;
195 virtual double set_lo_freq(
double freq,
const std::string& name,
size_t chan = 0) = 0;
203 virtual double get_lo_freq(
const std::string& name,
size_t chan = 0) = 0;
211 virtual ::uhd::freq_range_t get_lo_freq_range(
const std::string& name,
212 size_t chan = 0) = 0;
226 virtual void set_auto_dc_offset(
const bool enb,
size_t chan = 0) = 0;
235 virtual void set_dc_offset(
const std::complex<double>& offset,
size_t chan = 0) = 0;
243 virtual void set_auto_iq_balance(
const bool enb,
size_t chan = 0) = 0;
252 virtual void set_iq_balance(
const std::complex<double>& correction,
253 size_t chan = 0) = 0;
262 virtual void set_rx_agc(
const bool enable,
size_t chan = 0) = 0;
272 virtual std::vector<std::complex<float>> finite_acquisition(
const size_t nsamps) = 0;
283 virtual std::vector<std::vector<std::complex<float>>>
284 finite_acquisition_v(
const size_t nsamps) = 0;
Definition: usrp_block.h:59
Definition: usrp_source.h:57
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition: basic_block.h:43
#define GR_UHD_API
Definition: gr-uhd/include/gnuradio/uhd/api.h:30
boost::shared_ptr< usrp_source > sptr
Definition: usrp_source.h:61