Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > contrib-backports > by-pkgid > def0228095a1541e2d3632b6b6da7c38 > files > 233

gnuradio-doc-3.3.0-8mdv2010.1.i586.rpm

<!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.3.0 C++ API: atsci_sssr.h Source File</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.3 -->
<h1>atsci_sssr.h</h1><a href="atsci__sssr_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* -*- c++ -*- */</span>
<a name="l00002"></a>00002 <span class="comment">/*</span>
<a name="l00003"></a>00003 <span class="comment"> * Copyright 2002 Free Software Foundation, Inc.</span>
<a name="l00004"></a>00004 <span class="comment"> * </span>
<a name="l00005"></a>00005 <span class="comment"> * This file is part of GNU Radio</span>
<a name="l00006"></a>00006 <span class="comment"> * </span>
<a name="l00007"></a>00007 <span class="comment"> * GNU Radio is free software; you can redistribute it and/or modify</span>
<a name="l00008"></a>00008 <span class="comment"> * it under the terms of the GNU General Public License as published by</span>
<a name="l00009"></a>00009 <span class="comment"> * the Free Software Foundation; either version 3, or (at your option)</span>
<a name="l00010"></a>00010 <span class="comment"> * any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> * </span>
<a name="l00012"></a>00012 <span class="comment"> * GNU Radio is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00015"></a>00015 <span class="comment"> * GNU General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> * </span>
<a name="l00017"></a>00017 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
<a name="l00018"></a>00018 <span class="comment"> * along with GNU Radio; see the file COPYING.  If not, write to</span>
<a name="l00019"></a>00019 <span class="comment"> * the Free Software Foundation, Inc., 51 Franklin Street,</span>
<a name="l00020"></a>00020 <span class="comment"> * Boston, MA 02110-1301, USA.</span>
<a name="l00021"></a>00021 <span class="comment"> */</span>
<a name="l00022"></a>00022 
<a name="l00023"></a>00023 <span class="comment">/*</span>
<a name="l00024"></a>00024 <span class="comment"> *   --- ATSC Segment and Symbol Sync Recovery ---</span>
<a name="l00025"></a>00025 <span class="comment"> */</span>
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 <span class="preprocessor">#ifndef _ATSC_SSSR_H_</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span><span class="preprocessor">#define _ATSC_SSSR_H_</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;<a class="code" href="atsc__consts_8h.html">atsc_consts.h</a>&gt;</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &lt;<a class="code" href="gri__mmse__fir__interpolator_8h.html">gri_mmse_fir_interpolator.h</a>&gt;</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include &lt;<a class="code" href="gr__single__pole__iir_8h.html">gr_single_pole_iir.h</a>&gt;</span>
<a name="l00033"></a>00033 <span class="preprocessor">#include &lt;cstdio&gt;</span>
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 <span class="comment">/*</span>
<a name="l00036"></a>00036 <span class="comment"> *   --- support classes for atsci_sssr ---</span>
<a name="l00037"></a>00037 <span class="comment"> */</span>
<a name="l00038"></a>00038 
<a name="l00039"></a>00039 <span class="keyword">namespace </span>sssr {
<a name="l00040"></a>00040 
<a name="l00041"></a>00041   <span class="keyword">typedef</span> <span class="keywordtype">float</span> sample_t;
<a name="l00042"></a>00042 
<a name="l00043"></a>00043   <span class="comment">// ----------------------------------------------------------------</span><span class="comment"></span>
<a name="l00044"></a>00044 <span class="comment">  //! digital correlator for 1001 and 0110 patterns</span>
<a name="l00045"></a>00045 <span class="comment"></span>
<a name="l00046"></a><a class="code" href="classsssr_1_1digital__correlator.html">00046</a>   <span class="keyword">class </span><a class="code" href="classsssr_1_1digital__correlator.html" title="digital correlator for 1001 and 0110 patterns">digital_correlator</a> {
<a name="l00047"></a>00047     <span class="keywordtype">int</span>         d_sr;   <span class="comment">// 4 bit shift register</span>
<a name="l00048"></a>00048 
<a name="l00049"></a>00049   <span class="keyword">public</span>:
<a name="l00050"></a>00050     
<a name="l00051"></a>00051     <span class="comment">// Constructor</span>
<a name="l00052"></a><a class="code" href="classsssr_1_1digital__correlator.html#a6bd1f578cbf103f22434eaebcc965064">00052</a>     <a class="code" href="classsssr_1_1digital__correlator.html#a6bd1f578cbf103f22434eaebcc965064">digital_correlator</a> () { <a class="code" href="classsssr_1_1digital__correlator.html#a1967ef4b1dc93713e7fa99bd3abc5a0a" title="called on channel change">reset</a> (); }
<a name="l00053"></a>00053 
<a name="l00054"></a>00054     <span class="comment">// Manipulators</span>
<a name="l00055"></a>00055 <span class="comment"></span>
<a name="l00056"></a>00056 <span class="comment">    //! called on channel change</span>
<a name="l00057"></a><a class="code" href="classsssr_1_1digital__correlator.html#a1967ef4b1dc93713e7fa99bd3abc5a0a">00057</a> <span class="comment"></span>    <span class="keywordtype">void</span> <a class="code" href="classsssr_1_1digital__correlator.html#a1967ef4b1dc93713e7fa99bd3abc5a0a" title="called on channel change">reset</a> () { d_sr = 0; }
<a name="l00058"></a>00058 <span class="comment"></span>
<a name="l00059"></a>00059 <span class="comment">    //! clock bit in and return true if we&#39;ve seen 1001</span>
<a name="l00060"></a>00060 <span class="comment"></span>
<a name="l00061"></a><a class="code" href="classsssr_1_1digital__correlator.html#a67daf77c072d07b0db0d108414bc3875">00061</a>     <span class="keywordtype">bool</span> <a class="code" href="classsssr_1_1digital__correlator.html#a67daf77c072d07b0db0d108414bc3875" title="clock bit in and return true if we&amp;#39;ve seen 1001">update</a> (<span class="keywordtype">int</span> bit) {
<a name="l00062"></a>00062       d_sr = ((bit &amp; 1) &lt;&lt; 3) | (d_sr &gt;&gt; 1);
<a name="l00063"></a>00063 
<a name="l00064"></a>00064       <span class="keywordflow">return</span> (d_sr == 0x9);     <span class="comment">// 1001</span>
<a name="l00065"></a>00065     }
<a name="l00066"></a>00066 
<a name="l00067"></a>00067   };
<a name="l00068"></a>00068 
<a name="l00069"></a>00069 
<a name="l00070"></a>00070   <span class="comment">// ----------------------------------------------------------------</span><span class="comment"></span>
<a name="l00071"></a>00071 <span class="comment">  //! segment sync integrator</span>
<a name="l00072"></a>00072 <span class="comment"></span>
<a name="l00073"></a><a class="code" href="classsssr_1_1seg__sync__integrator.html">00073</a>   <span class="keyword">class </span><a class="code" href="classsssr_1_1seg__sync__integrator.html" title="segment sync integrator">seg_sync_integrator</a> {
<a name="l00074"></a>00074     <span class="keywordtype">signed</span> <span class="keywordtype">char</span> d_integrator[<a class="code" href="atsc__consts_8h.html#a06eb585fe7990a888ac9accd568c5230">ATSC_DATA_SEGMENT_LENGTH</a>];
<a name="l00075"></a>00075     
<a name="l00076"></a>00076   <span class="keyword">public</span>:
<a name="l00077"></a>00077 
<a name="l00078"></a>00078     <span class="comment">// Constructor</span>
<a name="l00079"></a><a class="code" href="classsssr_1_1seg__sync__integrator.html#a2e5decded32cb0aca0409ac93e70c189">00079</a>     <a class="code" href="classsssr_1_1seg__sync__integrator.html#a2e5decded32cb0aca0409ac93e70c189">seg_sync_integrator</a> () { <a class="code" href="classsssr_1_1seg__sync__integrator.html#a6bd0c45fdcb5634c56f0a33047271601" title="called on channel change">reset</a> (); }
<a name="l00080"></a>00080 
<a name="l00081"></a>00081     <span class="comment">// Manipulators</span>
<a name="l00082"></a>00082 <span class="comment"></span>
<a name="l00083"></a>00083 <span class="comment">    //! called on channel change</span>
<a name="l00084"></a>00084 <span class="comment"></span>    <span class="keywordtype">void</span> <a class="code" href="classsssr_1_1seg__sync__integrator.html#a6bd0c45fdcb5634c56f0a33047271601" title="called on channel change">reset</a> ();
<a name="l00085"></a>00085     <span class="comment"></span>
<a name="l00086"></a>00086 <span class="comment">    //! update current tap with weight and return integrated correlation value</span>
<a name="l00087"></a>00087 <span class="comment"></span>    <span class="keywordtype">int</span> <a class="code" href="classsssr_1_1seg__sync__integrator.html#aa5f378b6f4d825972bd4de3e37eb7e09" title="update current tap with weight and return integrated correlation value">update</a> (<span class="keywordtype">int</span> weight, <span class="keywordtype">int</span> index);
<a name="l00088"></a>00088 <span class="comment"></span>
<a name="l00089"></a>00089 <span class="comment">    //! return index of maximum correlation value</span>
<a name="l00090"></a>00090 <span class="comment"></span>    <span class="keywordtype">int</span> <a class="code" href="classsssr_1_1seg__sync__integrator.html#acffaa9571a94ba2da517ba9db7e78d46" title="return index of maximum correlation value">find_max</a> (<span class="keywordtype">int</span> *value);
<a name="l00091"></a>00091 
<a name="l00092"></a>00092   };
<a name="l00093"></a>00093   
<a name="l00094"></a>00094   <span class="comment">// ----------------------------------------------------------------</span><span class="comment"></span>
<a name="l00095"></a>00095 <span class="comment">  //! quad filter (used to compute timing error)</span>
<a name="l00096"></a>00096 <span class="comment"></span>
<a name="l00097"></a><a class="code" href="classsssr_1_1quad__filter.html">00097</a>   <span class="keyword">class </span><a class="code" href="classsssr_1_1quad__filter.html" title="quad filter (used to compute timing error)">quad_filter</a> {
<a name="l00098"></a>00098     sample_t    d_delay[4];
<a name="l00099"></a>00099 
<a name="l00100"></a>00100   <span class="keyword">public</span>:
<a name="l00101"></a>00101     <span class="comment">// Constructor</span>
<a name="l00102"></a><a class="code" href="classsssr_1_1quad__filter.html#a6e10b4c8f1967f5af11e315bca4617b5">00102</a>     <a class="code" href="classsssr_1_1quad__filter.html#a6e10b4c8f1967f5af11e315bca4617b5">quad_filter</a> () { <a class="code" href="classsssr_1_1quad__filter.html#a06691edd73fc7ef558284f7d8cbcb9dd" title="called on channel change">reset</a> (); }
<a name="l00103"></a>00103 
<a name="l00104"></a>00104     <span class="comment">// Manipulators</span>
<a name="l00105"></a>00105 <span class="comment"></span>
<a name="l00106"></a>00106 <span class="comment">    //! called on channel change</span>
<a name="l00107"></a><a class="code" href="classsssr_1_1quad__filter.html#a06691edd73fc7ef558284f7d8cbcb9dd">00107</a> <span class="comment"></span>    <span class="keywordtype">void</span> <a class="code" href="classsssr_1_1quad__filter.html#a06691edd73fc7ef558284f7d8cbcb9dd" title="called on channel change">reset</a> () { d_delay[0] = d_delay[1] = d_delay[2] = d_delay[3] = 0; }
<a name="l00108"></a>00108 
<a name="l00109"></a><a class="code" href="classsssr_1_1quad__filter.html#a32a6c77b44b1c4c806c16d39ed678d7b">00109</a>     <span class="keywordtype">double</span> <a class="code" href="classsssr_1_1quad__filter.html#a32a6c77b44b1c4c806c16d39ed678d7b">update</a> (sample_t sample){
<a name="l00110"></a>00110       d_delay[3] = d_delay[2];
<a name="l00111"></a>00111       d_delay[2] = d_delay[1];
<a name="l00112"></a>00112       d_delay[1] = d_delay[0];
<a name="l00113"></a>00113       d_delay[0] = sample;
<a name="l00114"></a>00114 
<a name="l00115"></a>00115       <span class="comment">// the coefficients are -1,-1,+1,+1</span>
<a name="l00116"></a>00116       <span class="keywordflow">return</span> d_delay[3] + d_delay[2] - d_delay[1] - d_delay[0];
<a name="l00117"></a>00117     }
<a name="l00118"></a>00118   };
<a name="l00119"></a>00119 }
<a name="l00120"></a>00120 
<a name="l00121"></a>00121 <span class="comment">// ----------------------------------------------------------------</span>
<a name="l00122"></a>00122 <span class="comment"></span>
<a name="l00123"></a>00123 <span class="comment">/*!</span>
<a name="l00124"></a>00124 <span class="comment"> * \brief ATSC Segment and Symbol Sync Recovery</span>
<a name="l00125"></a>00125 <span class="comment"> *</span>
<a name="l00126"></a>00126 <span class="comment"> * This class implements data segment sync tracking and symbol timing</span>
<a name="l00127"></a>00127 <span class="comment"> * using the method described in &quot;ATSC/VSB Tutorial - Receiver Technology&quot;</span>
<a name="l00128"></a>00128 <span class="comment"> * by Wayne E. Bretl of Zenith, pgs 41-45.</span>
<a name="l00129"></a>00129 <span class="comment"> */</span>
<a name="l00130"></a>00130 
<a name="l00131"></a><a class="code" href="classatsci__sssr.html">00131</a> <span class="keyword">class </span><a class="code" href="classatsci__sssr.html" title="ATSC Segment and Symbol Sync Recovery.">atsci_sssr</a> {
<a name="l00132"></a>00132   <a class="code" href="classsssr_1_1digital__correlator.html" title="digital correlator for 1001 and 0110 patterns">sssr::digital_correlator</a>      d_correlator;
<a name="l00133"></a>00133   <a class="code" href="classsssr_1_1seg__sync__integrator.html" title="segment sync integrator">sssr::seg_sync_integrator</a>     d_integrator;
<a name="l00134"></a>00134   <a class="code" href="classsssr_1_1quad__filter.html" title="quad filter (used to compute timing error)">sssr::quad_filter</a>             d_quad_filter;
<a name="l00135"></a>00135   <span class="keywordtype">double</span>                        d_quad_output[<a class="code" href="atsc__consts_8h.html#a06eb585fe7990a888ac9accd568c5230">ATSC_DATA_SEGMENT_LENGTH</a>];
<a name="l00136"></a>00136   <span class="keywordtype">double</span>                        d_timing_adjust;
<a name="l00137"></a>00137   <span class="keywordtype">int</span>                           d_counter;      <span class="comment">// free running mod 832 counter</span>
<a name="l00138"></a>00138   <span class="keywordtype">int</span>                           d_symbol_index;
<a name="l00139"></a>00139   <span class="keywordtype">bool</span>                          d_seg_locked;
<a name="l00140"></a>00140   FILE                         *d_debug_fp;
<a name="l00141"></a>00141 
<a name="l00142"></a>00142   
<a name="l00143"></a>00143   <span class="keywordtype">bool</span> incr_counter () {
<a name="l00144"></a>00144     d_counter++;
<a name="l00145"></a>00145     <span class="keywordflow">if</span> (d_counter &gt;= <a class="code" href="atsc__consts_8h.html#a06eb585fe7990a888ac9accd568c5230">ATSC_DATA_SEGMENT_LENGTH</a>){
<a name="l00146"></a>00146       d_counter = 0;
<a name="l00147"></a>00147       <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00148"></a>00148     }
<a name="l00149"></a>00149     <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00150"></a>00150   }
<a name="l00151"></a>00151     
<a name="l00152"></a>00152   <span class="keywordtype">void</span> incr_symbol_index () {
<a name="l00153"></a>00153     d_symbol_index++;
<a name="l00154"></a>00154     <span class="keywordflow">if</span> (d_symbol_index &gt;= <a class="code" href="atsc__consts_8h.html#a06eb585fe7990a888ac9accd568c5230">ATSC_DATA_SEGMENT_LENGTH</a>)
<a name="l00155"></a>00155       d_symbol_index = 0;
<a name="l00156"></a>00156   }
<a name="l00157"></a>00157 
<a name="l00158"></a>00158 <span class="keyword">public</span>:
<a name="l00159"></a>00159 
<a name="l00160"></a>00160   <span class="comment">// Constructor</span>
<a name="l00161"></a>00161   <a class="code" href="classatsci__sssr.html#a5d4a085ba7b9bafe9095292b032d01c1">atsci_sssr</a> ();
<a name="l00162"></a>00162   <a class="code" href="classatsci__sssr.html#a6a98182a687e604975be0d8d41595391">~atsci_sssr</a> ();
<a name="l00163"></a>00163 
<a name="l00164"></a>00164   <span class="comment">// Manipulators</span>
<a name="l00165"></a>00165 <span class="comment"></span>
<a name="l00166"></a>00166 <span class="comment">  //! call on channel change</span>
<a name="l00167"></a>00167 <span class="comment"></span>  <span class="keywordtype">void</span> <a class="code" href="classatsci__sssr.html#ac46c8a0e3e4072d34d8194f9d07ab6e6" title="call on channel change">reset</a> ();
<a name="l00168"></a>00168 
<a name="l00169"></a>00169 <span class="comment"></span>
<a name="l00170"></a>00170 <span class="comment">  /*!</span>
<a name="l00171"></a>00171 <span class="comment">   * \brief process a single sample at the ATSC symbol rate (~10.76 MSPS)</span>
<a name="l00172"></a>00172 <span class="comment">   *</span>
<a name="l00173"></a>00173 <span class="comment">   * This block computes an indication of our timing error and keeps</span>
<a name="l00174"></a>00174 <span class="comment">   * track of where the segment sync&#39;s occur.  \p timing_adjust is</span>
<a name="l00175"></a>00175 <span class="comment">   * returned to indicate how the interpolator timing needs to be</span>
<a name="l00176"></a>00176 <span class="comment">   * adjusted to track the transmitter&#39;s symbol timing.  If \p seg_locked</span>
<a name="l00177"></a>00177 <span class="comment">   * is true, then \p symbol_index is the index of this sample in </span>
<a name="l00178"></a>00178 <span class="comment">   * the current segment.  The symbols are numbered from 0 to 831, where </span>
<a name="l00179"></a>00179 <span class="comment">   * symbols 0, 1, 2 and 3 correspond to the data segment sync pattern, </span>
<a name="l00180"></a>00180 <span class="comment">   * nominally +5, -5, -5, +5.</span>
<a name="l00181"></a>00181 <span class="comment">   */</span>
<a name="l00182"></a>00182 
<a name="l00183"></a>00183   <span class="keywordtype">void</span> <a class="code" href="classatsci__sssr.html#a99f9a44542cb646d95d877c37bd7f96a" title="process a single sample at the ATSC symbol rate (~10.76 MSPS)">update</a> (sssr::sample_t  sample_in,       <span class="comment">// input</span>
<a name="l00184"></a>00184                <span class="keywordtype">bool</span>           *seg_locked,      <span class="comment">// are we seeing segment syncs?</span>
<a name="l00185"></a>00185                <span class="keywordtype">int</span>            *symbol_index,    <span class="comment">// 0..831</span>
<a name="l00186"></a>00186                <span class="keywordtype">double</span>         *timing_adjust);  <span class="comment">// how much to adjust timing</span>
<a name="l00187"></a>00187 
<a name="l00188"></a>00188 };
<a name="l00189"></a>00189 
<a name="l00190"></a>00190 <span class="comment">// ----------------------------------------------------------------</span>
<a name="l00191"></a>00191 <span class="comment"></span>
<a name="l00192"></a>00192 <span class="comment">/*!</span>
<a name="l00193"></a>00193 <span class="comment"> * \brief interpolator control for segment and symbol sync recovery</span>
<a name="l00194"></a>00194 <span class="comment"> */</span>
<a name="l00195"></a>00195  
<a name="l00196"></a><a class="code" href="classatsci__interpolator.html">00196</a> <span class="keyword">class </span><a class="code" href="classatsci__interpolator.html" title="interpolator control for segment and symbol sync recovery">atsci_interpolator</a> {
<a name="l00197"></a>00197   <a class="code" href="classgri__mmse__fir__interpolator.html" title="Compute intermediate samples between signal samples x(k*Ts)This implements a Mininum...">gri_mmse_fir_interpolator</a>     d_interp;
<a name="l00198"></a>00198   <a class="code" href="classgr__single__pole__iir.html">gr_single_pole_iir&lt;float,float,float&gt;</a> d_loop; <span class="comment">// ``VCO&#39;&#39; loop filter</span>
<a name="l00199"></a>00199   <span class="keywordtype">double</span>                        d_nominal_ratio_of_rx_clock_to_symbol_freq; <span class="comment">// FREQ</span>
<a name="l00200"></a>00200   <span class="keywordtype">double</span>                        d_w;    <span class="comment">// ratio of PERIOD of Tx to Rx clocks</span>
<a name="l00201"></a>00201   <span class="keywordtype">double</span>                        d_mu;   <span class="comment">// fractional delay [0,1]</span>
<a name="l00202"></a>00202   <span class="keywordtype">int</span>                           d_incr;         <span class="comment">// diagnostic only</span>
<a name="l00203"></a>00203   FILE                         *d_debug_fp;     <span class="comment">// diagnostic only</span>
<a name="l00204"></a>00204 
<a name="l00205"></a>00205 <span class="keyword">public</span>:<span class="comment"></span>
<a name="l00206"></a>00206 <span class="comment">  //! \p nominal_ratio_of_rx_clock_to_symbol_freq must be &gt;= 1.8</span>
<a name="l00207"></a>00207 <span class="comment"></span>  <a class="code" href="classatsci__interpolator.html#adb04217aa29140bc6e294647edd332a5" title="nominal_ratio_of_rx_clock_to_symbol_freq must be &amp;gt;= 1.8">atsci_interpolator</a> (<span class="keywordtype">double</span> nominal_ratio_of_rx_clock_to_symbol_freq);
<a name="l00208"></a>00208   <a class="code" href="classatsci__interpolator.html#a345bc2e9c8c76020fb97c41dfea4f324">~atsci_interpolator</a> ();
<a name="l00209"></a>00209 
<a name="l00210"></a>00210   <span class="comment">// Manipulators</span>
<a name="l00211"></a>00211 <span class="comment"></span>
<a name="l00212"></a>00212 <span class="comment">  //! call on channel change</span>
<a name="l00213"></a>00213 <span class="comment"></span>  <span class="keywordtype">void</span> <a class="code" href="classatsci__interpolator.html#aa16b69f3e1d8b869673ea864e749196d" title="call on channel change">reset</a> ();
<a name="l00214"></a>00214 <span class="comment"></span>
<a name="l00215"></a>00215 <span class="comment">  /*!</span>
<a name="l00216"></a>00216 <span class="comment">   * \brief produce next sample referenced to Tx clock</span>
<a name="l00217"></a>00217 <span class="comment">   *</span>
<a name="l00218"></a>00218 <span class="comment">   * If there aren&#39;t enough input_samples left to produce</span>
<a name="l00219"></a>00219 <span class="comment">   * an output, return false, else true.</span>
<a name="l00220"></a>00220 <span class="comment">   */</span>
<a name="l00221"></a>00221 
<a name="l00222"></a>00222   <span class="keywordtype">bool</span> <a class="code" href="classatsci__interpolator.html#a4de45ff3ef739f85eb696d68a6186f43" title="produce next sample referenced to Tx clock">update</a> (<span class="keyword">const</span> sssr::sample_t input_samples[],    <span class="comment">// I: vector of samples</span>
<a name="l00223"></a>00223                <span class="keywordtype">int</span>                  nsamples,           <span class="comment">// I: total number of samples</span>
<a name="l00224"></a>00224                <span class="keywordtype">int</span>                 *index,              <span class="comment">// I/O: current input index</span>
<a name="l00225"></a>00225                <span class="keywordtype">double</span>               timing_adjustment,  <span class="comment">// I: how much to bump timing</span>
<a name="l00226"></a>00226                sssr::sample_t      *output_sample);     <span class="comment">// O: the output sample</span>
<a name="l00227"></a>00227 
<a name="l00228"></a>00228   <span class="comment">// Accessors</span>
<a name="l00229"></a>00229 
<a name="l00230"></a>00230   <span class="comment">// how much history we require on our input</span>
<a name="l00231"></a><a class="code" href="classatsci__interpolator.html#ac544a4c74e50282d756395e3acf3e146">00231</a>   <span class="keywordtype">unsigned</span> <a class="code" href="classatsci__interpolator.html#ac544a4c74e50282d756395e3acf3e146">ntaps</a> ()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> d_interp.<a class="code" href="classgri__mmse__fir__interpolator.html#a66ea50db8f30b2f692cd4af84cb41514">ntaps</a> (); }
<a name="l00232"></a>00232 
<a name="l00233"></a>00233   <span class="comment">// diagnostic accessors</span>
<a name="l00234"></a><a class="code" href="classatsci__interpolator.html#a300b3f59cf14f73f9b0d8655e31fe5be">00234</a>   <span class="keywordtype">double</span> <a class="code" href="classatsci__interpolator.html#a300b3f59cf14f73f9b0d8655e31fe5be">mu</a> ()<span class="keyword">   const </span>{ <span class="keywordflow">return</span> d_mu; }
<a name="l00235"></a><a class="code" href="classatsci__interpolator.html#ac2aa8dbc866d73de1aa8023801e51a61">00235</a>   <span class="keywordtype">double</span> <a class="code" href="classatsci__interpolator.html#ac2aa8dbc866d73de1aa8023801e51a61">w</a> ()<span class="keyword">    const </span>{ <span class="keywordflow">return</span> d_w;  }
<a name="l00236"></a><a class="code" href="classatsci__interpolator.html#ab406e4e047b91ebb948d16000e2f81ea">00236</a>   <span class="keywordtype">int</span>    <a class="code" href="classatsci__interpolator.html#ab406e4e047b91ebb948d16000e2f81ea">incr</a> ()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> d_incr; }
<a name="l00237"></a>00237   
<a name="l00238"></a>00238 };
<a name="l00239"></a>00239 
<a name="l00240"></a>00240 <span class="preprocessor">#endif </span><span class="comment">/* _ATSC_SSSR_H_ */</span>
</pre></div></div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Wed Dec 29 19:50:59 2010 for GNU Radio 3.3.0 C++ API by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>