UHD
003.004.001-38-stable
|
00001 // 00002 // Copyright 2010-2011 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_TYPES_CLOCK_CONFIG_HPP 00019 #define INCLUDED_UHD_TYPES_CLOCK_CONFIG_HPP 00020 00021 #include <uhd/config.hpp> 00022 00023 namespace uhd{ 00024 00036 struct UHD_API clock_config_t{ 00037 //------ simple usage --------// 00038 00040 static clock_config_t external(void); 00041 00043 static clock_config_t internal(void); 00044 00045 //------ advanced usage --------// 00046 enum ref_source_t { 00047 REF_AUTO = int('a'), //automatic (device specific) 00048 REF_INT = int('i'), //internal reference 00049 REF_SMA = int('s'), //external sma port 00050 REF_MIMO = int('m'), //reference from mimo cable 00051 } ref_source; 00052 enum pps_source_t { 00053 PPS_INT = int('i'), //there is no internal 00054 PPS_SMA = int('s'), //external sma port 00055 PPS_MIMO = int('m'), //time sync from mimo cable 00056 } pps_source; 00057 enum pps_polarity_t { 00058 PPS_NEG = int('n'), //negative edge 00059 PPS_POS = int('p') //positive edge 00060 } pps_polarity; 00061 clock_config_t(void); 00062 }; 00063 00064 } //namespace uhd 00065 00066 #endif /* INCLUDED_UHD_TYPES_CLOCK_CONFIG_HPP */