<!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: gr_fxpt Class 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.3 --> <div class="contents"> <h1>gr_fxpt Class Reference<br/> <small> [<a class="el" href="group__misc.html">Miscellaneous</a>]</small> </h1><!-- doxytag: class="gr_fxpt" --> <p>fixed point sine and cosine and friends.fixed pt radians --------- -------- -2**31 -pi 0 0 2**31-1 pi - epsilon <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="gr__fxpt_8h_source.html">gr_fxpt.h</a>></code></p> <p><a href="classgr__fxpt-members.html">List of all members.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="gr__types_8h.html#ac07cda22882f844c0aa1633d49f1c144">gr_int32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgr__fxpt.html#a8cf5f6942dd8db09072fb711d09b4820">float_to_fixed</a> (float x)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static float </td><td class="memItemRight" valign="bottom"><a class="el" href="classgr__fxpt.html#a4b89af0770b5c4751f52224976514c20">fixed_to_float</a> (<a class="el" href="gr__types_8h.html#ac07cda22882f844c0aa1633d49f1c144">gr_int32</a> x)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static float </td><td class="memItemRight" valign="bottom"><a class="el" href="classgr__fxpt.html#a26312e3f31f6d7a6ae4810c05f30979a">sin</a> (<a class="el" href="gr__types_8h.html#ac07cda22882f844c0aa1633d49f1c144">gr_int32</a> x)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Given a fixed point angle x, return float sine (x). <a href="#a26312e3f31f6d7a6ae4810c05f30979a"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static float </td><td class="memItemRight" valign="bottom"><a class="el" href="classgr__fxpt.html#a61861c9e4535e05a567a96a2551430a9">cos</a> (<a class="el" href="gr__types_8h.html#ac07cda22882f844c0aa1633d49f1c144">gr_int32</a> x)</td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>fixed point sine and cosine and friends.</p> <p>fixed pt radians --------- -------- -2**31 -pi 0 0 2**31-1 pi - epsilon </p> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a61861c9e4535e05a567a96a2551430a9"></a><!-- doxytag: member="gr_fxpt::cos" ref="a61861c9e4535e05a567a96a2551430a9" args="(gr_int32 x)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static float gr_fxpt::cos </td> <td>(</td> <td class="paramtype"><a class="el" href="gr__types_8h.html#ac07cda22882f844c0aa1633d49f1c144">gr_int32</a> </td> <td class="paramname"> <em>x</em></td> <td> ) </td> <td><code> [inline, static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Referenced by <a class="el" href="gr__fxpt__vco_8h_source.html#l00059">gr_fxpt_vco::cos()</a>, <a class="el" href="gr__fxpt__nco_8h_source.html#l00103">gr_fxpt_nco::cos()</a>, and <a class="el" href="gr__fxpt__nco_8h_source.html#l00085">gr_fxpt_nco::sincos()</a>.</p> </div> </div> <a class="anchor" id="a4b89af0770b5c4751f52224976514c20"></a><!-- doxytag: member="gr_fxpt::fixed_to_float" ref="a4b89af0770b5c4751f52224976514c20" args="(gr_int32 x)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static float gr_fxpt::fixed_to_float </td> <td>(</td> <td class="paramtype"><a class="el" href="gr__types_8h.html#ac07cda22882f844c0aa1633d49f1c144">gr_int32</a> </td> <td class="paramname"> <em>x</em></td> <td> ) </td> <td><code> [inline, static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Referenced by <a class="el" href="gr__fxpt__nco_8h_source.html#l00075">gr_fxpt_nco::get_freq()</a>, <a class="el" href="gr__fxpt__vco_8h_source.html#l00049">gr_fxpt_vco::get_phase()</a>, and <a class="el" href="gr__fxpt__nco_8h_source.html#l00074">gr_fxpt_nco::get_phase()</a>.</p> </div> </div> <a class="anchor" id="a8cf5f6942dd8db09072fb711d09b4820"></a><!-- doxytag: member="gr_fxpt::float_to_fixed" ref="a8cf5f6942dd8db09072fb711d09b4820" args="(float x)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="gr__types_8h.html#ac07cda22882f844c0aa1633d49f1c144">gr_int32</a> gr_fxpt::float_to_fixed </td> <td>(</td> <td class="paramtype">float </td> <td class="paramname"> <em>x</em></td> <td> ) </td> <td><code> [inline, static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Referenced by <a class="el" href="gr__fxpt__nco_8h_source.html#l00056">gr_fxpt_nco::adjust_freq()</a>, <a class="el" href="gr__fxpt__vco_8h_source.html#l00045">gr_fxpt_vco::adjust_phase()</a>, <a class="el" href="gr__fxpt__nco_8h_source.html#l00046">gr_fxpt_nco::adjust_phase()</a>, <a class="el" href="gr__fxpt__nco_8h_source.html#l00051">gr_fxpt_nco::set_freq()</a>, <a class="el" href="gr__fxpt__vco_8h_source.html#l00041">gr_fxpt_vco::set_phase()</a>, and <a class="el" href="gr__fxpt__nco_8h_source.html#l00042">gr_fxpt_nco::set_phase()</a>.</p> </div> </div> <a class="anchor" id="a26312e3f31f6d7a6ae4810c05f30979a"></a><!-- doxytag: member="gr_fxpt::sin" ref="a26312e3f31f6d7a6ae4810c05f30979a" args="(gr_int32 x)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static float gr_fxpt::sin </td> <td>(</td> <td class="paramtype"><a class="el" href="gr__types_8h.html#ac07cda22882f844c0aa1633d49f1c144">gr_int32</a> </td> <td class="paramname"> <em>x</em></td> <td> ) </td> <td><code> [inline, static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Given a fixed point angle x, return float sine (x). </p> <p>Referenced by <a class="el" href="gr__fxpt__nco_8h_source.html#l00094">gr_fxpt_nco::sin()</a>, and <a class="el" href="gr__fxpt__nco_8h_source.html#l00085">gr_fxpt_nco::sincos()</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="gr__fxpt_8h_source.html">gr_fxpt.h</a></li> </ul> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated on Wed Dec 29 19:52:46 2010 for GNU Radio 3.3.0 C++ API by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address> </body> </html>