diff options
author | Martin Braun <martin.braun@ettus.com> | 2014-12-15 11:27:02 +0100 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2014-12-15 11:27:02 +0100 |
commit | 84e1e3c9ced44eec4c93a474cef8c6f9b54acdd2 (patch) | |
tree | 9519eaec40d56d74250459b4515d01f7c2a50674 | |
parent | c7796ea9714d1781df3acb4cf2283c0266babf13 (diff) | |
parent | f6dcf4a96449d2406ee0cb07aa6668377ceb3889 (diff) | |
download | uhd-84e1e3c9ced44eec4c93a474cef8c6f9b54acdd2.tar.gz uhd-84e1e3c9ced44eec4c93a474cef8c6f9b54acdd2.tar.bz2 uhd-84e1e3c9ced44eec4c93a474cef8c6f9b54acdd2.zip |
Merge branch 'maint'
Conflicts:
host/examples/rx_samples_to_file.cpp
-rw-r--r-- | host/examples/rx_ascii_art_dft.cpp | 8 | ||||
-rw-r--r-- | host/examples/rx_samples_to_file.cpp | 6 | ||||
-rw-r--r-- | host/examples/rx_samples_to_udp.cpp | 8 | ||||
-rw-r--r-- | host/examples/tx_samples_from_file.cpp | 8 | ||||
-rw-r--r-- | host/examples/tx_waveforms.cpp | 8 | ||||
-rw-r--r-- | host/examples/txrx_loopback_to_file.cpp | 16 | ||||
-rw-r--r-- | host/lib/transport/nirio/niriok_proxy_impl_v1.cpp | 7 | ||||
-rw-r--r-- | host/lib/usrp/b200/b200_cores.hpp | 2 | ||||
-rw-r--r-- | host/lib/usrp/common/adf4001_ctrl.hpp | 2 |
9 files changed, 33 insertions, 32 deletions
diff --git a/host/examples/rx_ascii_art_dft.cpp b/host/examples/rx_ascii_art_dft.cpp index 564a9e749..81208cf8b 100644 --- a/host/examples/rx_ascii_art_dft.cpp +++ b/host/examples/rx_ascii_art_dft.cpp @@ -47,9 +47,9 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ ("rate", po::value<double>(&rate), "rate of incoming samples (sps)") ("freq", po::value<double>(&freq), "RF center frequency in Hz") ("gain", po::value<double>(&gain), "gain for the RF chain") - ("ant", po::value<std::string>(&ant), "daughterboard antenna selection") - ("subdev", po::value<std::string>(&subdev), "daughterboard subdevice specification") - ("bw", po::value<double>(&bw), "daughterboard IF filter bandwidth in Hz") + ("ant", po::value<std::string>(&ant), "antenna selection") + ("subdev", po::value<std::string>(&subdev), "subdevice specification") + ("bw", po::value<double>(&bw), "analog frontend filter bandwidth in Hz") // display parameters ("num-bins", po::value<size_t>(&num_bins)->default_value(512), "the number of bins in the DFT") ("frame-rate", po::value<double>(&frame_rate)->default_value(5), "frame rate of the display (fps)") @@ -108,7 +108,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ std::cout << boost::format("Actual RX Gain: %f dB...") % usrp->get_rx_gain() << std::endl << std::endl; } - //set the IF filter bandwidth + //set the analog frontend filter bandwidth if (vm.count("bw")){ std::cout << boost::format("Setting RX Bandwidth: %f MHz...") % bw << std::endl; usrp->set_rx_bandwidth(bw); diff --git a/host/examples/rx_samples_to_file.cpp b/host/examples/rx_samples_to_file.cpp index 930e92125..4e6d8139f 100644 --- a/host/examples/rx_samples_to_file.cpp +++ b/host/examples/rx_samples_to_file.cpp @@ -227,9 +227,9 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ ("rate", po::value<double>(&rate)->default_value(1e6), "rate of incoming samples") ("freq", po::value<double>(&freq)->default_value(0.0), "RF center frequency in Hz") ("gain", po::value<double>(&gain), "gain for the RF chain") - ("ant", po::value<std::string>(&ant), "daughterboard antenna selection") - ("subdev", po::value<std::string>(&subdev), "daughterboard subdevice specification") - ("bw", po::value<double>(&bw), "daughterboard IF filter bandwidth in Hz") + ("ant", po::value<std::string>(&ant), "antenna selection") + ("subdev", po::value<std::string>(&subdev), "subdevice specification") + ("bw", po::value<double>(&bw), "analog frontend filter bandwidth in Hz") ("ref", po::value<std::string>(&ref)->default_value("internal"), "reference source (internal, external, mimo)") ("wirefmt", po::value<std::string>(&wirefmt)->default_value("sc16"), "wire format (sc8 or sc16)") ("setup", po::value<double>(&setup_time)->default_value(1.0), "seconds of setup time") diff --git a/host/examples/rx_samples_to_udp.cpp b/host/examples/rx_samples_to_udp.cpp index a8f0e0c36..9accdef83 100644 --- a/host/examples/rx_samples_to_udp.cpp +++ b/host/examples/rx_samples_to_udp.cpp @@ -47,9 +47,9 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ ("rate", po::value<double>(&rate)->default_value(100e6/16), "rate of incoming samples") ("freq", po::value<double>(&freq)->default_value(0), "rf center frequency in Hz") ("gain", po::value<double>(&gain)->default_value(0), "gain for the RF chain") - ("ant", po::value<std::string>(&ant), "daughterboard antenna selection") - ("subdev", po::value<std::string>(&subdev), "daughterboard subdevice specification") - ("bw", po::value<double>(&bw), "daughterboard IF filter bandwidth in Hz") + ("ant", po::value<std::string>(&ant), "antenna selection") + ("subdev", po::value<std::string>(&subdev), "subdevice specification") + ("bw", po::value<double>(&bw), "analog frontend filter bandwidth in Hz") ("port", po::value<std::string>(&port)->default_value("7124"), "server udp port") ("addr", po::value<std::string>(&addr)->default_value("192.168.1.10"), "resolvable server address") ("ref", po::value<std::string>(&ref)->default_value("internal"), "reference source (internal, external, mimo)") @@ -91,7 +91,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ usrp->set_rx_gain(gain); std::cout << boost::format("Actual RX Gain: %f dB...") % usrp->get_rx_gain() << std::endl << std::endl; - //set the IF filter bandwidth + //set the analog frontend filter bandwidth if (vm.count("bw")){ std::cout << boost::format("Setting RX Bandwidth: %f MHz...") % bw << std::endl; usrp->set_rx_bandwidth(bw); diff --git a/host/examples/tx_samples_from_file.cpp b/host/examples/tx_samples_from_file.cpp index 3293f8bd4..e9d0e8721 100644 --- a/host/examples/tx_samples_from_file.cpp +++ b/host/examples/tx_samples_from_file.cpp @@ -85,9 +85,9 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ ("freq", po::value<double>(&freq), "RF center frequency in Hz") ("lo_off", po::value<double>(&lo_off), "Offset for frontend LO in Hz (optional)") ("gain", po::value<double>(&gain), "gain for the RF chain") - ("ant", po::value<std::string>(&ant), "daughterboard antenna selection") - ("subdev", po::value<std::string>(&subdev), "daughterboard subdevice specification") - ("bw", po::value<double>(&bw), "daughterboard IF filter bandwidth in Hz") + ("ant", po::value<std::string>(&ant), "antenna selection") + ("subdev", po::value<std::string>(&subdev), "subdevice specification") + ("bw", po::value<double>(&bw), "analog frontend filter bandwidth in Hz") ("ref", po::value<std::string>(&ref)->default_value("internal"), "reference source (internal, external, mimo)") ("wirefmt", po::value<std::string>(&wirefmt)->default_value("sc16"), "wire format (sc8 or sc16)") ("delay", po::value<double>(&delay)->default_value(0.0), "specify a delay between repeated transmission of file") @@ -148,7 +148,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ std::cout << boost::format("Actual TX Gain: %f dB...") % usrp->get_tx_gain() << std::endl << std::endl; } - //set the IF filter bandwidth + //set the analog frontend filter bandwidth if (vm.count("bw")){ std::cout << boost::format("Setting TX Bandwidth: %f MHz...") % bw << std::endl; usrp->set_tx_bandwidth(bw); diff --git a/host/examples/tx_waveforms.cpp b/host/examples/tx_waveforms.cpp index 73bcb13ac..9254c3b24 100644 --- a/host/examples/tx_waveforms.cpp +++ b/host/examples/tx_waveforms.cpp @@ -61,9 +61,9 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ ("freq", po::value<double>(&freq), "RF center frequency in Hz") ("ampl", po::value<float>(&l)->default_value(float(0.3)), "amplitude of the waveform [0 to 0.7]") ("gain", po::value<double>(&gain), "gain for the RF chain") - ("ant", po::value<std::string>(&ant), "daughterboard antenna selection") - ("subdev", po::value<std::string>(&subdev), "daughterboard subdevice specification") - ("bw", po::value<double>(&bw), "daughterboard IF filter bandwidth in Hz") + ("ant", po::value<std::string>(&ant), "antenna selection") + ("subdev", po::value<std::string>(&subdev), "subdevice specification") + ("bw", po::value<double>(&bw), "analog frontend filter bandwidth in Hz") ("wave-type", po::value<std::string>(&wave_type)->default_value("CONST"), "waveform type (CONST, SQUARE, RAMP, SINE)") ("wave-freq", po::value<double>(&wave_freq)->default_value(0), "waveform frequency in Hz") ("ref", po::value<std::string>(&ref)->default_value("internal"), "clock reference (internal, external, mimo)") @@ -136,7 +136,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ std::cout << boost::format("Actual TX Gain: %f dB...") % usrp->get_tx_gain(channel_nums[ch]) << std::endl << std::endl; } - //set the IF filter bandwidth + //set the analog frontend filter bandwidth if (vm.count("bw")){ std::cout << boost::format("Setting TX Bandwidth: %f MHz...") % bw << std::endl; usrp->set_tx_bandwidth(bw, channel_nums[ch]); diff --git a/host/examples/txrx_loopback_to_file.cpp b/host/examples/txrx_loopback_to_file.cpp index 1c7973df9..26ad2e822 100644 --- a/host/examples/txrx_loopback_to_file.cpp +++ b/host/examples/txrx_loopback_to_file.cpp @@ -229,12 +229,12 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ ("ampl", po::value<float>(&l)->default_value(float(0.3)), "amplitude of the waveform [0 to 0.7]") ("tx-gain", po::value<double>(&tx_gain), "gain for the transmit RF chain") ("rx-gain", po::value<double>(&rx_gain), "gain for the receive RF chain") - ("tx-ant", po::value<std::string>(&tx_ant), "daughterboard transmit antenna selection") - ("rx-ant", po::value<std::string>(&rx_ant), "daughterboard receive antenna selection") - ("tx-subdev", po::value<std::string>(&tx_subdev), "daughterboard transmit subdevice specification") - ("rx-subdev", po::value<std::string>(&rx_subdev), "daughterboard receive subdevice specification") - ("tx-bw", po::value<double>(&tx_bw), "daughterboard transmit IF filter bandwidth in Hz") - ("rx-bw", po::value<double>(&rx_bw), "daughterboard receive IF filter bandwidth in Hz") + ("tx-ant", po::value<std::string>(&tx_ant), "transmit antenna selection") + ("rx-ant", po::value<std::string>(&rx_ant), "receive antenna selection") + ("tx-subdev", po::value<std::string>(&tx_subdev), "transmit subdevice specification") + ("rx-subdev", po::value<std::string>(&rx_subdev), "receive subdevice specification") + ("tx-bw", po::value<double>(&tx_bw), "analog transmit filter bandwidth in Hz") + ("rx-bw", po::value<double>(&rx_bw), "analog receive filter bandwidth in Hz") ("wave-type", po::value<std::string>(&wave_type)->default_value("CONST"), "waveform type (CONST, SQUARE, RAMP, SINE)") ("wave-freq", po::value<double>(&wave_freq)->default_value(0), "waveform frequency in Hz") ("ref", po::value<std::string>(&ref)->default_value("internal"), "clock reference (internal, external, mimo)") @@ -333,7 +333,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ std::cout << boost::format("Actual TX Gain: %f dB...") % tx_usrp->get_tx_gain(tx_channel_nums[ch]) << std::endl << std::endl; } - //set the IF filter bandwidth + //set the analog frontend filter bandwidth if (vm.count("tx-bw")){ std::cout << boost::format("Setting TX Bandwidth: %f MHz...") % tx_bw << std::endl; tx_usrp->set_tx_bandwidth(tx_bw, tx_channel_nums[ch]); @@ -362,7 +362,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ std::cout << boost::format("Actual RX Gain: %f dB...") % rx_usrp->get_rx_gain() << std::endl << std::endl; } - //set the receive IF filter bandwidth + //set the receive analog frontend filter bandwidth if (vm.count("rx_bw")){ std::cout << boost::format("Setting RX Bandwidth: %f MHz...") % rx_bw << std::endl; rx_usrp->set_rx_bandwidth(rx_bw); diff --git a/host/lib/transport/nirio/niriok_proxy_impl_v1.cpp b/host/lib/transport/nirio/niriok_proxy_impl_v1.cpp index 7ef0e3645..f4a8e4ff5 100644 --- a/host/lib/transport/nirio/niriok_proxy_impl_v1.cpp +++ b/host/lib/transport/nirio/niriok_proxy_impl_v1.cpp @@ -285,9 +285,10 @@ namespace uhd { namespace niusrprio niriok_proxy_impl_v1::nirio_syncop_out_params_t out = {}; in.function = niriok_proxy_impl_v1::NIRIO_FUNC::ADD_RESOURCE; - in.subfunction = (fifo_info.direction == OUTPUT_FIFO) ? - niriok_proxy_impl_v1::NIRIO_RESOURCE::OUTPUT_FIFO : - niriok_proxy_impl_v1::NIRIO_RESOURCE::INPUT_FIFO; + if (fifo_info.direction == OUTPUT_FIFO) + in.subfunction = niriok_proxy_impl_v1::NIRIO_RESOURCE::OUTPUT_FIFO; + else + in.subfunction = niriok_proxy_impl_v1::NIRIO_RESOURCE::INPUT_FIFO; in.params.add.fifoWithDataType.channel = fifo_info.channel; in.params.add.fifoWithDataType.baseAddress = fifo_info.base_addr; diff --git a/host/lib/usrp/b200/b200_cores.hpp b/host/lib/usrp/b200/b200_cores.hpp index 8a8900412..32e583794 100644 --- a/host/lib/usrp/b200/b200_cores.hpp +++ b/host/lib/usrp/b200/b200_cores.hpp @@ -57,7 +57,7 @@ public: typedef boost::shared_ptr<b200_ref_pll_ctrl> sptr; b200_ref_pll_ctrl(b200_local_spi_core::sptr spi); - void set_lock_to_ext_ref(bool external); + virtual void set_lock_to_ext_ref(bool external); private: b200_local_spi_core::sptr _spi; diff --git a/host/lib/usrp/common/adf4001_ctrl.hpp b/host/lib/usrp/common/adf4001_ctrl.hpp index 9ea3caf1a..e801ae0c4 100644 --- a/host/lib/usrp/common/adf4001_ctrl.hpp +++ b/host/lib/usrp/common/adf4001_ctrl.hpp @@ -124,7 +124,7 @@ public: class adf4001_ctrl { public: adf4001_ctrl(uhd::spi_iface::sptr _spi, int slaveno); - void set_lock_to_ext_ref(bool external); + virtual void set_lock_to_ext_ref(bool external); private: uhd::spi_iface::sptr spi_iface; |