From 85ec2704384c09da8913f58f94b6a3ee6a007ba5 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 30 Jan 2019 14:41:00 +0100 Subject: x300: Enable ADC gain through RFNoC API The RFNoC call set_rx_gain() would previously ignore the additional 6 dB that can be set on the ADC. On the BasicRX board in particular, this meant there was no RX gain setting at all. --- host/lib/usrp/x300/x300_radio_ctrl_impl.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'host/lib/usrp/x300/x300_radio_ctrl_impl.hpp') diff --git a/host/lib/usrp/x300/x300_radio_ctrl_impl.hpp b/host/lib/usrp/x300/x300_radio_ctrl_impl.hpp index 7cc0ea18d..63aac876d 100644 --- a/host/lib/usrp/x300/x300_radio_ctrl_impl.hpp +++ b/host/lib/usrp/x300/x300_radio_ctrl_impl.hpp @@ -15,10 +15,12 @@ #include #include #include +#include #include #include #include #include +#include namespace uhd { namespace rfnoc { @@ -54,6 +56,7 @@ public: double set_tx_gain(const double gain, const size_t chan); double set_rx_gain(const double gain, const size_t chan); + double get_rx_gain(const size_t chan); std::vector get_rx_lo_names(const size_t chan); std::vector get_rx_lo_sources( @@ -234,6 +237,8 @@ private: // members bool _ignore_cal_file; + std::unordered_map _tx_gain_groups; + std::unordered_map _rx_gain_groups; }; /* class radio_ctrl_impl */ }} /* namespace uhd::rfnoc */ -- cgit v1.2.3