aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/lib/mykonos/ad937x_device.hpp
diff options
context:
space:
mode:
authorTrung N Tran <trung.tran@ettus.com>2017-11-15 13:49:39 -0800
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:05:06 -0800
commitdb7039f8be4240b60cf2688d7ae6b41613fc8a5a (patch)
tree7f1de9ea37847d8071814f6c75c2da50ae5e7ff6 /mpm/lib/mykonos/ad937x_device.hpp
parent9ea0d6da9e3756af91c7d1e99ee35e56bf2270d6 (diff)
downloaduhd-db7039f8be4240b60cf2688d7ae6b41613fc8a5a.tar.gz
uhd-db7039f8be4240b60cf2688d7ae6b41613fc8a5a.tar.bz2
uhd-db7039f8be4240b60cf2688d7ae6b41613fc8a5a.zip
mpm: enable RX external LO set through args
This change allow user to set RX LO of ad9371 to external or internal from args constructor of usrp device. new args is rx_lo_source value can be either internal or external: If there's no rx_lo_source specified or invalid value, default rx_lo is used; which is internal LO. Usage example: usrp_application --args "rx_lo_source=external"
Diffstat (limited to 'mpm/lib/mykonos/ad937x_device.hpp')
-rw-r--r--mpm/lib/mykonos/ad937x_device.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/mpm/lib/mykonos/ad937x_device.hpp b/mpm/lib/mykonos/ad937x_device.hpp
index 8dae6f2d3..c816680c4 100644
--- a/mpm/lib/mykonos/ad937x_device.hpp
+++ b/mpm/lib/mykonos/ad937x_device.hpp
@@ -51,7 +51,6 @@ public:
mpm::types::regs_iface* iface,
mpm::ad937x::gpio::gain_pins_t gain_pins
);
-
void begin_initialization();
void finish_initialization();
void setup_cal(uint32_t init_cals_mask, uint32_t tracking_cals_mask, uint32_t timeout);
@@ -91,7 +90,10 @@ public:
void set_enable_gain_pins(uhd::direction_t direction, mpm::ad937x::device::chain_t chain, bool enable);
void set_gain_pin_step_sizes(uhd::direction_t direction, mpm::ad937x::device::chain_t chain, double inc_step, double dec_step);
-
+ void update_rx_lo_source(uint8_t rxPllUseExternalLo);
+ void update_tx_lo_source(uint8_t rxPllUseExternalLo);
+ uint8_t get_rx_lo_source();
+ uint8_t get_tx_lo_source();
const static double MIN_FREQ;
const static double MAX_FREQ;
const static double MIN_RX_GAIN;