1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct rs_control</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Reed-Solomon Library Programming Interface"><link rel="up" href="structs.html" title="Chapter 4. Structures"><link rel="prev" href="structs.html" title="Chapter 4. Structures"><link rel="next" href="pubfunctions.html" title="Chapter 5. Public Functions Provided"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">struct rs_control</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="structs.html">Prev</a> </td><th width="60%" align="center">Chapter 4. Structures</th><td width="20%" align="right"> <a accesskey="n" href="pubfunctions.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-rs-control"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct rs_control — 2 rs control structure 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting"> 4struct rs_control { 5 int mm; 6 int nn; 7 uint16_t * alpha_to; 8 uint16_t * index_of; 9 uint16_t * genpoly; 10 int nroots; 11 int fcr; 12 int prim; 13 int iprim; 14 int gfpoly; 15 int (* gffunc) (int); 16 int users; 17 struct list_head list; 18}; </pre></div><div class="refsect1"><a name="idp1121088308"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">mm</span></dt><dd><p> 19Bits per symbol 20 </p></dd><dt><span class="term">nn</span></dt><dd><p> 21Symbols per block (= (1<<mm)-1) 22 </p></dd><dt><span class="term">alpha_to</span></dt><dd><p> 23log lookup table 24 </p></dd><dt><span class="term">index_of</span></dt><dd><p> 25Antilog lookup table 26 </p></dd><dt><span class="term">genpoly</span></dt><dd><p> 27Generator polynomial 28 </p></dd><dt><span class="term">nroots</span></dt><dd><p> 29Number of generator roots = number of parity symbols 30 </p></dd><dt><span class="term">fcr</span></dt><dd><p> 31First consecutive root, index form 32 </p></dd><dt><span class="term">prim</span></dt><dd><p> 33Primitive element, index form 34 </p></dd><dt><span class="term">iprim</span></dt><dd><p> 35prim-th root of 1, index form 36 </p></dd><dt><span class="term">gfpoly</span></dt><dd><p> 37The primitive generator polynominal 38 </p></dd><dt><span class="term">gffunc</span></dt><dd><p> 39Function to generate the field, if non-canonical representation 40 </p></dd><dt><span class="term">users</span></dt><dd><p> 41Users of this structure 42 </p></dd><dt><span class="term">list</span></dt><dd><p> 43List entry for the rs control list 44 </p></dd></dl></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="structs.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="structs.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="pubfunctions.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 4. Structures </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 5. Public Functions Provided</td></tr></table></div></body></html> 45