UHD 003.002.000

include/uhd/types/clock_config.hpp

Go to the documentation of this file.
00001 //
00002 // Copyright 2010-2011 Ettus Research LLC
00003 //
00004 // This program is free software: you can redistribute it and/or modify
00005 // it under the terms of the GNU General Public License as published by
00006 // the Free Software Foundation, either version 3 of the License, or
00007 // (at your option) any later version.
00008 //
00009 // This program is distributed in the hope that it will be useful,
00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 // GNU General Public License for more details.
00013 //
00014 // You should have received a copy of the GNU General Public License
00015 // along with this program.  If not, see <http://www.gnu.org/licenses/>.
00016 //
00017 
00018 #ifndef INCLUDED_UHD_TYPES_CLOCK_CONFIG_HPP
00019 #define INCLUDED_UHD_TYPES_CLOCK_CONFIG_HPP
00020 
00021 #include <uhd/config.hpp>
00022 
00023 namespace uhd{
00024 
00033     struct UHD_API clock_config_t{
00034         //------ simple usage --------//
00035 
00037         static clock_config_t external(void);
00038 
00040         static clock_config_t internal(void);
00041 
00042         //------ advanced usage --------//
00043         enum ref_source_t {
00044             REF_AUTO = int('a'), //automatic (device specific)
00045             REF_INT  = int('i'), //internal reference
00046             REF_SMA  = int('s'), //external sma port
00047             REF_MIMO = int('m'), //reference from mimo cable
00048         } ref_source;
00049         enum pps_source_t {
00050             PPS_INT  = int('i'), //there is no internal
00051             PPS_SMA  = int('s'), //external sma port
00052             PPS_MIMO = int('m'), //time sync from mimo cable
00053         } pps_source;
00054         enum pps_polarity_t {
00055             PPS_NEG = int('n'), //negative edge
00056             PPS_POS = int('p')  //positive edge
00057         } pps_polarity;
00058         clock_config_t(void);
00059     };
00060 
00061 } //namespace uhd
00062 
00063 #endif /* INCLUDED_UHD_TYPES_CLOCK_CONFIG_HPP */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines