UHD  003.001.002
convert.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2011 Ettus Research LLC
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
16 //
17 
18 #ifndef INCLUDED_UHD_CONVERT_HPP
19 #define INCLUDED_UHD_CONVERT_HPP
20 
21 #include <uhd/config.hpp>
22 #include <uhd/types/io_type.hpp>
23 #include <uhd/types/otw_type.hpp>
24 #include <uhd/types/ref_vector.hpp>
25 #include <boost/function.hpp>
26 #include <string>
27 
28 namespace uhd{ namespace convert{
29 
32  typedef boost::function<void(const input_type&, const output_type&, size_t)> function_type;
33 
46  };
47 
55  const std::string &markup,
56  function_type fcn,
57  priority_type prio
58  );
59 
67  UHD_API const function_type &get_converter_cpu_to_otw(
68  const io_type_t &io_type,
69  const otw_type_t &otw_type,
70  size_t num_input_buffs,
71  size_t num_output_buffs
72  );
73 
81  UHD_API const function_type &get_converter_otw_to_cpu(
82  const io_type_t &io_type,
83  const otw_type_t &otw_type,
84  size_t num_input_buffs,
85  size_t num_output_buffs
86  );
87 
88 }} //namespace
89 
90 #endif /* INCLUDED_UHD_CONVERT_HPP */
UHD_API const function_type & get_converter_otw_to_cpu(const io_type_t &io_type, const otw_type_t &otw_type, size_t num_input_buffs, size_t num_output_buffs)
UHD_API void register_converter(const std::string &markup, function_type fcn, priority_type prio)
Definition: convert.hpp:44
uhd::ref_vector< const void * > input_type
Definition: convert.hpp:31
Definition: otw_type.hpp:34
#define UHD_API
Definition: config.hpp:76
Definition: convert.hpp:28
Definition: ref_vector.hpp:30
boost::function< void(const input_type &, const output_type &, size_t)> function_type
Definition: convert.hpp:32
uhd::ref_vector< void * > output_type
Definition: convert.hpp:30
Definition: convert.hpp:43
UHD_API const function_type & get_converter_cpu_to_otw(const io_type_t &io_type, const otw_type_t &otw_type, size_t num_input_buffs, size_t num_output_buffs)
Definition: convert.hpp:45
priority_type
Definition: convert.hpp:41
Definition: io_type.hpp:29
Definition: convert.hpp:42