Sophie

Sophie

distrib > Mageia > 3 > i586 > by-pkgid > d2c3cd0736fcf741288cdfea8c6ba8c2 > files > 5619

gnuradio-doc-3.6.4.1-1.mga3.noarch.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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3"/>
<title>GNU Radio 3.6.4.1 C++ API: fixed.h 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="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</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">GNU Radio 3.6.4.1 C++ API
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('fixed_8h_source.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">fixed.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="fixed_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/* Configure the RS codec with fixed parameters for CCSDS standard</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * (255,223) code over GF(256). Note: the conventional basis is still</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * used; the dual-basis mappings are performed in [en|de]code_rs_ccsds.c</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * Copyright 2002 Phil Karn, KA9Q</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * May be used under the terms of the GNU General Public License (GPL)</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"><a class="code" href="fixed_8h.html#a3834ad0136a8b95a6589500e4009fe9a">    8</a></span>&#160;<span class="preprocessor">#define DTYPE unsigned char</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="gr__core__api_8h.html">gr_core_api.h</a>&gt;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div>
<div class="line"><a name="l00012"></a><span class="lineno"><a class="code" href="fixed_8h.html#aa185022967929586fd5824ec159594af">   12</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="fixed_8h.html#aa185022967929586fd5824ec159594af">mod255</a>(<span class="keywordtype">int</span> x){</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;  <span class="keywordflow">while</span> (x &gt;= 255) {</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;    x -= 255;</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;    x = (x &gt;&gt; 8) + (x &amp; 255);</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;  }</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;  <span class="keywordflow">return</span> x;</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;}</div>
<div class="line"><a name="l00019"></a><span class="lineno"><a class="code" href="fixed_8h.html#a3ed9b2483e4d6616a203769ad381c97c">   19</a></span>&#160;<span class="preprocessor">#define MODNN(x) mod255(x)</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="fixed_8h.html#a279d78d176dce547f9c14013697c596d">CCSDS_alpha_to</a>[];</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="fixed_8h.html#af02d2618c62e7608d095b70f6f3d8a0b">CCSDS_index_of</a>[];</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="fixed_8h.html#acd181b4a095d752a1164dcfb3951411a">CCSDS_poly</a>[];</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno"><a class="code" href="fixed_8h.html#afdc383f8992f4a960bb22998f57b6d37">   25</a></span>&#160;<span class="preprocessor">#define MM 8</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="code" href="fixed_8h.html#a170755e30c36be4904106b7bb279b1ec">   26</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define NN 255</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"><a class="code" href="fixed_8h.html#afae14aea58e6520b2057147833c699de">   27</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define ALPHA_TO CCSDS_alpha_to</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="code" href="fixed_8h.html#a690b4c8564b1cb507383e7a78f4cd6dc">   28</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define INDEX_OF CCSDS_index_of</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="code" href="fixed_8h.html#a90fbc87e4b99a54543c8f37087cb4f03">   29</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define GENPOLY CCSDS_poly</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="code" href="fixed_8h.html#a5f5b4d84f10e6a71bef7c65548a8e317">   30</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define NROOTS 32</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="code" href="fixed_8h.html#a264b36b13386e3f62fe69e04711bc006">   31</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define FCR 112</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="code" href="fixed_8h.html#a6dd0302d2b9ced6e396b9182a6287b9e">   32</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define PRIM 11</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="code" href="fixed_8h.html#a8487c20a46e1e08f7aeabec7cef80945">   33</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define IPRIM 116</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="code" href="fixed_8h.html#a0d158f1e3af2ab523eb8423db3e5bd6e">   34</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define A0 (NN)</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="code" href="fixed_8h.html#ad826cb74e3f1ac5d6ce040c651d6f737">   36</a></span>&#160;<span class="preprocessor">#define ENCODE_RS encode_rs_8</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="code" href="fixed_8h.html#a974397d0c45a6897c0a3d72d5e571c54">   37</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define DECODE_RS decode_rs_8</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<a class="code" href="gr__core__api_8h.html#a8b8937b0c61edd85ab57ce8203543248">GR_CORE_API</a> <span class="keywordtype">void</span> <a class="code" href="char_8h.html#ad826cb74e3f1ac5d6ce040c651d6f737">ENCODE_RS</a>(<a class="code" href="fixed_8h.html#a3834ad0136a8b95a6589500e4009fe9a">DTYPE</a> *data,<a class="code" href="fixed_8h.html#a3834ad0136a8b95a6589500e4009fe9a">DTYPE</a> *parity);</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<a class="code" href="gr__core__api_8h.html#a8b8937b0c61edd85ab57ce8203543248">GR_CORE_API</a> <span class="keywordtype">int</span> <a class="code" href="char_8h.html#a974397d0c45a6897c0a3d72d5e571c54">DECODE_RS</a>(<a class="code" href="fixed_8h.html#a3834ad0136a8b95a6589500e4009fe9a">DTYPE</a> *data, <span class="keywordtype">int</span> *eras_pos, <span class="keywordtype">int</span> no_eras);</div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_284717b6cb06147531c058220802c6d1.html">gnuradio-core</a></li><li class="navelem"><a class="el" href="dir_7c24473031c549da670035bb20d1e97e.html">src</a></li><li class="navelem"><a class="el" href="dir_84906bae47c76101f1fa015cf813f8a2.html">lib</a></li><li class="navelem"><a class="el" href="dir_d96b8ab3528b3e81de9a644c3f760c2f.html">reed-solomon</a></li><li class="navelem"><a class="el" href="fixed_8h.html">fixed.h</a></li>
    <li class="footer">Generated on Fri Apr 19 2013 16:20:33 for GNU Radio 3.6.4.1 C++ API by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.3 </li>
  </ul>
</div>
</body>
</html>