From 0af68addaa7d2b2abb362b3b9f941b37b4b692e8 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 12 May 2020 13:44:05 -0700 Subject: radio_control: Provide default implementations for ref power APIs The various implementations for the reference power APIs are always the same, assuming the existence of a pwr_cal_mgr object. We therefore store references to power cal managers in radio_control_impl, which radios can choose to populate. The APIs then don't have to be reimplemented in the various radio classes, unless they want to for whatever reason. --- host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'host/lib/include/uhdlib/rfnoc') diff --git a/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp b/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp index db723a6f6..956280007 100644 --- a/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp +++ b/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp @@ -9,6 +9,7 @@ #include #include #include +#include #include #include @@ -310,6 +311,13 @@ protected: //! Block-specific register interface multichan_register_iface _radio_reg_iface; + //! Power manager for RX power cal. If the radio doesn't have a power API, + // simply leave these empty. + std::vector _rx_pwr_mgr; + //! Power manager for TX power cal. If the radio doesn't have a power API, + // simply leave these empty. + std::vector _tx_pwr_mgr; + private: //! Validator for the async messages // -- cgit v1.2.3