USRP Hardware Driver and USRP Manual  Version: 3.14.1.HEAD-0-gbfb9c1c7
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 {
28  //------ simple usage --------//
29 
31  static clock_config_t external(void);
32 
34  static clock_config_t internal(void);
35 
36  //------ advanced usage --------//
37  enum ref_source_t {
38  REF_AUTO = int('a'), // automatic (device specific)
39  REF_INT = int('i'), // internal reference
40  REF_SMA = int('s'), // external sma port
41  REF_MIMO = int('m') // reference from mimo cable
42  } ref_source;
43  enum pps_source_t {
44  PPS_INT = int('i'), // there is no internal
45  PPS_SMA = int('s'), // external sma port
46  PPS_MIMO = int('m') // time sync from mimo cable
47  } pps_source;
49  PPS_NEG = int('n'), // negative edge
50  PPS_POS = int('p') // positive edge
51  } pps_polarity;
52  clock_config_t(void);
53 };
54 
55 } // namespace uhd
56 
57 #endif /* INCLUDED_UHD_TYPES_CLOCK_CONFIG_HPP */
Definition: build_info.hpp:13
pps_source_t
Definition: clock_config.hpp:43
ref_source_t
Definition: clock_config.hpp:37
Definition: clock_config.hpp:26
#define UHD_API
Definition: config.h:68
pps_polarity_t
Definition: clock_config.hpp:48