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