diff options
author | Trung N Tran <trung.tran@ettus.com> | 2017-11-16 16:17:11 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:05:57 -0800 |
commit | b9a0cf1467e89000658f69089bb773722e41ea89 (patch) | |
tree | 80ce5beb47c1a93694b16a7bbed365d1a0175c4c /mpm/lib/mykonos/config | |
parent | 73eb899e533d29c456eed1bc0ae72ff65676daf1 (diff) | |
download | uhd-b9a0cf1467e89000658f69089bb773722e41ea89.tar.gz uhd-b9a0cf1467e89000658f69089bb773722e41ea89.tar.bz2 uhd-b9a0cf1467e89000658f69089bb773722e41ea89.zip |
mpm: Enable TX external LO set through args, simplify code
Simplify the process of setting external LO without calling through many API
layers.
Reviewed-By: Martin Braun <martin.braun@ettus.com>
Diffstat (limited to 'mpm/lib/mykonos/config')
-rw-r--r-- | mpm/lib/mykonos/config/ad937x_config_t.cpp | 13 | ||||
-rw-r--r-- | mpm/lib/mykonos/config/ad937x_config_t.hpp | 6 |
2 files changed, 2 insertions, 17 deletions
diff --git a/mpm/lib/mykonos/config/ad937x_config_t.cpp b/mpm/lib/mykonos/config/ad937x_config_t.cpp index a9455502c..595fda925 100644 --- a/mpm/lib/mykonos/config/ad937x_config_t.cpp +++ b/mpm/lib/mykonos/config/ad937x_config_t.cpp @@ -105,18 +105,7 @@ ad937x_config_t::ad937x_config_t(spiSettings_t* sps) : device = &_device; } -void ad937x_config_t::set_rx_pll_use_external_lo(uint8_t val){ - _rx.rxPllUseExternalLo = val; -} -uint8_t ad937x_config_t::get_rx_pll_use_external_lo(){ - return _rx.rxPllUseExternalLo; -} -void ad937x_config_t::set_tx_pll_use_external_lo(uint8_t val){ - _tx.txPllUseExternalLo = val; -} -uint8_t ad937x_config_t::get_tx_pll_use_external_lo(){ - return _tx.txPllUseExternalLo; -} + // This function sets up all the pointers in all of our local members that represent the device struct // This function should only be called during construction. void ad937x_config_t::_init_pointers() diff --git a/mpm/lib/mykonos/config/ad937x_config_t.hpp b/mpm/lib/mykonos/config/ad937x_config_t.hpp index 41d9e9b61..bbd80cc28 100644 --- a/mpm/lib/mykonos/config/ad937x_config_t.hpp +++ b/mpm/lib/mykonos/config/ad937x_config_t.hpp @@ -43,11 +43,7 @@ public: static const int16_t DEFAULT_OBSRX_FIR[DEFAULT_RX_FIR_SIZE]; static const int16_t DEFAULT_OBSRX_FIR_15366[DEFAULT_RX_FIR_SIZE]; static const int16_t DEFAULT_SNIFFER_FIR[DEFAULT_RX_FIR_SIZE]; - static const int16_t DEFAULT_SNIFFER_FIR_15366[DEFAULT_RX_FIR_SIZE]; - void set_rx_pll_use_external_lo(uint8_t val); - uint8_t get_rx_pll_use_external_lo(); - void set_tx_pll_use_external_lo(uint8_t val); - uint8_t get_tx_pll_use_external_lo(); + static const int16_t DEFAULT_SNIFFER_FIR_15366[DEFAULT_RX_FIR_SIZE]; private: // The top level device struct is non-const and contains all other structs, so everything is "public" |