UHD 003.001.001
|
00001 // 00002 // Copyright 2010 Ettus Research LLC 00003 // 00004 // This program is free software: you can redistribute it and/or modify 00005 // it under the terms of the GNU General Public License as published by 00006 // the Free Software Foundation, either version 3 of the License, or 00007 // (at your option) any later version. 00008 // 00009 // This program is distributed in the hope that it will be useful, 00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 // GNU General Public License for more details. 00013 // 00014 // You should have received a copy of the GNU General Public License 00015 // along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 // 00017 00018 #ifndef INCLUDED_UHD_USRP_MISC_UTILS_HPP 00019 #define INCLUDED_UHD_USRP_MISC_UTILS_HPP 00020 00021 #include <uhd/config.hpp> 00022 #include <uhd/wax.hpp> 00023 #include <uhd/usrp/dboard_id.hpp> 00024 #include <uhd/usrp/subdev_spec.hpp> 00025 #include <uhd/utils/gain_group.hpp> 00026 00027 namespace uhd{ namespace usrp{ 00028 00032 enum gain_group_policy_t{ 00033 GAIN_GROUP_POLICY_RX = 'R', 00034 GAIN_GROUP_POLICY_TX = 'T' 00035 }; 00036 00044 UHD_API gain_group::sptr make_gain_group( 00045 const dboard_id_t &dboard_id, 00046 wax::obj subdev, wax::obj codec, 00047 gain_group_policy_t gain_group_policy 00048 ); 00049 00057 UHD_API void verify_rx_subdev_spec(subdev_spec_t &subdev_spec, wax::obj mboard); 00058 00066 UHD_API void verify_tx_subdev_spec(subdev_spec_t &subdev_spec, wax::obj mboard); 00067 00068 }} //namespace 00069 00070 #endif /* INCLUDED_UHD_USRP_MISC_UTILS_HPP */ 00071