<!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: gr_regenerate_bb.h File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.6.2 --> <div class="contents"> <h1>gr_regenerate_bb.h File Reference</h1><code>#include <<a class="el" href="gr__sync__block_8h_source.html">gr_sync_block.h</a>></code><br/> <div class="dynheader"> Include dependency graph for gr_regenerate_bb.h:</div> <div class="dynsection"> <div class="center"><img src="gr__regenerate__bb_8h__incl.png" border="0" usemap="#gr__regenerate__bb_8h_map" alt=""/></div> <map name="gr__regenerate__bb_8h_map" id="gr__regenerate__bb_8h"> <area shape="rect" id="node3" href="gr__sync__block_8h.html" title="gr_sync_block.h" alt="" coords="284,83,401,112"/><area shape="rect" id="node5" href="gr__block_8h.html" title="gr_block.h" alt="" coords="301,160,384,189"/><area shape="rect" id="node7" href="gr__basic__block_8h.html" title="gr_basic_block.h" alt="" coords="283,237,403,267"/><area shape="rect" id="node9" href="gr__runtime__types_8h.html" title="gr_runtime_types.h" alt="" coords="175,315,308,344"/><area shape="rect" id="node25" href="gr__sptr__magic_8h_source.html" title="gr_sptr_magic.h" alt="" coords="65,392,180,421"/><area shape="rect" id="node11" href="gr__types_8h.html" title="gr_types.h" alt="" coords="205,392,288,421"/><area shape="rect" id="node19" href="gr__complex_8h.html" title="gr_complex.h" alt="" coords="349,469,448,499"/></map> </div> <p><a href="gr__regenerate__bb_8h_source.html">Go to the source code of this file.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Classes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classgr__regenerate__bb.html">gr_regenerate_bb</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Detect the peak of a signal and repeat every period samplesIf a peak is detected, this block outputs a 1 repeated every period samples until reset by detection of another 1 on the input or stopped after max_regen regenerations have occurred. <a href="classgr__regenerate__bb.html#_details">More...</a><br/></td></tr> <tr><td colspan="2"><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classboost_1_1shared__ptr.html">gr_regenerate_bb_sptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="gr__regenerate__bb_8h.html#af167169c4148f40d5b8c793f4b604d5c">gr_make_regenerate_bb</a> (int period, unsigned int max_regen=500)</td></tr> </table> <hr/><h2>Function Documentation</h2> <a class="anchor" id="af167169c4148f40d5b8c793f4b604d5c"></a><!-- doxytag: member="gr_regenerate_bb.h::gr_make_regenerate_bb" ref="af167169c4148f40d5b8c793f4b604d5c" args="(int period, unsigned int max_regen=500)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classboost_1_1shared__ptr.html">gr_regenerate_bb_sptr</a> gr_make_regenerate_bb </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>period</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned int </td> <td class="paramname"> <em>max_regen</em> = <code>500</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>period</em> </td><td>The number of samples between regenerations </td></tr> <tr><td valign="top"></td><td valign="top"><em>max_regen</em> </td><td>The maximum number of regenerations to perform; if set to ULONG_MAX, it will regenerate continuously. </td></tr> </table> </dd> </dl> </div> </div> </div> <hr size="1"/><address style="text-align: right;"><small>Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address> </body> </html>