USRP Hardware Driver and USRP Manual  Version: 3.11.0.HEAD-0-g13c32cef
UHD and USRP Manual
clock_config.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2010-2011 Ettus Research LLC
3 // Copyright 2018 Ettus Research, a National Instruments Company
4 //
5 // SPDX-License-Identifier: GPL-3.0-or-later
6 //
7 
8 #ifndef INCLUDED_UHD_TYPES_CLOCK_CONFIG_HPP
9 #define INCLUDED_UHD_TYPES_CLOCK_CONFIG_HPP
10 
11 #include <uhd/config.hpp>
12 
13 namespace uhd{
14 
27  //------ simple usage --------//
28 
30  static clock_config_t external(void);
31 
33  static clock_config_t internal(void);
34 
35  //------ advanced usage --------//
36  enum ref_source_t {
37  REF_AUTO = int('a'), //automatic (device specific)
38  REF_INT = int('i'), //internal reference
39  REF_SMA = int('s'), //external sma port
40  REF_MIMO = int('m') //reference from mimo cable
41  } ref_source;
42  enum pps_source_t {
43  PPS_INT = int('i'), //there is no internal
44  PPS_SMA = int('s'), //external sma port
45  PPS_MIMO = int('m') //time sync from mimo cable
46  } pps_source;
48  PPS_NEG = int('n'), //negative edge
49  PPS_POS = int('p') //positive edge
50  } pps_polarity;
51  clock_config_t(void);
52  };
53 
54 } //namespace uhd
55 
56 #endif /* INCLUDED_UHD_TYPES_CLOCK_CONFIG_HPP */
Definition: build_info.hpp:14
pps_source_t
Definition: clock_config.hpp:42
ref_source_t
Definition: clock_config.hpp:36
Definition: clock_config.hpp:26
#define UHD_API
Definition: config.h:63
pps_polarity_t
Definition: clock_config.hpp:47