Files
TweinStein/Documentation/html/_f_f_t_8h_source.html
2026-06-12 02:55:04 -07:00

109 lines
7.9 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>RTOS_MSPM0: RTOS_Labs_common/FFT.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="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></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 id="projectlogo"><img alt="Logo" src="RobotSensors.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">RTOS_MSPM0
&#160;<span id="projectnumber">1.1</span>
</div>
<div id="projectbrief">ECE445M starter code</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d9737668015ddda3d9b152d7c8d1103c.html">RTOS_Labs_common</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">FFT.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="_f_f_t_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; </div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment">/* Factored discrete Fourier transform, or FFT, and its inverse iFFT */</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment">// Derived from </span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment">// http://www.math.wustl.edu/~victor/mfmm/index.html#mfmm-software</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment">// Mathematics for Multimedia, ISBN 978-0-8176-4879-4, was formerly managed by Elsevier/Academic Press.</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment">// MSP432 available RAM limits size to N=2048 points</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor">#include &lt;math.h&gt;</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#include &lt;stdlib.h&gt;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="structcomplex.html"> 29</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structcomplex.html">complex</a>{</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; <span class="keywordtype">float</span> Real; </div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; <span class="keywordtype">float</span> Imag;</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;}; </div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structcomplex.html">complex</a> <a class="code" href="structcomplex.html">complex_t</a>;</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; </div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="preprocessor">#ifndef PI</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="group___math.html#ga598a3330b3c21701223ee0ca14316eca"> 39</a></span>&#160;<span class="preprocessor">#define PI 3.14159265358979323846264338327950288</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; </div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="group___math.html#ga7e6991842a107b203a304c191d574591"> 60</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___math.html#ga7e6991842a107b203a304c191d574591">fft</a>(<a class="code" href="structcomplex.html">complex_t</a> *v, <span class="keywordtype">int</span> n, <a class="code" href="structcomplex.html">complex_t</a> *tmp);</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; </div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; </div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="group___math.html#ga4ad1f9b6c8ed4f2fdb439e795c3c0e3a"> 80</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___math.html#ga4ad1f9b6c8ed4f2fdb439e795c3c0e3a">ifft</a>(<a class="code" href="structcomplex.html">complex_t</a> *v, <span class="keywordtype">int</span> n, <a class="code" href="structcomplex.html">complex_t</a> *tmp);</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; </div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; </div>
<div class="ttc" id="agroup___math_html_ga4ad1f9b6c8ed4f2fdb439e795c3c0e3a"><div class="ttname"><a href="group___math.html#ga4ad1f9b6c8ed4f2fdb439e795c3c0e3a">ifft</a></div><div class="ttdeci">void ifft(complex_t *v, int n, complex_t *tmp)</div><div class="ttdoc">Inverse fft.</div></div>
<div class="ttc" id="agroup___math_html_ga7e6991842a107b203a304c191d574591"><div class="ttname"><a href="group___math.html#ga7e6991842a107b203a304c191d574591">fft</a></div><div class="ttdeci">void fft(complex_t *v, int n, complex_t *tmp)</div><div class="ttdoc">fft</div></div>
<div class="ttc" id="astructcomplex_html"><div class="ttname"><a href="structcomplex.html">complex</a></div><div class="ttdoc">a complex number has a real and imaginary part</div><div class="ttdef"><b>Definition:</b> FFT.h:29</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>