#include <uhd/rfnoc/rf_control/antenna_iface.hpp>
Public Types | |
using | prop_path = std::function< fs_path(const size_t chan)> |
Public Types inherited from uhd::rfnoc::rf_control::antenna_iface | |
using | sptr = std::shared_ptr< antenna_iface > |
Public Member Functions | |
enumerated_antenna (uhd::property_tree::sptr tree, prop_path prop_path_generator, const std::vector< std::string > &possible_antennas, const std::unordered_map< std::string, std::string > &compat_map) | |
virtual | ~enumerated_antenna ()=default |
std::vector< std::string > | get_antennas (const size_t chan) const override |
void | set_antenna (const std::string &ant, const size_t chan) override |
std::string | get_antenna (const size_t chan) const override |
Public Member Functions inherited from uhd::rfnoc::rf_control::antenna_iface | |
virtual | ~antenna_iface ()=default |
Class for getting and setting antennas out of an enumerated set, where the API calls for the antenna actually map to property nodes.
using uhd::rfnoc::rf_control::enumerated_antenna::prop_path = std::function<fs_path(const size_t chan)> |
uhd::rfnoc::rf_control::enumerated_antenna::enumerated_antenna | ( | uhd::property_tree::sptr | tree, |
prop_path | prop_path_generator, | ||
const std::vector< std::string > & | possible_antennas, | ||
const std::unordered_map< std::string, std::string > & | compat_map | ||
) |
Constructs an enumerated_antenna class.
tree | The property tree the nodes are on |
prop_path_generator | Closure to generate the property path given the channel. |
possible_antennas | A vector of legal antennas. |
compat_map | A map of alternative names for antennas. |
|
virtualdefault |
|
overridevirtual |
Return the selected antenna for channel chan
.
Implements uhd::rfnoc::rf_control::antenna_iface.
|
overridevirtual |
Return a list of valid antenna for channel chan
.
Implements uhd::rfnoc::rf_control::antenna_iface.
|
overridevirtual |
Select antenna for
channel chan
.
uhd::value_error | if ant is not a valid value. |
Implements uhd::rfnoc::rf_control::antenna_iface.