<!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"/> <title>GNU Radio 3.2.2 C++ API: usrp_standard_common Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript"> $(document).ready(initResizable); </script> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.3 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">GNU Radio 3.2.2 C++ API</div> </td> </tr> </tbody> </table> </div> </div> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> initNavTree('classusrp__standard__common.html',''); </script> <div id="doc-content"> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pub-static-methods">Static Public Member Functions</a> | <a href="#pro-methods">Protected Member Functions</a> </div> <div class="headertitle"> <h1>usrp_standard_common Class Reference<div class="ingroups"><a class="el" href="group__usrp.html">USRP</a></div></h1> </div> </div> <div class="contents"> <!-- doxytag: class="usrp_standard_common" --> <p><code>#include <<a class="el" href="usrp__standard_8h_source.html">usrp_standard.h</a>></code></p> <div class="dynheader"> Inheritance diagram for usrp_standard_common:</div> <div class="dyncontent"> <div class="center"><img src="classusrp__standard__common__inherit__graph.png" border="0" usemap="#usrp__standard__common_inherit__map" alt="Inheritance graph"/></div> <map name="usrp__standard__common_inherit__map" id="usrp__standard__common_inherit__map"> <area shape="rect" id="node3" href="classusrp__standard__rx.html" title="The C++ interface the receive side of the USRPThis is the recommended interface to USRP receive funct..." alt="" coords="5,83,128,112"/><area shape="rect" id="node5" href="classusrp__standard__tx.html" title="The C++ interface the transmit side of the USRPThis is the recommended interface to USRP transmit fun..." alt="" coords="152,83,275,112"/></map> <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classusrp__standard__common-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="gc__types_8h.html#a0f2b5d454b7e4dda3861032cfce91085">bool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classusrp__standard__common.html#ac259e77beebe73376a45b6116ab845e1">has_rx_halfband</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">does the FPGA implement the final Rx half-band filter? If it doesn't, the maximum decimation factor with proper gain is 1/2 of what it would otherwise be. <a href="#ac259e77beebe73376a45b6116ab845e1"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classusrp__standard__common.html#a07b889dbe4fecd870f40ddf2401948c6">nddcs</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">number of digital downconverters implemented in the FPGA This will be 0, 1, 2 or 4. <a href="#a07b889dbe4fecd870f40ddf2401948c6"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="gc__types_8h.html#a0f2b5d454b7e4dda3861032cfce91085">bool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classusrp__standard__common.html#a4192e505766a5920f8771bde1fd871ae">has_tx_halfband</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">does the FPGA implement the initial Tx half-band filter? <a href="#a4192e505766a5920f8771bde1fd871ae"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classusrp__standard__common.html#a9dec671bc0d7c50157083f46538844af">nducs</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">number of digital upconverters implemented in the FPGA This will be 0, 1, or 2. <a href="#a9dec671bc0d7c50157083f46538844af"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="pub-static-methods"></a> Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classusrp__standard__common.html#ad8501caec1af361156c2540f0280123e">calc_dxc_freq</a> (double target_freq, double baseband_freq, double fs, double *dxc_freq, <a class="el" href="gc__types_8h.html#a0f2b5d454b7e4dda3861032cfce91085">bool</a> *inverted)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Calculate the frequency to use for setting the digital up or down converter. <a href="#ad8501caec1af361156c2540f0280123e"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="pro-methods"></a> Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classusrp__standard__common.html#a084f39cd160734d41e6c1cb8f6513dd6">usrp_standard_common</a> (<a class="el" href="classusrp__basic.html">usrp_basic</a> *parent)</td></tr> </table> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a084f39cd160734d41e6c1cb8f6513dd6"></a><!-- doxytag: member="usrp_standard_common::usrp_standard_common" ref="a084f39cd160734d41e6c1cb8f6513dd6" args="(usrp_basic *parent)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">usrp_standard_common::usrp_standard_common </td> <td>(</td> <td class="paramtype"><a class="el" href="classusrp__basic.html">usrp_basic</a> * </td> <td class="paramname"><em>parent</em></td><td>)</td> <td><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="ad8501caec1af361156c2540f0280123e"></a><!-- doxytag: member="usrp_standard_common::calc_dxc_freq" ref="ad8501caec1af361156c2540f0280123e" args="(double target_freq, double baseband_freq, double fs, double *dxc_freq, bool *inverted)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static void usrp_standard_common::calc_dxc_freq </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"><em>target_freq</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"><em>baseband_freq</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"><em>fs</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double * </td> <td class="paramname"><em>dxc_freq</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="gc__types_8h.html#a0f2b5d454b7e4dda3861032cfce91085">bool</a> * </td> <td class="paramname"><em>inverted</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Calculate the frequency to use for setting the digital up or down converter. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramdir"></td><td class="paramname">target_freq</td><td>is the desired RF frequency (Hz). </td></tr> <tr><td class="paramdir"></td><td class="paramname">baseband_freq</td><td>is the RF frequency that corresponds to DC in the IF coming from the d'board. </td></tr> <tr><td class="paramdir"></td><td class="paramname">fs</td><td>is the sampling frequency. </td></tr> <tr><td class="paramdir">[out]</td><td class="paramname">dxc_freq</td><td>the frequency to program into the DDC (or DUC). </td></tr> <tr><td class="paramdir">[out]</td><td class="paramname">inverted</td><td>is true if we're operating in an inverted Nyquist zone. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="ac259e77beebe73376a45b6116ab845e1"></a><!-- doxytag: member="usrp_standard_common::has_rx_halfband" ref="ac259e77beebe73376a45b6116ab845e1" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="gc__types_8h.html#a0f2b5d454b7e4dda3861032cfce91085">bool</a> usrp_standard_common::has_rx_halfband </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>does the FPGA implement the final Rx half-band filter? If it doesn't, the maximum decimation factor with proper gain is 1/2 of what it would otherwise be. </p> </div> </div> <a class="anchor" id="a4192e505766a5920f8771bde1fd871ae"></a><!-- doxytag: member="usrp_standard_common::has_tx_halfband" ref="a4192e505766a5920f8771bde1fd871ae" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="gc__types_8h.html#a0f2b5d454b7e4dda3861032cfce91085">bool</a> usrp_standard_common::has_tx_halfband </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>does the FPGA implement the initial Tx half-band filter? </p> </div> </div> <a class="anchor" id="a07b889dbe4fecd870f40ddf2401948c6"></a><!-- doxytag: member="usrp_standard_common::nddcs" ref="a07b889dbe4fecd870f40ddf2401948c6" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int usrp_standard_common::nddcs </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>number of digital downconverters implemented in the FPGA This will be 0, 1, 2 or 4. </p> </div> </div> <a class="anchor" id="a9dec671bc0d7c50157083f46538844af"></a><!-- doxytag: member="usrp_standard_common::nducs" ref="a9dec671bc0d7c50157083f46538844af" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int usrp_standard_common::nducs </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>number of digital upconverters implemented in the FPGA This will be 0, 1, or 2. </p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="usrp__standard_8h_source.html">usrp_standard.h</a></li> </ul> </div> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="classusrp__standard__common.html">usrp_standard_common</a> </li> <li class="footer">Generated on Thu Feb 17 2011 for GNU Radio 3.2.2 C++ API by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </li> </ul> </div> </body> </html>