aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorTrung N Tran <trung.tran@ettus.com>2017-05-31 21:39:01 -0700
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:03:59 -0800
commit2768ad75d5b48afea61f2803579cc432d598eb61 (patch)
treee3ce2e3d217bc4b1a0a94d8cb81443adc04ffe84 /host/lib
parent5359f25458f4f82919546671783403e51efc01a3 (diff)
downloaduhd-2768ad75d5b48afea61f2803579cc432d598eb61.tar.gz
uhd-2768ad75d5b48afea61f2803579cc432d598eb61.tar.bz2
uhd-2768ad75d5b48afea61f2803579cc432d598eb61.zip
magnesium: Temporarily adding return values to make MSVC not fail
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp
index 6bac969ed..b659902ae 100644
--- a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp
+++ b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_impl.cpp
@@ -33,7 +33,7 @@ static const size_t IO_MASTER_RADIO = 0;
UHD_RFNOC_RADIO_BLOCK_CONSTRUCTOR(magnesium_radio_ctrl)
{
- std::cout << "magnesium_radio_ctrl_impl::ctor() " << std::endl;
+ std::cout << "magnesium_radio_ctrl_impl::ctor() " << std::endl;
}
magnesium_radio_ctrl_impl::~magnesium_radio_ctrl_impl()
@@ -43,6 +43,7 @@ magnesium_radio_ctrl_impl::~magnesium_radio_ctrl_impl()
double magnesium_radio_ctrl_impl::set_rate(double rate)
{
+ return 0;
}
void magnesium_radio_ctrl_impl::set_tx_antenna(const std::string &ant, const size_t chan)
@@ -55,45 +56,57 @@ void magnesium_radio_ctrl_impl::set_rx_antenna(const std::string &ant, const siz
double magnesium_radio_ctrl_impl::set_tx_frequency(const double freq, const size_t chan)
{
+ return 0;
}
double magnesium_radio_ctrl_impl::set_rx_frequency(const double freq, const size_t chan)
{
+ return 0;
}
double magnesium_radio_ctrl_impl::set_rx_bandwidth(const double bandwidth, const size_t chan)
{
+ return 0;
}
double magnesium_radio_ctrl_impl::get_tx_frequency(const size_t chan)
{
+ return 0;
}
double magnesium_radio_ctrl_impl::get_rx_frequency(const size_t chan)
{
+ return 0;
}
double magnesium_radio_ctrl_impl::get_rx_bandwidth(const size_t chan)
{
+ return 0;
}
double magnesium_radio_ctrl_impl::set_tx_gain(const double gain, const size_t chan)
{
+ return 0;
}
double magnesium_radio_ctrl_impl::set_rx_gain(const double gain, const size_t chan)
{
+ return 0;
}
size_t magnesium_radio_ctrl_impl::get_chan_from_dboard_fe(const std::string &fe, const direction_t dir)
{
+ return 0;
}
-std::string magnesium_radio_ctrl_impl::get_dboard_fe_from_chan(const size_t chan, const direction_t dir) {
+std::string magnesium_radio_ctrl_impl::get_dboard_fe_from_chan(const size_t chan, const direction_t dir)
+{
+ return "";
}
double magnesium_radio_ctrl_impl::get_output_samp_rate(size_t port)
{
+ return 0;
}
UHD_RFNOC_BLOCK_REGISTER(magnesium_radio_ctrl, "MagnesiumRadio");