| USRP Hardware Driver and Device Manual Version: 4.10.0.0 UHD and USRP Manual |

Loading...
Searching...
No Matches
multi_usrp.hpp
Go to the documentation of this file.
1//
2// Copyright 2010-2012,2014-2015 Ettus Research LLC
3// Copyright 2018 Ettus Research, a National Instruments Company
4//
5// SPDX-License-Identifier: GPL-3.0-or-later
6//
7
8#pragma once
9
10// define API capabilities for compile time detection of new features
11#define UHD_USRP_MULTI_USRP_REF_SOURCES_API
12#define UHD_USRP_MULTI_USRP_GET_RATES_API
13#define UHD_USRP_MULTI_USRP_FRONTEND_CAL_API
14#define UHD_USRP_MULTI_USRP_FRONTEND_IQ_AUTO_API
15#define UHD_USRP_MULTI_USRP_COMMAND_TIME_API
16#define UHD_USRP_MULTI_USRP_BW_RANGE_API
17#define UHD_USRP_MULTI_USRP_USER_REGS_API
18#define UHD_USRP_MULTI_USRP_GET_USRP_INFO_API
19#define UHD_USRP_MULTI_USRP_NORMALIZED_GAIN
20#define UHD_USRP_MULTI_USRP_GPIO_API
21#define UHD_USRP_MULTI_USRP_REGISTER_API
22#define UHD_USRP_MULTI_USRP_FILTER_API
23#define UHD_USRP_MULTI_USRP_LO_CONFIG_API
24#define UHD_USRP_MULTI_USRP_TX_LO_CONFIG_API
25#define UHD_USRP_MULTI_USRP_POWER_LEVEL
26
27#include <uhd/config.hpp>
28#include <uhd/device.hpp>
29#include <uhd/extension/extension.hpp>
30#include <uhd/rfnoc/mb_controller.hpp>
31#include <uhd/rfnoc/radio_control.hpp>
32#include <uhd/types/filters.hpp>
33#include <uhd/types/ranges.hpp>
34#include <uhd/types/sensors.hpp>
35#include <uhd/types/stream_cmd.hpp>
36#include <uhd/types/tune_request.hpp>
37#include <uhd/types/tune_result.hpp>
38#include <uhd/types/wb_iface.hpp>
39#include <uhd/usrp/dboard_iface.hpp>
40#include <uhd/usrp/subdev_spec.hpp>
41#include <uhd/utils/noncopyable.hpp>
42#include <complex>
43#include <memory>
44#include <string>
45#include <vector>
46
47 namespace uhd { namespace usrp {
48
95 class UHD_API multi_usrp : uhd::noncopyable
96{
97 public:
98 typedef std::shared_ptr<multi_usrp> sptr;
99
100 virtual ~multi_usrp(void) = 0;
101
103 static const size_t ALL_MBOARDS;
104
106 static const size_t ALL_CHANS;
107
109 static const std::string ALL_GAINS;
110
112 static const std::string ALL_LOS;
113
121 static sptr make(const device_addr_t& dev_addr);
122
137 virtual device::sptr get_device(void) = 0;
138
141 virtual uhd::property_tree::sptr get_tree(void) const = 0;
142
144 virtual rx_streamer::sptr get_rx_stream(const stream_args_t& args) = 0;
145
147 virtual tx_streamer::sptr get_tx_stream(const stream_args_t& args) = 0;
148
156 virtual dict<std::string, std::string> get_usrp_rx_info(size_t chan = 0) = 0;
157
165 virtual dict<std::string, std::string> get_usrp_tx_info(size_t chan = 0) = 0;
166
167 /*******************************************************************
168 * Mboard methods
169 ******************************************************************/
170
193 virtual void set_master_clock_rate(double rate, size_t mboard = ALL_MBOARDS) = 0;
194
200 virtual double get_master_clock_rate(size_t mboard = 0) = 0;
201
220 virtual meta_range_t get_master_clock_rate_range(const size_t mboard = 0) = 0;
221
226 virtual std::string get_pp_string(void) = 0;
227
233 virtual std::string get_mboard_name(size_t mboard = 0) = 0;
234
245 virtual time_spec_t get_time_now(size_t mboard = 0) = 0;
246
257 virtual time_spec_t get_time_last_pps(size_t mboard = 0) = 0;
258
268 virtual void set_time_now(
269 const time_spec_t& time_spec, size_t mboard = ALL_MBOARDS) = 0;
270
299 virtual void set_time_next_pps(
300 const time_spec_t& time_spec, size_t mboard = ALL_MBOARDS) = 0;
301
322 virtual void set_time_unknown_pps(const time_spec_t& time_spec) = 0;
323
330 virtual bool get_time_synchronized(void) = 0;
331
342 virtual void set_command_time(
343 const uhd::time_spec_t& time_spec, size_t mboard = ALL_MBOARDS) = 0;
344
350 virtual void clear_command_time(size_t mboard = ALL_MBOARDS) = 0;
351
364 virtual void issue_stream_cmd(
365 const stream_cmd_t& stream_cmd, size_t chan = ALL_CHANS) = 0;
366
409 virtual void set_time_source(
410 const std::string& source, const size_t mboard = ALL_MBOARDS) = 0;
411
417 virtual std::string get_time_source(const size_t mboard) = 0;
418
424 virtual std::vector<std::string> get_time_sources(const size_t mboard) = 0;
425
476 virtual void set_clock_source(
477 const std::string& source, const size_t mboard = ALL_MBOARDS) = 0;
478
484 virtual std::string get_clock_source(const size_t mboard) = 0;
485
491 virtual std::vector<std::string> get_clock_sources(const size_t mboard) = 0;
492
503 virtual void set_sync_source(const std::string& clock_source,
504 const std::string& time_source,
505 const size_t mboard = ALL_MBOARDS) = 0;
506
537 virtual void set_sync_source(
538 const device_addr_t& sync_source, const size_t mboard = ALL_MBOARDS) = 0;
539
545 virtual device_addr_t get_sync_source(const size_t mboard) = 0;
546
552 virtual std::vector<device_addr_t> get_sync_sources(const size_t mboard) = 0;
553
568 virtual void set_clock_source_out(
569 const bool enb, const size_t mboard = ALL_MBOARDS) = 0;
570
585 virtual void set_time_source_out(
586 const bool enb, const size_t mboard = ALL_MBOARDS) = 0;
587
591 virtual size_t get_num_mboards(void) = 0;
592
599 virtual sensor_value_t get_mboard_sensor(
600 const std::string& name, size_t mboard = 0) = 0;
601
607 virtual std::vector<std::string> get_mboard_sensor_names(size_t mboard = 0) = 0;
608
618 virtual void set_user_register(
619 const uint8_t addr, const uint32_t data, size_t mboard = ALL_MBOARDS) = 0;
620
645 virtual uhd::wb_iface::sptr get_user_settings_iface(const size_t chan = 0) = 0;
646
664 virtual uhd::rfnoc::radio_control& get_radio_control(const size_t chan = 0) = 0;
665
673 virtual uhd::extension::extension::sptr get_extension(
674 const direction_t trx, const size_t chan) = 0;
675
685 template <typename T>
686 typename T::sptr get_extension(const direction_t trx, const size_t chan)
687 {
688 return std::dynamic_pointer_cast<T>(get_extension(trx, chan));
689 }
690
691 /*******************************************************************
692 * RX methods
693 ******************************************************************/
704 virtual void set_rx_subdev_spec(
705 const uhd::usrp::subdev_spec_t& spec, size_t mboard = ALL_MBOARDS) = 0;
706
712 virtual uhd::usrp::subdev_spec_t get_rx_subdev_spec(size_t mboard = 0) = 0;
713
719 virtual size_t get_rx_num_channels(void) = 0;
720
726 virtual size_t get_rx_radio_channel(size_t chan = 0) = 0;
727
733 virtual std::string get_rx_subdev_name(size_t chan = 0) = 0;
734
744 virtual void set_rx_rate(double rate, size_t chan = ALL_CHANS) = 0;
745
755 virtual void set_rx_spp(const size_t spp, const size_t chan = ALL_CHANS) = 0;
756
762 virtual double get_rx_rate(size_t chan = 0) = 0;
763
769 virtual meta_range_t get_rx_rates(size_t chan = 0) = 0;
770
781 virtual tune_result_t set_rx_freq(
782 const tune_request_t& tune_request, size_t chan = 0) = 0;
783
789 virtual double get_rx_freq(size_t chan = 0) = 0;
790
800 virtual freq_range_t get_rx_freq_range(size_t chan = 0) = 0;
801
807 virtual freq_range_t get_fe_rx_freq_range(size_t chan = 0) = 0;
808
809 /**************************************************************************
810 * LO controls
811 *************************************************************************/
825 virtual std::vector<std::string> get_rx_lo_names(size_t chan = 0) = 0;
826
845 virtual void set_rx_lo_source(
846 const std::string& src, const std::string& name = ALL_LOS, size_t chan = 0) = 0;
847
856 virtual const std::string get_rx_lo_source(
857 const std::string& name = ALL_LOS, size_t chan = 0) = 0;
858
871 virtual std::vector<std::string> get_rx_lo_sources(
872 const std::string& name = ALL_LOS, size_t chan = 0) = 0;
873
884 virtual void set_rx_lo_export_enabled(
885 bool enabled, const std::string& name = ALL_LOS, size_t chan = 0) = 0;
886
892 virtual bool get_rx_lo_export_enabled(
893 const std::string& name = ALL_LOS, size_t chan = 0) = 0;
894
919 virtual double set_rx_lo_freq(
920 double freq, const std::string& name, size_t chan = 0) = 0;
921
932 virtual double get_rx_lo_freq(const std::string& name, size_t chan = 0) = 0;
933
943 virtual freq_range_t get_rx_lo_freq_range(
944 const std::string& name, size_t chan = 0) = 0;
945
958 virtual std::vector<std::string> get_tx_lo_names(size_t chan = 0) = 0;
959
975 virtual void set_tx_lo_source(const std::string& src,
976 const std::string& name = ALL_LOS,
977 const size_t chan = 0) = 0;
978
987 virtual const std::string get_tx_lo_source(
988 const std::string& name = ALL_LOS, const size_t chan = 0) = 0;
989
1000 virtual std::vector<std::string> get_tx_lo_sources(
1001 const std::string& name = ALL_LOS, const size_t chan = 0) = 0;
1002
1013 virtual void set_tx_lo_export_enabled(
1014 const bool enabled, const std::string& name = ALL_LOS, const size_t chan = 0) = 0;
1015
1021 virtual bool get_tx_lo_export_enabled(
1022 const std::string& name = ALL_LOS, const size_t chan = 0) = 0;
1023
1048 virtual double set_tx_lo_freq(
1049 const double freq, const std::string& name, const size_t chan = 0) = 0;
1050
1061 virtual double get_tx_lo_freq(const std::string& name, const size_t chan = 0) = 0;
1062
1072 virtual freq_range_t get_tx_lo_freq_range(
1073 const std::string& name, const size_t chan = 0) = 0;
1074
1075 /**************************************************************************
1076 * Gain controls
1077 *************************************************************************/
1091 virtual void set_rx_gain(double gain, const std::string& name, size_t chan = 0) = 0;
1092
1105 virtual std::vector<std::string> get_rx_gain_profile_names(const size_t chan = 0) = 0;
1106
1115 virtual void set_rx_gain_profile(
1116 const std::string& profile, const size_t chan = 0) = 0;
1117
1123 virtual std::string get_rx_gain_profile(const size_t chan = 0) = 0;
1124
1126 void set_rx_gain(double gain, size_t chan = 0)
1127 {
1128 return this->set_rx_gain(gain, ALL_GAINS, chan);
1129 }
1130
1148 virtual void set_normalized_rx_gain(double gain, size_t chan = 0) = 0;
1149
1167 virtual void set_rx_agc(bool enable, size_t chan = 0) = 0;
1168
1176 virtual double get_rx_gain(const std::string& name, size_t chan = 0) = 0;
1177
1179 double get_rx_gain(size_t chan = 0)
1180 {
1181 return this->get_rx_gain(ALL_GAINS, chan);
1182 }
1183
1194 virtual double get_normalized_rx_gain(size_t chan = 0) = 0;
1195
1203 virtual gain_range_t get_rx_gain_range(const std::string& name, size_t chan = 0) = 0;
1204
1206 gain_range_t get_rx_gain_range(size_t chan = 0)
1207 {
1208 return this->get_rx_gain_range(ALL_GAINS, chan);
1209 }
1210
1217 virtual std::vector<std::string> get_rx_gain_names(size_t chan = 0) = 0;
1218
1227 virtual void set_rx_antenna(const std::string& ant, size_t chan = 0) = 0;
1228
1234 virtual std::string get_rx_antenna(size_t chan = 0) = 0;
1235
1241 virtual std::vector<std::string> get_rx_antennas(size_t chan = 0) = 0;
1242
1252 virtual void set_rx_bandwidth(double bandwidth, size_t chan = 0) = 0;
1253
1259 virtual double get_rx_bandwidth(size_t chan = 0) = 0;
1260
1266 virtual meta_range_t get_rx_bandwidth_range(size_t chan = 0) = 0;
1267
1275 virtual dboard_iface::sptr get_rx_dboard_iface(size_t chan = 0) = 0;
1276
1283 virtual sensor_value_t get_rx_sensor(const std::string& name, size_t chan = 0) = 0;
1284
1290 virtual std::vector<std::string> get_rx_sensor_names(size_t chan = 0) = 0;
1291
1304 virtual void set_rx_dc_offset(const bool enb, size_t chan = ALL_CHANS) = 0;
1305
1313 virtual void set_rx_dc_offset(
1314 const std::complex<double>& offset, size_t chan = ALL_CHANS) = 0;
1315
1320 virtual meta_range_t get_rx_dc_offset_range(size_t chan = 0) = 0;
1321
1328 virtual void set_rx_iq_balance(const bool enb, size_t chan) = 0;
1329
1337 virtual void set_rx_iq_balance(
1338 const std::complex<double>& correction, size_t chan = ALL_CHANS) = 0;
1339
1340
1341 /**************************************************************************
1342 * Power level controls
1343 *************************************************************************/
1360 virtual bool has_rx_power_reference(const size_t chan = 0) = 0;
1361
1376 virtual void set_rx_power_reference(
1377 const double power_dbm, const size_t chan = 0) = 0;
1378
1391 virtual double get_rx_power_reference(const size_t chan = 0) = 0;
1392
1402 virtual meta_range_t get_rx_power_range(const size_t chan) = 0;
1403
1404 /*******************************************************************
1405 * TX methods
1406 ******************************************************************/
1416 virtual void set_tx_subdev_spec(
1417 const uhd::usrp::subdev_spec_t& spec, size_t mboard = ALL_MBOARDS) = 0;
1418
1424 virtual uhd::usrp::subdev_spec_t get_tx_subdev_spec(size_t mboard = 0) = 0;
1425
1431 virtual size_t get_tx_num_channels(void) = 0;
1432
1438 virtual size_t get_tx_radio_channel(size_t chan = 0) = 0;
1439
1445 virtual std::string get_tx_subdev_name(size_t chan = 0) = 0;
1446
1456 virtual void set_tx_rate(double rate, size_t chan = ALL_CHANS) = 0;
1457
1463 virtual double get_tx_rate(size_t chan = 0) = 0;
1464
1470 virtual meta_range_t get_tx_rates(size_t chan = 0) = 0;
1471
1482 virtual tune_result_t set_tx_freq(
1483 const tune_request_t& tune_request, size_t chan = 0) = 0;
1484
1490 virtual double get_tx_freq(size_t chan = 0) = 0;
1491
1501 virtual freq_range_t get_tx_freq_range(size_t chan = 0) = 0;
1502
1508 virtual freq_range_t get_fe_tx_freq_range(size_t chan = 0) = 0;
1509
1523 virtual void set_tx_gain(double gain, const std::string& name, size_t chan = 0) = 0;
1524
1537 virtual std::vector<std::string> get_tx_gain_profile_names(const size_t chan = 0) = 0;
1538
1547 virtual void set_tx_gain_profile(
1548 const std::string& profile, const size_t chan = 0) = 0;
1549
1555 virtual std::string get_tx_gain_profile(const size_t chan = 0) = 0;
1556
1558 void set_tx_gain(double gain, size_t chan = 0)
1559 {
1560 return this->set_tx_gain(gain, ALL_GAINS, chan);
1561 }
1562
1575 virtual void set_normalized_tx_gain(double gain, size_t chan = 0) = 0;
1576
1584 virtual double get_tx_gain(const std::string& name, size_t chan = 0) = 0;
1585
1587 double get_tx_gain(size_t chan = 0)
1588 {
1589 return this->get_tx_gain(ALL_GAINS, chan);
1590 }
1591
1602 virtual double get_normalized_tx_gain(size_t chan = 0) = 0;
1603
1611 virtual gain_range_t get_tx_gain_range(const std::string& name, size_t chan = 0) = 0;
1612
1614 gain_range_t get_tx_gain_range(size_t chan = 0)
1615 {
1616 return this->get_tx_gain_range(ALL_GAINS, chan);
1617 }
1618
1625 virtual std::vector<std::string> get_tx_gain_names(size_t chan = 0) = 0;
1626
1627 /**************************************************************************
1628 * Power level controls
1629 *************************************************************************/
1646 virtual bool has_tx_power_reference(const size_t chan = 0) = 0;
1647
1662 virtual void set_tx_power_reference(
1663 const double power_dbm, const size_t chan = 0) = 0;
1664
1677 virtual double get_tx_power_reference(const size_t chan = 0) = 0;
1678
1688 virtual meta_range_t get_tx_power_range(const size_t chan) = 0;
1689
1698 virtual void set_tx_antenna(const std::string& ant, size_t chan = 0) = 0;
1699
1705 virtual std::string get_tx_antenna(size_t chan = 0) = 0;
1706
1712 virtual std::vector<std::string> get_tx_antennas(size_t chan = 0) = 0;
1713
1723 virtual void set_tx_bandwidth(double bandwidth, size_t chan = 0) = 0;
1724
1730 virtual double get_tx_bandwidth(size_t chan = 0) = 0;
1731
1737 virtual meta_range_t get_tx_bandwidth_range(size_t chan = 0) = 0;
1738
1746 virtual dboard_iface::sptr get_tx_dboard_iface(size_t chan = 0) = 0;
1747
1754 virtual sensor_value_t get_tx_sensor(const std::string& name, size_t chan = 0) = 0;
1755
1761 virtual std::vector<std::string> get_tx_sensor_names(size_t chan = 0) = 0;
1762
1769 virtual void set_tx_dc_offset(
1770 const std::complex<double>& offset, size_t chan = ALL_CHANS) = 0;
1771
1776 virtual meta_range_t get_tx_dc_offset_range(size_t chan = 0) = 0;
1777
1785 virtual void set_tx_iq_balance(
1786 const std::complex<double>& correction, size_t chan = ALL_CHANS) = 0;
1787
1788 /*******************************************************************
1789 * GPIO methods
1790 ******************************************************************/
1791
1797 virtual std::vector<std::string> get_gpio_banks(const size_t mboard) = 0;
1798
1851 virtual void set_gpio_attr(const std::string& bank,
1852 const std::string& attr,
1853 const uint32_t value,
1854 const uint32_t mask = 0xffffffff,
1855 const size_t mboard = 0) = 0;
1856
1876 virtual uint32_t get_gpio_attr(
1877 const std::string& bank, const std::string& attr, const size_t mboard = 0) = 0;
1878
1895 virtual std::vector<std::string> get_gpio_src_banks(const size_t mboard = 0) = 0;
1896
1907 virtual std::vector<std::string> get_gpio_srcs(
1908 const std::string& bank, const size_t mboard = 0) = 0;
1909
1919 virtual std::vector<std::string> get_gpio_src(
1920 const std::string& bank, const size_t mboard = 0) = 0;
1921
1936 virtual void set_gpio_src(const std::string& bank,
1937 const std::vector<std::string>& src,
1938 const size_t mboard = 0) = 0;
1939
1940 /*******************************************************************
1941 * Filter API methods
1942 ******************************************************************/
1943 // TODO: This should be a const function, but I don't want to wrestle with the
1944 // compiler right now
1952 virtual std::vector<std::string> get_rx_filter_names(const size_t chan) = 0;
1953
1960 virtual uhd::filter_info_base::sptr get_rx_filter(
1961 const std::string& name, const size_t chan) = 0;
1962
1970 virtual void set_rx_filter(const std::string& name,
1971 uhd::filter_info_base::sptr filter,
1972 const size_t chan) = 0;
1973
1974 // TODO: This should be a const function, but I don't want to wrestle with the
1975 // compiler right now
1983 virtual std::vector<std::string> get_tx_filter_names(const size_t chan) = 0;
1984
1991 virtual uhd::filter_info_base::sptr get_tx_filter(
1992 const std::string& name, const size_t chan) = 0;
1993
2001 virtual void set_tx_filter(const std::string& name,
2002 uhd::filter_info_base::sptr filter,
2003 const size_t chan) = 0;
2004
2022 virtual uhd::rfnoc::mb_controller& get_mb_controller(const size_t mboard = 0) = 0;
2023};
2024
2025}} // namespace uhd::usrp
uhd::device_addr_t
Definition device_addr.hpp:39
uhd::device::sptr
std::shared_ptr< device > sptr
Definition device.hpp:29
uhd::dict
Definition dict.hpp:25
uhd::extension::extension::sptr
std::shared_ptr< extension > sptr
Definition extension.hpp:40
uhd::filter_info_base::sptr
std::shared_ptr< filter_info_base > sptr
Definition filters.hpp:24
uhd::property_tree::sptr
std::shared_ptr< property_tree > sptr
Definition property_tree.hpp:224
uhd::rfnoc::mb_controller
Definition mb_controller.hpp:31
uhd::rfnoc::radio_control
Definition radio_control.hpp:105
uhd::rx_streamer::sptr
std::shared_ptr< rx_streamer > sptr
Definition stream.hpp:172
uhd::time_spec_t
Definition time_spec.hpp:31
uhd::tx_streamer::sptr
std::shared_ptr< tx_streamer > sptr
Definition stream.hpp:363
uhd::usrp::dboard_iface::sptr
std::shared_ptr< dboard_iface > sptr
Definition dboard_iface.hpp:57
uhd::usrp::multi_usrp
Definition multi_usrp.hpp:96
uhd::usrp::multi_usrp::set_rx_filter
virtual void set_rx_filter(const std::string &name, uhd::filter_info_base::sptr filter, const size_t chan)=0
uhd::usrp::multi_usrp::get_tx_subdev_spec
virtual uhd::usrp::subdev_spec_t get_tx_subdev_spec(size_t mboard=0)=0
uhd::usrp::multi_usrp::get_rx_power_range
virtual meta_range_t get_rx_power_range(const size_t chan)=0
uhd::usrp::multi_usrp::get_tx_stream
virtual tx_streamer::sptr get_tx_stream(const stream_args_t &args)=0
Convenience method to get a TX streamer. See also uhd::device::get_tx_stream().
uhd::usrp::multi_usrp::set_tx_gain
void set_tx_gain(double gain, size_t chan=0)
A convenience wrapper for setting overall TX gain.
Definition multi_usrp.hpp:1558
uhd::usrp::multi_usrp::get_time_source
virtual std::string get_time_source(const size_t mboard)=0
uhd::usrp::multi_usrp::set_command_time
virtual void set_command_time(const uhd::time_spec_t &time_spec, size_t mboard=ALL_MBOARDS)=0
uhd::usrp::multi_usrp::get_master_clock_rate_range
virtual meta_range_t get_master_clock_rate_range(const size_t mboard=0)=0
uhd::usrp::multi_usrp::ALL_LOS
static const std::string ALL_LOS
A wildcard LO stage name.
Definition multi_usrp.hpp:112
uhd::usrp::multi_usrp::get_sync_sources
virtual std::vector< device_addr_t > get_sync_sources(const size_t mboard)=0
uhd::usrp::multi_usrp::set_tx_lo_export_enabled
virtual void set_tx_lo_export_enabled(const bool enabled, const std::string &name=ALL_LOS, const size_t chan=0)=0
uhd::usrp::multi_usrp::get_clock_source
virtual std::string get_clock_source(const size_t mboard)=0
uhd::usrp::multi_usrp::set_rx_spp
virtual void set_rx_spp(const size_t spp, const size_t chan=ALL_CHANS)=0
uhd::usrp::multi_usrp::get_rx_sensor_names
virtual std::vector< std::string > get_rx_sensor_names(size_t chan=0)=0
uhd::usrp::multi_usrp::ALL_MBOARDS
static const size_t ALL_MBOARDS
A wildcard motherboard index.
Definition multi_usrp.hpp:103
uhd::usrp::multi_usrp::get_tx_filter_names
virtual std::vector< std::string > get_tx_filter_names(const size_t chan)=0
uhd::usrp::multi_usrp::get_tx_bandwidth
virtual double get_tx_bandwidth(size_t chan=0)=0
uhd::usrp::multi_usrp::get_tx_radio_channel
virtual size_t get_tx_radio_channel(size_t chan=0)=0
uhd::usrp::multi_usrp::set_tx_dc_offset
virtual void set_tx_dc_offset(const std::complex< double > &offset, size_t chan=ALL_CHANS)=0
uhd::usrp::multi_usrp::get_sync_source
virtual device_addr_t get_sync_source(const size_t mboard)=0
uhd::usrp::multi_usrp::get_tx_rate
virtual double get_tx_rate(size_t chan=0)=0
uhd::usrp::multi_usrp::get_mboard_sensor
virtual sensor_value_t get_mboard_sensor(const std::string &name, size_t mboard=0)=0
uhd::usrp::multi_usrp::set_rx_gain_profile
virtual void set_rx_gain_profile(const std::string &profile, const size_t chan=0)=0
uhd::usrp::multi_usrp::get_rx_antennas
virtual std::vector< std::string > get_rx_antennas(size_t chan=0)=0
uhd::usrp::multi_usrp::get_rx_dboard_iface
virtual dboard_iface::sptr get_rx_dboard_iface(size_t chan=0)=0
uhd::usrp::multi_usrp::get_rx_subdev_name
virtual std::string get_rx_subdev_name(size_t chan=0)=0
uhd::usrp::multi_usrp::set_time_now
virtual void set_time_now(const time_spec_t &time_spec, size_t mboard=ALL_MBOARDS)=0
uhd::usrp::multi_usrp::get_tx_rates
virtual meta_range_t get_tx_rates(size_t chan=0)=0
uhd::usrp::multi_usrp::get_tx_antennas
virtual std::vector< std::string > get_tx_antennas(size_t chan=0)=0
uhd::usrp::multi_usrp::get_tx_lo_names
virtual std::vector< std::string > get_tx_lo_names(size_t chan=0)=0
uhd::usrp::multi_usrp::set_time_source_out
virtual void set_time_source_out(const bool enb, const size_t mboard=ALL_MBOARDS)=0
uhd::usrp::multi_usrp::get_rx_lo_sources
virtual std::vector< std::string > get_rx_lo_sources(const std::string &name=ALL_LOS, size_t chan=0)=0
uhd::usrp::multi_usrp::get_rx_lo_freq
virtual double get_rx_lo_freq(const std::string &name, size_t chan=0)=0
uhd::usrp::multi_usrp::set_rx_lo_freq
virtual double set_rx_lo_freq(double freq, const std::string &name, size_t chan=0)=0
uhd::usrp::multi_usrp::set_tx_subdev_spec
virtual void set_tx_subdev_spec(const uhd::usrp::subdev_spec_t &spec, size_t mboard=ALL_MBOARDS)=0
uhd::usrp::multi_usrp::get_tx_num_channels
virtual size_t get_tx_num_channels(void)=0
uhd::usrp::multi_usrp::get_tx_power_reference
virtual double get_tx_power_reference(const size_t chan=0)=0
uhd::usrp::multi_usrp::get_rx_lo_names
virtual std::vector< std::string > get_rx_lo_names(size_t chan=0)=0
uhd::usrp::multi_usrp::set_time_unknown_pps
virtual void set_time_unknown_pps(const time_spec_t &time_spec)=0
uhd::usrp::multi_usrp::set_user_register
virtual void set_user_register(const uint8_t addr, const uint32_t data, size_t mboard=ALL_MBOARDS)=0
uhd::usrp::multi_usrp::set_tx_gain
virtual void set_tx_gain(double gain, const std::string &name, size_t chan=0)=0
uhd::usrp::multi_usrp::get_rx_filter_names
virtual std::vector< std::string > get_rx_filter_names(const size_t chan)=0
uhd::usrp::multi_usrp::get_tx_sensor
virtual sensor_value_t get_tx_sensor(const std::string &name, size_t chan=0)=0
uhd::usrp::multi_usrp::get_rx_lo_export_enabled
virtual bool get_rx_lo_export_enabled(const std::string &name=ALL_LOS, size_t chan=0)=0
uhd::usrp::multi_usrp::get_tx_subdev_name
virtual std::string get_tx_subdev_name(size_t chan=0)=0
uhd::usrp::multi_usrp::get_rx_gain
virtual double get_rx_gain(const std::string &name, size_t chan=0)=0
uhd::usrp::multi_usrp::get_rx_lo_source
virtual const std::string get_rx_lo_source(const std::string &name=ALL_LOS, size_t chan=0)=0
uhd::usrp::multi_usrp::set_rx_bandwidth
virtual void set_rx_bandwidth(double bandwidth, size_t chan=0)=0
uhd::usrp::multi_usrp::set_tx_antenna
virtual void set_tx_antenna(const std::string &ant, size_t chan=0)=0
uhd::usrp::multi_usrp::get_tx_power_range
virtual meta_range_t get_tx_power_range(const size_t chan)=0
uhd::usrp::multi_usrp::set_gpio_src
virtual void set_gpio_src(const std::string &bank, const std::vector< std::string > &src, const size_t mboard=0)=0
uhd::usrp::multi_usrp::get_tx_lo_export_enabled
virtual bool get_tx_lo_export_enabled(const std::string &name=ALL_LOS, const size_t chan=0)=0
uhd::usrp::multi_usrp::ALL_GAINS
static const std::string ALL_GAINS
A wildcard gain element name.
Definition multi_usrp.hpp:109
uhd::usrp::multi_usrp::get_rx_gain_profile
virtual std::string get_rx_gain_profile(const size_t chan=0)=0
uhd::usrp::multi_usrp::get_tx_gain_names
virtual std::vector< std::string > get_tx_gain_names(size_t chan=0)=0
uhd::usrp::multi_usrp::get_rx_stream
virtual rx_streamer::sptr get_rx_stream(const stream_args_t &args)=0
Convenience method to get a RX streamer. See also uhd::device::get_rx_stream().
uhd::usrp::multi_usrp::get_time_last_pps
virtual time_spec_t get_time_last_pps(size_t mboard=0)=0
uhd::usrp::multi_usrp::set_time_source
virtual void set_time_source(const std::string &source, const size_t mboard=ALL_MBOARDS)=0
uhd::usrp::multi_usrp::set_gpio_attr
virtual void set_gpio_attr(const std::string &bank, const std::string &attr, const uint32_t value, const uint32_t mask=0xffffffff, const size_t mboard=0)=0
uhd::usrp::multi_usrp::set_rx_iq_balance
virtual void set_rx_iq_balance(const bool enb, size_t chan)=0
uhd::usrp::multi_usrp::set_rx_rate
virtual void set_rx_rate(double rate, size_t chan=ALL_CHANS)=0
uhd::usrp::multi_usrp::get_time_sources
virtual std::vector< std::string > get_time_sources(const size_t mboard)=0
uhd::usrp::multi_usrp::set_clock_source_out
virtual void set_clock_source_out(const bool enb, const size_t mboard=ALL_MBOARDS)=0
uhd::usrp::multi_usrp::clear_command_time
virtual void clear_command_time(size_t mboard=ALL_MBOARDS)=0
uhd::usrp::multi_usrp::get_rx_dc_offset_range
virtual meta_range_t get_rx_dc_offset_range(size_t chan=0)=0
uhd::usrp::multi_usrp::get_tx_gain
double get_tx_gain(size_t chan=0)
A convenience wrapper for getting overall TX gain.
Definition multi_usrp.hpp:1587
uhd::usrp::multi_usrp::get_rx_gain
double get_rx_gain(size_t chan=0)
A convenience wrapper for getting overall RX gain.
Definition multi_usrp.hpp:1179
uhd::usrp::multi_usrp::get_gpio_banks
virtual std::vector< std::string > get_gpio_banks(const size_t mboard)=0
uhd::usrp::multi_usrp::get_normalized_rx_gain
virtual double get_normalized_rx_gain(size_t chan=0)=0
uhd::usrp::multi_usrp::set_sync_source
virtual void set_sync_source(const device_addr_t &sync_source, const size_t mboard=ALL_MBOARDS)=0
uhd::usrp::multi_usrp::get_rx_rates
virtual meta_range_t get_rx_rates(size_t chan=0)=0
uhd::usrp::multi_usrp::~multi_usrp
virtual ~multi_usrp(void)=0
uhd::usrp::multi_usrp::set_tx_lo_freq
virtual double set_tx_lo_freq(const double freq, const std::string &name, const size_t chan=0)=0
uhd::usrp::multi_usrp::get_tx_lo_freq
virtual double get_tx_lo_freq(const std::string &name, const size_t chan=0)=0
uhd::usrp::multi_usrp::get_tx_gain_range
gain_range_t get_tx_gain_range(size_t chan=0)
A convenience wrapper for getting overall TX gain range.
Definition multi_usrp.hpp:1614
uhd::usrp::multi_usrp::get_mboard_sensor_names
virtual std::vector< std::string > get_mboard_sensor_names(size_t mboard=0)=0
uhd::usrp::multi_usrp::get_gpio_src
virtual std::vector< std::string > get_gpio_src(const std::string &bank, const size_t mboard=0)=0
uhd::usrp::multi_usrp::set_rx_antenna
virtual void set_rx_antenna(const std::string &ant, size_t chan=0)=0
uhd::usrp::multi_usrp::get_rx_gain_profile_names
virtual std::vector< std::string > get_rx_gain_profile_names(const size_t chan=0)=0
uhd::usrp::multi_usrp::set_clock_source
virtual void set_clock_source(const std::string &source, const size_t mboard=ALL_MBOARDS)=0
uhd::usrp::multi_usrp::set_time_next_pps
virtual void set_time_next_pps(const time_spec_t &time_spec, size_t mboard=ALL_MBOARDS)=0
uhd::usrp::multi_usrp::set_rx_dc_offset
virtual void set_rx_dc_offset(const bool enb, size_t chan=ALL_CHANS)=0
uhd::usrp::multi_usrp::get_tx_lo_freq_range
virtual freq_range_t get_tx_lo_freq_range(const std::string &name, const size_t chan=0)=0
uhd::usrp::multi_usrp::set_rx_iq_balance
virtual void set_rx_iq_balance(const std::complex< double > &correction, size_t chan=ALL_CHANS)=0
uhd::usrp::multi_usrp::get_rx_gain_range
virtual gain_range_t get_rx_gain_range(const std::string &name, size_t chan=0)=0
uhd::usrp::multi_usrp::get_rx_gain_range
gain_range_t get_rx_gain_range(size_t chan=0)
A convenience wrapper for getting overall RX gain range.
Definition multi_usrp.hpp:1206
uhd::usrp::multi_usrp::get_tx_antenna
virtual std::string get_tx_antenna(size_t chan=0)=0
uhd::usrp::multi_usrp::set_rx_subdev_spec
virtual void set_rx_subdev_spec(const uhd::usrp::subdev_spec_t &spec, size_t mboard=ALL_MBOARDS)=0
uhd::usrp::multi_usrp::set_tx_gain_profile
virtual void set_tx_gain_profile(const std::string &profile, const size_t chan=0)=0
uhd::usrp::multi_usrp::set_rx_gain
void set_rx_gain(double gain, size_t chan=0)
A convenience wrapper for setting overall RX gain.
Definition multi_usrp.hpp:1126
uhd::usrp::multi_usrp::get_tx_lo_source
virtual const std::string get_tx_lo_source(const std::string &name=ALL_LOS, const size_t chan=0)=0
uhd::usrp::multi_usrp::get_gpio_attr
virtual uint32_t get_gpio_attr(const std::string &bank, const std::string &attr, const size_t mboard=0)=0
uhd::usrp::multi_usrp::set_rx_lo_source
virtual void set_rx_lo_source(const std::string &src, const std::string &name=ALL_LOS, size_t chan=0)=0
uhd::usrp::multi_usrp::get_user_settings_iface
virtual uhd::wb_iface::sptr get_user_settings_iface(const size_t chan=0)=0
uhd::usrp::multi_usrp::get_tx_freq_range
virtual freq_range_t get_tx_freq_range(size_t chan=0)=0
uhd::usrp::multi_usrp::get_rx_filter
virtual uhd::filter_info_base::sptr get_rx_filter(const std::string &name, const size_t chan)=0
uhd::usrp::multi_usrp::set_rx_dc_offset
virtual void set_rx_dc_offset(const std::complex< double > &offset, size_t chan=ALL_CHANS)=0
uhd::usrp::multi_usrp::get_rx_subdev_spec
virtual uhd::usrp::subdev_spec_t get_rx_subdev_spec(size_t mboard=0)=0
uhd::usrp::multi_usrp::get_rx_bandwidth
virtual double get_rx_bandwidth(size_t chan=0)=0
uhd::usrp::multi_usrp::set_master_clock_rate
virtual void set_master_clock_rate(double rate, size_t mboard=ALL_MBOARDS)=0
uhd::usrp::multi_usrp::get_rx_freq_range
virtual freq_range_t get_rx_freq_range(size_t chan=0)=0
uhd::usrp::multi_usrp::get_tx_freq
virtual double get_tx_freq(size_t chan=0)=0
uhd::usrp::multi_usrp::set_rx_freq
virtual tune_result_t set_rx_freq(const tune_request_t &tune_request, size_t chan=0)=0
uhd::usrp::multi_usrp::get_rx_rate
virtual double get_rx_rate(size_t chan=0)=0
uhd::usrp::multi_usrp::get_rx_power_reference
virtual double get_rx_power_reference(const size_t chan=0)=0
uhd::usrp::multi_usrp::get_rx_radio_channel
virtual size_t get_rx_radio_channel(size_t chan=0)=0
uhd::usrp::multi_usrp::get_pp_string
virtual std::string get_pp_string(void)=0
uhd::usrp::multi_usrp::get_gpio_srcs
virtual std::vector< std::string > get_gpio_srcs(const std::string &bank, const size_t mboard=0)=0
uhd::usrp::multi_usrp::get_tx_gain_profile
virtual std::string get_tx_gain_profile(const size_t chan=0)=0
uhd::usrp::multi_usrp::get_normalized_tx_gain
virtual double get_normalized_tx_gain(size_t chan=0)=0
uhd::usrp::multi_usrp::get_clock_sources
virtual std::vector< std::string > get_clock_sources(const size_t mboard)=0
uhd::usrp::multi_usrp::get_extension
T::sptr get_extension(const direction_t trx, const size_t chan)
Definition multi_usrp.hpp:686
uhd::usrp::multi_usrp::get_radio_control
virtual uhd::rfnoc::radio_control & get_radio_control(const size_t chan=0)=0
uhd::usrp::multi_usrp::get_tx_lo_sources
virtual std::vector< std::string > get_tx_lo_sources(const std::string &name=ALL_LOS, const size_t chan=0)=0
uhd::usrp::multi_usrp::set_normalized_tx_gain
virtual void set_normalized_tx_gain(double gain, size_t chan=0)=0
uhd::usrp::multi_usrp::get_tx_dc_offset_range
virtual meta_range_t get_tx_dc_offset_range(size_t chan=0)=0
uhd::usrp::multi_usrp::get_tree
virtual uhd::property_tree::sptr get_tree(void) const =0
uhd::usrp::multi_usrp::set_normalized_rx_gain
virtual void set_normalized_rx_gain(double gain, size_t chan=0)=0
uhd::usrp::multi_usrp::set_tx_rate
virtual void set_tx_rate(double rate, size_t chan=ALL_CHANS)=0
uhd::usrp::multi_usrp::get_usrp_rx_info
virtual dict< std::string, std::string > get_usrp_rx_info(size_t chan=0)=0
uhd::usrp::multi_usrp::get_tx_gain_range
virtual gain_range_t get_tx_gain_range(const std::string &name, size_t chan=0)=0
uhd::usrp::multi_usrp::set_rx_agc
virtual void set_rx_agc(bool enable, size_t chan=0)=0
uhd::usrp::multi_usrp::get_tx_dboard_iface
virtual dboard_iface::sptr get_tx_dboard_iface(size_t chan=0)=0
uhd::usrp::multi_usrp::get_tx_bandwidth_range
virtual meta_range_t get_tx_bandwidth_range(size_t chan=0)=0
uhd::usrp::multi_usrp::get_mboard_name
virtual std::string get_mboard_name(size_t mboard=0)=0
uhd::usrp::multi_usrp::set_tx_power_reference
virtual void set_tx_power_reference(const double power_dbm, const size_t chan=0)=0
uhd::usrp::multi_usrp::get_device
virtual device::sptr get_device(void)=0
uhd::usrp::multi_usrp::set_rx_lo_export_enabled
virtual void set_rx_lo_export_enabled(bool enabled, const std::string &name=ALL_LOS, size_t chan=0)=0
uhd::usrp::multi_usrp::get_fe_rx_freq_range
virtual freq_range_t get_fe_rx_freq_range(size_t chan=0)=0
uhd::usrp::multi_usrp::set_sync_source
virtual void set_sync_source(const std::string &clock_source, const std::string &time_source, const size_t mboard=ALL_MBOARDS)=0
uhd::usrp::multi_usrp::get_extension
virtual uhd::extension::extension::sptr get_extension(const direction_t trx, const size_t chan)=0
uhd::usrp::multi_usrp::sptr
std::shared_ptr< multi_usrp > sptr
Definition multi_usrp.hpp:98
uhd::usrp::multi_usrp::get_gpio_src_banks
virtual std::vector< std::string > get_gpio_src_banks(const size_t mboard=0)=0
uhd::usrp::multi_usrp::get_rx_sensor
virtual sensor_value_t get_rx_sensor(const std::string &name, size_t chan=0)=0
uhd::usrp::multi_usrp::get_time_synchronized
virtual bool get_time_synchronized(void)=0
uhd::usrp::multi_usrp::set_tx_bandwidth
virtual void set_tx_bandwidth(double bandwidth, size_t chan=0)=0
uhd::usrp::multi_usrp::get_rx_antenna
virtual std::string get_rx_antenna(size_t chan=0)=0
uhd::usrp::multi_usrp::get_tx_filter
virtual uhd::filter_info_base::sptr get_tx_filter(const std::string &name, const size_t chan)=0
uhd::usrp::multi_usrp::get_fe_tx_freq_range
virtual freq_range_t get_fe_tx_freq_range(size_t chan=0)=0
uhd::usrp::multi_usrp::set_rx_gain
virtual void set_rx_gain(double gain, const std::string &name, size_t chan=0)=0
uhd::usrp::multi_usrp::set_tx_iq_balance
virtual void set_tx_iq_balance(const std::complex< double > &correction, size_t chan=ALL_CHANS)=0
uhd::usrp::multi_usrp::get_rx_freq
virtual double get_rx_freq(size_t chan=0)=0
uhd::usrp::multi_usrp::get_rx_lo_freq_range
virtual freq_range_t get_rx_lo_freq_range(const std::string &name, size_t chan=0)=0
uhd::usrp::multi_usrp::get_num_mboards
virtual size_t get_num_mboards(void)=0
uhd::usrp::multi_usrp::set_tx_freq
virtual tune_result_t set_tx_freq(const tune_request_t &tune_request, size_t chan=0)=0
uhd::usrp::multi_usrp::get_tx_gain
virtual double get_tx_gain(const std::string &name, size_t chan=0)=0
uhd::usrp::multi_usrp::get_master_clock_rate
virtual double get_master_clock_rate(size_t mboard=0)=0
uhd::usrp::multi_usrp::has_rx_power_reference
virtual bool has_rx_power_reference(const size_t chan=0)=0
uhd::usrp::multi_usrp::make
static sptr make(const device_addr_t &dev_addr)
uhd::usrp::multi_usrp::has_tx_power_reference
virtual bool has_tx_power_reference(const size_t chan=0)=0
uhd::usrp::multi_usrp::set_tx_filter
virtual void set_tx_filter(const std::string &name, uhd::filter_info_base::sptr filter, const size_t chan)=0
uhd::usrp::multi_usrp::get_rx_bandwidth_range
virtual meta_range_t get_rx_bandwidth_range(size_t chan=0)=0
uhd::usrp::multi_usrp::get_rx_gain_names
virtual std::vector< std::string > get_rx_gain_names(size_t chan=0)=0
uhd::usrp::multi_usrp::get_tx_gain_profile_names
virtual std::vector< std::string > get_tx_gain_profile_names(const size_t chan=0)=0
uhd::usrp::multi_usrp::set_tx_lo_source
virtual void set_tx_lo_source(const std::string &src, const std::string &name=ALL_LOS, const size_t chan=0)=0
uhd::usrp::multi_usrp::set_rx_power_reference
virtual void set_rx_power_reference(const double power_dbm, const size_t chan=0)=0
uhd::usrp::multi_usrp::get_rx_num_channels
virtual size_t get_rx_num_channels(void)=0
uhd::usrp::multi_usrp::get_time_now
virtual time_spec_t get_time_now(size_t mboard=0)=0
uhd::usrp::multi_usrp::get_tx_sensor_names
virtual std::vector< std::string > get_tx_sensor_names(size_t chan=0)=0
uhd::usrp::multi_usrp::get_mb_controller
virtual uhd::rfnoc::mb_controller & get_mb_controller(const size_t mboard=0)=0
uhd::usrp::multi_usrp::issue_stream_cmd
virtual void issue_stream_cmd(const stream_cmd_t &stream_cmd, size_t chan=ALL_CHANS)=0
uhd::usrp::multi_usrp::get_usrp_tx_info
virtual dict< std::string, std::string > get_usrp_tx_info(size_t chan=0)=0
uhd::usrp::multi_usrp::ALL_CHANS
static const size_t ALL_CHANS
A wildcard channel index.
Definition multi_usrp.hpp:106
uhd::usrp::subdev_spec_t
Definition subdev_spec.hpp:65
uhd::wb_iface::sptr
std::shared_ptr< wb_iface > sptr
Definition wb_iface.hpp:20
UHD_API
#define UHD_API
Definition config.h:87
config.hpp
dboard_iface.hpp
device.hpp
extension.hpp
filters.hpp
mb_controller.hpp
uhd
Definition build_info.hpp:12
uhd::direction_t
direction_t
Definition direction.hpp:12
uhd::noncopyable
boost::noncopyable noncopyable
Definition noncopyable.hpp:45
uhd::freq_range_t
meta_range_t freq_range_t
Definition ranges.hpp:171
uhd::gain_range_t
meta_range_t gain_range_t
Definition ranges.hpp:170
noncopyable.hpp
radio_control.hpp
ranges.hpp
sensors.hpp
stream_cmd.hpp
uhd::meta_range_t
Definition ranges.hpp:67
uhd::sensor_value_t
Definition sensors.hpp:29
uhd::stream_args_t
Definition stream.hpp:51
uhd::stream_cmd_t
Definition stream_cmd.hpp:42
uhd::tune_request_t
Definition tune_request.hpp:25
uhd::tune_result_t
Definition tune_result.hpp:19
subdev_spec.hpp
tune_request.hpp
tune_result.hpp
wb_iface.hpp