USRP Hardware Driver and USRP Manual  Version: 003.009.000-0-gcd88f80f
UHD and USRP Manual
clock_config.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2010-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_TYPES_CLOCK_CONFIG_HPP
19 #define INCLUDED_UHD_TYPES_CLOCK_CONFIG_HPP
20 
21 #include <uhd/config.hpp>
22 
23 namespace uhd{
24 
37  //------ simple usage --------//
38 
40  static clock_config_t external(void);
41 
43  static clock_config_t internal(void);
44 
45  //------ advanced usage --------//
46  enum ref_source_t {
47  REF_AUTO = int('a'), //automatic (device specific)
48  REF_INT = int('i'), //internal reference
49  REF_SMA = int('s'), //external sma port
50  REF_MIMO = int('m') //reference from mimo cable
51  } ref_source;
52  enum pps_source_t {
53  PPS_INT = int('i'), //there is no internal
54  PPS_SMA = int('s'), //external sma port
55  PPS_MIMO = int('m') //time sync from mimo cable
56  } pps_source;
58  PPS_NEG = int('n'), //negative edge
59  PPS_POS = int('p') //positive edge
60  } pps_polarity;
61  clock_config_t(void);
62  };
63 
64 } //namespace uhd
65 
66 #endif /* INCLUDED_UHD_TYPES_CLOCK_CONFIG_HPP */
Definition: convert.hpp:28
pps_source_t
Definition: clock_config.hpp:52
ref_source_t
Definition: clock_config.hpp:46
Definition: clock_config.hpp:36
#define UHD_API
Definition: config.h:66
pps_polarity_t
Definition: clock_config.hpp:57