USRP Hardware Driver and USRP Manual  Version: 4.4.0.HEAD-0-g5fac246b
UHD and USRP Manual
filter_node.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2019 Ettus Research, a National Instruments Brand
3 //
4 // SPDX-License-Identifier: GPL-3.0-or-later
5 //
6 
7 #pragma once
8 
9 #include <uhd/types/filters.hpp>
10 #include <string>
11 #include <vector>
12 
13 namespace uhd { namespace rfnoc { namespace detail {
14 
15 // TODO: Support static filters
16 // TODO: User-defined (external?) filter
20 {
21 public:
22  using sptr = std::shared_ptr<filter_node>;
23 
24  virtual std::vector<std::string> get_rx_filter_names(const size_t chan) const = 0;
26  const std::string& name, const size_t chan) = 0;
27  virtual void set_rx_filter(const std::string& name,
29  const size_t chan) = 0;
30 
31  virtual std::vector<std::string> get_tx_filter_names(const size_t chan) const = 0;
33  const std::string& name, const size_t chan) = 0;
34  virtual void set_tx_filter(const std::string& name,
36  const size_t chan) = 0;
37 };
38 
39 }}} /* namespace uhd::rfnoc::detail */
uhd::rfnoc::detail::filter_node::sptr
std::shared_ptr< filter_node > sptr
Definition: filter_node.hpp:22
uhd::rfnoc::detail::filter_node::get_rx_filter_names
virtual std::vector< std::string > get_rx_filter_names(const size_t chan) const =0
uhd::rfnoc::detail::filter_node::set_rx_filter
virtual void set_rx_filter(const std::string &name, uhd::filter_info_base::sptr filter, const size_t chan)=0
uhd::rfnoc::detail::filter_node::set_tx_filter
virtual void set_tx_filter(const std::string &name, uhd::filter_info_base::sptr filter, const size_t chan)=0
uhd::filter_info_base::sptr
std::shared_ptr< filter_info_base > sptr
Definition: filters.hpp:26
uhd::rfnoc::detail::filter_node::get_rx_filter
virtual uhd::filter_info_base::sptr get_rx_filter(const std::string &name, const size_t chan)=0
uhd::rfnoc::detail::filter_node::get_tx_filter
virtual uhd::filter_info_base::sptr get_tx_filter(const std::string &name, const size_t chan)=0
uhd
Definition: build_info.hpp:12
filters.hpp
uhd::rfnoc::detail::filter_node
Definition: filter_node.hpp:19
uhd::rfnoc::detail::filter_node::get_tx_filter_names
virtual std::vector< std::string > get_tx_filter_names(const size_t chan) const =0