UHD  003.000.c6c4b01e0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
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 
34  //------ simple usage --------//
35 
37  static clock_config_t external(void);
38 
40  static clock_config_t internal(void);
41 
42  //------ advanced usage --------//
43  enum ref_source_t {
44  REF_AUTO = 'a', //automatic (device specific)
45  REF_INT = 'i', //internal reference
46  REF_SMA = 's', //external sma port
47  } ref_source;
48  enum pps_source_t {
49  PPS_INT = 'i', //there is no internal
50  PPS_SMA = 's', //external sma port
51  } pps_source;
53  PPS_NEG = 'n', //negative edge
54  PPS_POS = 'p' //positive edge
55  } pps_polarity;
56  clock_config_t(void);
57  };
58 
59 } //namespace uhd
60 
61 #endif /* INCLUDED_UHD_TYPES_CLOCK_CONFIG_HPP */
#define UHD_API
Definition: config.hpp:76
Definition: convert.hpp:28
pps_source_t
Definition: clock_config.hpp:48
ref_source_t
Definition: clock_config.hpp:43
Definition: clock_config.hpp:33
pps_polarity_t
Definition: clock_config.hpp:52