From cc86cc5a6a713788cc58add7fd76486b8a8fa141 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 5 Dec 2017 11:30:12 -0800 Subject: rfnoc: Added TX LO APIs to radio_ctrl Also added stubs in the default impl. Reviewed-By: Ashish Chaudhari Reviewed-By: Derek Kozel --- host/lib/rfnoc/radio_ctrl_impl.hpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'host/lib/rfnoc/radio_ctrl_impl.hpp') diff --git a/host/lib/rfnoc/radio_ctrl_impl.hpp b/host/lib/rfnoc/radio_ctrl_impl.hpp index 6f0c82504..dc4ab114e 100644 --- a/host/lib/rfnoc/radio_ctrl_impl.hpp +++ b/host/lib/rfnoc/radio_ctrl_impl.hpp @@ -81,9 +81,22 @@ public: virtual void set_rx_lo_export_enabled(bool enabled, const std::string &name, const size_t chan); virtual bool get_rx_lo_export_enabled(const std::string &name, const size_t chan); - virtual double set_rx_lo_freq(double freq, const std::string &name, const size_t chan); + virtual double set_rx_lo_freq(const double freq, const std::string &name, const size_t chan); virtual double get_rx_lo_freq(const std::string &name, const size_t chan); + virtual std::vector get_tx_lo_names(const size_t chan); + virtual std::vector get_tx_lo_sources(const std::string &name, const size_t chan); + virtual freq_range_t get_tx_lo_freq_range(const std::string &name, const size_t chan); + + virtual void set_tx_lo_source(const std::string &src, const std::string &name, const size_t chan); + virtual const std::string get_tx_lo_source(const std::string &name, const size_t chan); + + virtual void set_tx_lo_export_enabled(const bool enabled, const std::string &name, const size_t chan); + virtual bool get_tx_lo_export_enabled(const std::string &name, const size_t chan); + + virtual double set_tx_lo_freq(const double freq, const std::string &name, const size_t chan); + virtual double get_tx_lo_freq(const std::string &name, const size_t chan); + void set_time_now(const time_spec_t &time_spec); void set_time_next_pps(const time_spec_t &time_spec); void set_time_sync(const uhd::time_spec_t &time); -- cgit v1.2.3