aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/lib/mykonos/ad937x_device.hpp
diff options
context:
space:
mode:
authorTrung N Tran <trung.tran@ettus.com>2017-11-22 15:15:20 -0800
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:05:07 -0800
commit2467deeb17774bae03b1be01d1bc3454aa387948 (patch)
tree5e96a1f318b3e61049036e6dbda36b36d8d2154b /mpm/lib/mykonos/ad937x_device.hpp
parent2dceea5d5691cd7435380013332ee26412dc33d3 (diff)
downloaduhd-2467deeb17774bae03b1be01d1bc3454aa387948.tar.gz
uhd-2467deeb17774bae03b1be01d1bc3454aa387948.tar.bz2
uhd-2467deeb17774bae03b1be01d1bc3454aa387948.zip
mpm: mykonos: Add API to change master clock rate
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 c816680c4..60f78d2e5 100644
--- a/mpm/lib/mykonos/ad937x_device.hpp
+++ b/mpm/lib/mykonos/ad937x_device.hpp
@@ -51,6 +51,7 @@ 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);
@@ -83,8 +84,8 @@ public:
bool get_pll_lock_status(uint8_t pll, bool wait_for_lock = false);
- void set_fir(uhd::direction_t direction, mpm::ad937x::device::chain_t chain, int8_t gain, const std::vector<int16_t> & fir);
- std::vector<int16_t> get_fir(uhd::direction_t direction, mpm::ad937x::device::chain_t chain, int8_t &gain);
+ void set_fir(uhd::direction_t direction, int8_t gain, const std::vector<int16_t> & fir);
+ std::vector<int16_t> get_fir(uhd::direction_t direction, int8_t &gain);
int16_t get_temperature();
@@ -94,6 +95,7 @@ public:
void update_tx_lo_source(uint8_t rxPllUseExternalLo);
uint8_t get_rx_lo_source();
uint8_t get_tx_lo_source();
+ void set_master_clock_rate(const double rate);
const static double MIN_FREQ;
const static double MAX_FREQ;
const static double MIN_RX_GAIN;