11 #ifndef INCLUDED_GR_UHD_USRP_SOURCE_H
12 #define INCLUDED_GR_UHD_USRP_SOURCE_H
19 class uhd_usrp_source;
49 typedef std::shared_ptr<usrp_source>
sptr;
57 static sptr make(const ::uhd::device_addr_t& device_addr,
58 const ::uhd::stream_args_t& stream_args,
59 const bool issue_stream_cmd_on_start =
true);
61 static sptr make(
const std::string& device_addr_str,
62 const ::uhd::stream_args_t& stream_args,
63 const bool issue_stream_cmd_on_start =
true)
65 return make(::uhd::device_addr_t(device_addr_str),
67 issue_stream_cmd_on_start);
139 set_lo_source(
const std::string& src,
const std::string& name,
size_t chan = 0) = 0;
147 virtual const std::string
get_lo_source(
const std::string& name,
size_t chan = 0) = 0;
156 size_t chan = 0) = 0;
183 virtual double set_lo_freq(
double freq,
const std::string& name,
size_t chan = 0) = 0;
191 virtual double get_lo_freq(
const std::string& name,
size_t chan = 0) = 0;
200 size_t chan = 0) = 0;
223 virtual void set_dc_offset(
const std::complex<double>& offset,
size_t chan = 0) = 0;
241 size_t chan = 0) = 0;
250 virtual void set_rx_agc(
const bool enable,
size_t chan = 0) = 0;
271 virtual std::vector<std::vector<std::complex<float>>>
Definition: usrp_block.h:32
Definition: usrp_source.h:46
virtual void set_auto_iq_balance(const bool enb, size_t chan=0)=0
static sptr make(const ::uhd::device_addr_t &device_addr, const ::uhd::stream_args_t &stream_args, const bool issue_stream_cmd_on_start=true)
virtual ::uhd::freq_range_t get_lo_freq_range(const std::string &name, size_t chan=0)=0
virtual void set_lo_export_enabled(bool enabled, const std::string &name, size_t chan=0)=0
virtual void issue_stream_cmd(const ::uhd::stream_cmd_t &cmd)=0
virtual const std::string get_lo_source(const std::string &name, size_t chan=0)=0
virtual void set_recv_timeout(const double timeout, const bool one_packet=true)=0
virtual void set_rx_agc(const bool enable, size_t chan=0)=0
virtual std::vector< std::complex< float > > finite_acquisition(const size_t nsamps)=0
virtual std::vector< std::string > get_lo_names(size_t chan=0)=0
virtual bool get_lo_export_enabled(const std::string &name, size_t chan=0)=0
virtual std::vector< std::string > get_lo_sources(const std::string &name, size_t chan=0)=0
virtual void set_start_time(const ::uhd::time_spec_t &time)=0
virtual double set_lo_freq(double freq, const std::string &name, size_t chan=0)=0
virtual void set_iq_balance(const std::complex< double > &correction, size_t chan=0)=0
std::shared_ptr< usrp_source > sptr
Definition: usrp_source.h:49
virtual double get_lo_freq(const std::string &name, size_t chan=0)=0
virtual void set_auto_dc_offset(const bool enb, size_t chan=0)=0
static sptr make(const std::string &device_addr_str, const ::uhd::stream_args_t &stream_args, const bool issue_stream_cmd_on_start=true)
Definition: usrp_source.h:61
virtual void set_lo_source(const std::string &src, const std::string &name, size_t chan=0)=0
virtual void set_dc_offset(const std::complex< double > &offset, size_t chan=0)=0
virtual std::vector< std::vector< std::complex< float > > > finite_acquisition_v(const size_t nsamps)=0
#define GR_UHD_API
Definition: gr-uhd/include/gnuradio/uhd/api.h:18
GNU Radio logging wrapper.
Definition: basic_block.h:29