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,
101 static sptr make(const ::uhd::device_addr_t &device_addr,
102 const ::uhd::stream_args_t &stream_args);
115 virtual void set_start_time(const ::uhd::time_spec_t &time) = 0;
129 virtual void issue_stream_cmd(const ::uhd::stream_cmd_t &cmd) = 0;
138 virtual ::uhd::dict<std::string, std::string> get_usrp_info(
size_t chan = 0) = 0;
152 virtual void set_auto_dc_offset(
const bool enb,
size_t chan = 0) = 0;
161 virtual void set_dc_offset(
const std::complex<double> &offset,
size_t chan = 0) = 0;
169 virtual void set_auto_iq_balance(
const bool enb,
size_t chan = 0) = 0;
178 virtual void set_iq_balance(
const std::complex<double> &correction,
179 size_t chan = 0) = 0;
189 virtual std::vector<std::complex<float> >
190 finite_acquisition(
const size_t nsamps) = 0;
201 virtual std::vector<std::vector<std::complex<float> > >
202 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