11 #include <unordered_map> 17 namespace uhd {
namespace rfnoc {
namespace rf_control {
24 using sptr = std::shared_ptr<antenna_iface>;
32 virtual std::vector<std::string> get_antennas(
const size_t chan)
const = 0;
38 virtual void set_antenna(
const std::string& ant,
const size_t chan) = 0;
44 virtual std::string get_antenna(
const size_t chan)
const = 0;
53 using prop_path = std::function<fs_path(const size_t chan)>;
64 const std::vector<std::string>& possible_antennas,
65 const std::unordered_map<std::string, std::string>& compat_map);
69 std::vector<std::string> get_antennas(
const size_t chan)
const override;
70 void set_antenna(
const std::string& ant,
const size_t chan)
override;
71 std::string get_antenna(
const size_t chan)
const override;
78 std::vector<std::string> _possible_antennas;
79 const std::unordered_map<std::string, std::string>& _compat_map;
90 std::string get_tx_antenna(
const size_t chan)
const override;
91 std::vector<std::string> get_tx_antennas(
const size_t chan)
const override;
92 void set_tx_antenna(
const std::string& ant,
const size_t chan)
override;
93 std::string get_rx_antenna(
const size_t chan)
const override;
94 std::vector<std::string> get_rx_antennas(
const size_t chan)
const override;
95 void set_rx_antenna(
const std::string& ant,
const size_t chan)
override;
antenna_iface::sptr _rx_antenna
Definition: antenna_iface.hpp:98
Definition: antenna_iface.hpp:21
std::shared_ptr< antenna_iface > sptr
Definition: antenna_iface.hpp:24
Definition: build_info.hpp:12
Definition: core_iface.hpp:25
antenna_iface::sptr _tx_antenna
Definition: antenna_iface.hpp:99
std::function< fs_path(const size_t chan)> prop_path
Definition: antenna_iface.hpp:53
#define UHD_API
Definition: config.h:87
Definition: antenna_iface.hpp:85
std::shared_ptr< property_tree > sptr
Definition: property_tree.hpp:223
Definition: antenna_iface.hpp:50