<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.8"/> <title>UHD: include/uhd/types/clock_config.hpp Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">UHD  <span id="projectnumber">003.007.002-0-unknown</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.8 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Macros</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_9b536c30bc5a9db2084d75e9c271ba6f.html">uhd</a></li><li class="navelem"><a class="el" href="dir_7461a2958eedf41f0cc2e50ee75b14b0.html">types</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">clock_config.hpp</div> </div> </div><!--header--> <div class="contents"> <a href="clock__config_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">//</span></div> <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Copyright 2010-2011 Ettus Research LLC</span></div> <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">//</span></div> <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">// This program is free software: you can redistribute it and/or modify</span></div> <div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// it under the terms of the GNU General Public License as published by</span></div> <div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">// the Free Software Foundation, either version 3 of the License, or</span></div> <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// (at your option) any later version.</span></div> <div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">//</span></div> <div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// This program is distributed in the hope that it will be useful,</span></div> <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div> <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></div> <div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">// GNU General Public License for more details.</span></div> <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">//</span></div> <div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">// You should have received a copy of the GNU General Public License</span></div> <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">// along with this program. If not, see <http://www.gnu.org/licenses/>.</span></div> <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">//</span></div> <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div> <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#ifndef INCLUDED_UHD_TYPES_CLOCK_CONFIG_HPP</span></div> <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#define INCLUDED_UHD_TYPES_CLOCK_CONFIG_HPP</span></div> <div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div> <div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <<a class="code" href="config_8hpp.html">uhd/config.hpp</a>></span></div> <div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div> <div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="keyword">namespace </span><a class="code" href="namespaceuhd.html">uhd</a>{</div> <div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div> <div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="structuhd_1_1clock__config__t.html"> 36</a></span>  <span class="keyword">struct </span><a class="code" href="config_8hpp.html#adc68e1c030efb88af856decedf19aedf">UHD_API</a> <a class="code" href="structuhd_1_1clock__config__t.html">clock_config_t</a>{</div> <div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="comment">//------ simple usage --------//</span></div> <div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div> <div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keyword">static</span> <a class="code" href="structuhd_1_1clock__config__t.html">clock_config_t</a> external(<span class="keywordtype">void</span>);</div> <div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div> <div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keyword">static</span> <a class="code" href="structuhd_1_1clock__config__t.html">clock_config_t</a> <span class="keyword">internal</span>(void);</div> <div class="line"><a name="l00044"></a><span class="lineno"> 44</span> </div> <div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="comment">//------ advanced usage --------//</span></div> <div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="structuhd_1_1clock__config__t.html#ae6775dddf416a20c462a723bc88f55d8"> 46</a></span>  <span class="keyword">enum</span> <a class="code" href="structuhd_1_1clock__config__t.html#ae6775dddf416a20c462a723bc88f55d8">ref_source_t</a> {</div> <div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="structuhd_1_1clock__config__t.html#ae6775dddf416a20c462a723bc88f55d8a0cd1a6af945efe76261cfd65205d19ea"> 47</a></span>  REF_AUTO = int(<span class="charliteral">'a'</span>), <span class="comment">//automatic (device specific)</span></div> <div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="structuhd_1_1clock__config__t.html#ae6775dddf416a20c462a723bc88f55d8a9ad0997c6d416fecf103d9dda252c531"> 48</a></span>  REF_INT = int(<span class="charliteral">'i'</span>), <span class="comment">//internal reference</span></div> <div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="structuhd_1_1clock__config__t.html#ae6775dddf416a20c462a723bc88f55d8a03906cbc61ffb609f69c726241f0014d"> 49</a></span>  REF_SMA = int(<span class="charliteral">'s'</span>), <span class="comment">//external sma port</span></div> <div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="structuhd_1_1clock__config__t.html#ae6775dddf416a20c462a723bc88f55d8a29f14a026c34003ed410ef189d4b8a4e"> 50</a></span>  REF_MIMO = int(<span class="charliteral">'m'</span>), <span class="comment">//reference from mimo cable</span></div> <div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  } ref_source;</div> <div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="structuhd_1_1clock__config__t.html#ada8c944753b43d9e96f1483095f304a7"> 52</a></span>  <span class="keyword">enum</span> <a class="code" href="structuhd_1_1clock__config__t.html#ada8c944753b43d9e96f1483095f304a7">pps_source_t</a> {</div> <div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="structuhd_1_1clock__config__t.html#ada8c944753b43d9e96f1483095f304a7a50b119aa73567aa4afb6f063f5defde8"> 53</a></span>  PPS_INT = int(<span class="charliteral">'i'</span>), <span class="comment">//there is no internal</span></div> <div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="structuhd_1_1clock__config__t.html#ada8c944753b43d9e96f1483095f304a7af0024ec53e8af09abb6f03eba7bcc2e5"> 54</a></span>  PPS_SMA = int(<span class="charliteral">'s'</span>), <span class="comment">//external sma port</span></div> <div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="structuhd_1_1clock__config__t.html#ada8c944753b43d9e96f1483095f304a7afd90c1346a698370a35e8467606c95f1"> 55</a></span>  PPS_MIMO = int(<span class="charliteral">'m'</span>), <span class="comment">//time sync from mimo cable</span></div> <div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  } pps_source;</div> <div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="structuhd_1_1clock__config__t.html#aaaebc21578470764e3a1a5dda370ad41"> 57</a></span>  <span class="keyword">enum</span> <a class="code" href="structuhd_1_1clock__config__t.html#aaaebc21578470764e3a1a5dda370ad41">pps_polarity_t</a> {</div> <div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="structuhd_1_1clock__config__t.html#aaaebc21578470764e3a1a5dda370ad41ae7116a104751fed3f0550bbe39ffe54b"> 58</a></span>  PPS_NEG = int(<span class="charliteral">'n'</span>), <span class="comment">//negative edge</span></div> <div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="structuhd_1_1clock__config__t.html#aaaebc21578470764e3a1a5dda370ad41aeada90db008ac0f26bffc3d57cde241c"> 59</a></span>  PPS_POS = int(<span class="charliteral">'p'</span>) <span class="comment">//positive edge</span></div> <div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  } pps_polarity;</div> <div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <a class="code" href="structuhd_1_1clock__config__t.html">clock_config_t</a>(<span class="keywordtype">void</span>);</div> <div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  };</div> <div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div> <div class="line"><a name="l00064"></a><span class="lineno"> 64</span> } <span class="comment">//namespace uhd</span></div> <div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div> <div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="preprocessor">#endif </span><span class="comment">/* INCLUDED_UHD_TYPES_CLOCK_CONFIG_HPP */</span><span class="preprocessor"></span></div> <div class="ttc" id="config_8hpp_html"><div class="ttname"><a href="config_8hpp.html">config.hpp</a></div></div> <div class="ttc" id="config_8hpp_html_adc68e1c030efb88af856decedf19aedf"><div class="ttname"><a href="config_8hpp.html#adc68e1c030efb88af856decedf19aedf">UHD_API</a></div><div class="ttdeci">#define UHD_API</div><div class="ttdef"><b>Definition:</b> config.hpp:79</div></div> <div class="ttc" id="namespaceuhd_html"><div class="ttname"><a href="namespaceuhd.html">uhd</a></div><div class="ttdef"><b>Definition:</b> convert.hpp:28</div></div> <div class="ttc" id="structuhd_1_1clock__config__t_html_ada8c944753b43d9e96f1483095f304a7"><div class="ttname"><a href="structuhd_1_1clock__config__t.html#ada8c944753b43d9e96f1483095f304a7">uhd::clock_config_t::pps_source_t</a></div><div class="ttdeci">pps_source_t</div><div class="ttdef"><b>Definition:</b> clock_config.hpp:52</div></div> <div class="ttc" id="structuhd_1_1clock__config__t_html_ae6775dddf416a20c462a723bc88f55d8"><div class="ttname"><a href="structuhd_1_1clock__config__t.html#ae6775dddf416a20c462a723bc88f55d8">uhd::clock_config_t::ref_source_t</a></div><div class="ttdeci">ref_source_t</div><div class="ttdef"><b>Definition:</b> clock_config.hpp:46</div></div> <div class="ttc" id="structuhd_1_1clock__config__t_html"><div class="ttname"><a href="structuhd_1_1clock__config__t.html">uhd::clock_config_t</a></div><div class="ttdef"><b>Definition:</b> clock_config.hpp:36</div></div> <div class="ttc" id="structuhd_1_1clock__config__t_html_aaaebc21578470764e3a1a5dda370ad41"><div class="ttname"><a href="structuhd_1_1clock__config__t.html#aaaebc21578470764e3a1a5dda370ad41">uhd::clock_config_t::pps_polarity_t</a></div><div class="ttdeci">pps_polarity_t</div><div class="ttdef"><b>Definition:</b> clock_config.hpp:57</div></div> </div><!-- fragment --></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Wed Oct 15 2014 11:47:53 for UHD by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.8 </small></address> </body> </html>