23 #ifndef INCLUDED_GR_UHD_USRP_SOURCE_H
24 #define INCLUDED_GR_UHD_USRP_SOURCE_H
29 #ifndef INCLUDED_UHD_STREAM_HPP
34 const std::string &otw =
"")
39 std::string cpu_format;
40 std::string otw_format;
42 std::vector<size_t> channels;
45 # define INCLUDED_UHD_STREAM_HPP
47 # define GR_UHD_USE_STREAM_API
53 class uhd_usrp_source;
83 typedef boost::shared_ptr<usrp_source>
sptr;
92 static sptr make(const ::uhd::device_addr_t &device_addr,
93 const ::uhd::io_type_t &io_type,
103 static sptr make(const ::uhd::device_addr_t &device_addr,
104 const ::uhd::stream_args_t &stream_args,
105 const bool issue_stream_cmd_on_start =
true);
118 virtual void set_start_time(const ::uhd::time_spec_t &time) = 0;
132 virtual void issue_stream_cmd(const ::uhd::stream_cmd_t &cmd) = 0;
141 virtual ::uhd::dict<std::string, std::string> get_usrp_info(
size_t chan = 0) = 0;
149 virtual std::vector<std::string> get_lo_names(
size_t chan = 0) = 0;
160 virtual void set_lo_source(
const std::string &src,
const std::string &name,
size_t chan = 0) = 0;
168 virtual const std::string get_lo_source(
const std::string &name,
size_t chan = 0) = 0;
176 virtual std::vector<std::string> get_lo_sources(
const std::string &name,
size_t chan = 0) = 0;
186 virtual void set_lo_export_enabled(
bool enabled,
const std::string &name,
size_t chan = 0) = 0;
193 virtual bool get_lo_export_enabled(
const std::string &name,
size_t chan = 0) = 0;
202 virtual double set_lo_freq(
double freq,
const std::string &name,
size_t chan = 0) = 0;
210 virtual double get_lo_freq(
const std::string &name,
size_t chan = 0) = 0;
218 virtual ::uhd::freq_range_t get_lo_freq_range(
const std::string &name,
size_t chan = 0) = 0;
232 virtual void set_auto_dc_offset(
const bool enb,
size_t chan = 0) = 0;
241 virtual void set_dc_offset(
const std::complex<double> &offset,
size_t chan = 0) = 0;
249 virtual void set_auto_iq_balance(
const bool enb,
size_t chan = 0) = 0;
258 virtual void set_iq_balance(
const std::complex<double> &correction,
259 size_t chan = 0) = 0;
269 virtual std::vector<std::complex<float> >
270 finite_acquisition(
const size_t nsamps) = 0;
281 virtual std::vector<std::vector<std::complex<float> > >
282 finite_acquisition_v(
const size_t nsamps) = 0;
Definition: usrp_block.h:41
Definition: usrp_source.h:79
Definition: usrp_sink.h:30
Include this header to use the message passing features.
Definition: logger.h:131
stream_args_t(const std::string &cpu="", const std::string &otw="")
Definition: usrp_source.h:33
#define GR_UHD_API
Definition: gr-uhd/include/gnuradio/uhd/api.h:30
boost::shared_ptr< usrp_source > sptr
Definition: usrp_source.h:83