index.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <title>CMSIS DSP Software Library</title>
  7. <title>CMSIS-DSP: CMSIS DSP Software Library</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <link href="cmsis.css" rel="stylesheet" type="text/css" />
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <script type="text/javascript" src="printComponentTabs.js"></script>
  13. <link href="navtree.css" rel="stylesheet" type="text/css"/>
  14. <script type="text/javascript" src="resize.js"></script>
  15. <script type="text/javascript" src="navtree.js"></script>
  16. <script type="text/javascript">
  17. $(document).ready(initResizable);
  18. $(window).load(resizeHeight);
  19. </script>
  20. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  21. <script type="text/javascript" src="search/search.js"></script>
  22. <script type="text/javascript">
  23. $(document).ready(function() { searchBox.OnSelectItem(0); });
  24. </script>
  25. </head>
  26. <body>
  27. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  28. <div id="titlearea">
  29. <table cellspacing="0" cellpadding="0">
  30. <tbody>
  31. <tr style="height: 46px;">
  32. <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td>
  33. <td style="padding-left: 0.5em;">
  34. <div id="projectname">CMSIS-DSP
  35. &#160;<span id="projectnumber">Version 1.8.0</span>
  36. </div>
  37. <div id="projectbrief">CMSIS DSP Software Library</div>
  38. </td>
  39. </tr>
  40. </tbody>
  41. </table>
  42. </div>
  43. <!-- end header part -->
  44. <div id="CMSISnav" class="tabs1">
  45. <ul class="tablist">
  46. <script type="text/javascript">
  47. <!--
  48. writeComponentTabs.call(this);
  49. //-->
  50. </script>
  51. </ul>
  52. </div>
  53. <!-- Generated by Doxygen 1.8.6 -->
  54. <script type="text/javascript">
  55. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  56. </script>
  57. <div id="navrow1" class="tabs">
  58. <ul class="tablist">
  59. <li class="current"><a href="index.html"><span>Main&#160;Page</span></a></li>
  60. <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li>
  61. <li><a href="modules.html"><span>Reference</span></a></li>
  62. <li>
  63. <div id="MSearchBox" class="MSearchBoxInactive">
  64. <span class="left">
  65. <img id="MSearchSelect" src="search/mag_sel.png"
  66. onmouseover="return searchBox.OnSearchSelectShow()"
  67. onmouseout="return searchBox.OnSearchSelectHide()"
  68. alt=""/>
  69. <input type="text" id="MSearchField" value="Search" accesskey="S"
  70. onfocus="searchBox.OnSearchFieldFocus(true)"
  71. onblur="searchBox.OnSearchFieldFocus(false)"
  72. onkeyup="searchBox.OnSearchFieldChange(event)"/>
  73. </span><span class="right">
  74. <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
  75. </span>
  76. </div>
  77. </li>
  78. </ul>
  79. </div>
  80. </div><!-- top -->
  81. <div id="side-nav" class="ui-resizable side-nav-resizable">
  82. <div id="nav-tree">
  83. <div id="nav-tree-contents">
  84. <div id="nav-sync" class="sync"></div>
  85. </div>
  86. </div>
  87. <div id="splitbar" style="-moz-user-select:none;"
  88. class="ui-resizable-handle">
  89. </div>
  90. </div>
  91. <script type="text/javascript">
  92. $(document).ready(function(){initNavTree('index.html','');});
  93. </script>
  94. <div id="doc-content">
  95. <!-- window showing the filter options -->
  96. <div id="MSearchSelectWindow"
  97. onmouseover="return searchBox.OnSearchSelectShow()"
  98. onmouseout="return searchBox.OnSearchSelectHide()"
  99. onkeydown="return searchBox.OnSearchSelectKey(event)">
  100. <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark">&#160;</span>Pages</a></div>
  101. <!-- iframe showing the search results (closed by default) -->
  102. <div id="MSearchResultsWindow">
  103. <iframe src="javascript:void(0)" frameborder="0"
  104. name="MSearchResults" id="MSearchResults">
  105. </iframe>
  106. </div>
  107. <div class="header">
  108. <div class="headertitle">
  109. <div class="title">CMSIS DSP Software Library </div> </div>
  110. </div><!--header-->
  111. <div class="contents">
  112. <div class="textblock"><h2>Introduction </h2>
  113. <p>This user manual describes the CMSIS DSP software library, a suite of common signal processing functions for use on Cortex-M and Cortex-A processor based devices.</p>
  114. <p>The library is divided into a number of functions each covering a specific category:</p>
  115. <ul>
  116. <li>Basic math functions</li>
  117. <li>Fast math functions</li>
  118. <li>Complex math functions</li>
  119. <li>Filtering functions</li>
  120. <li>Matrix functions</li>
  121. <li>Transform functions</li>
  122. <li>Motor control functions</li>
  123. <li>Statistical functions</li>
  124. <li>Support functions</li>
  125. <li>Interpolation functions</li>
  126. <li>Support Vector Machine functions (SVM)</li>
  127. <li>Bayes classifier functions</li>
  128. <li>Distance functions</li>
  129. </ul>
  130. <p>The library has generally separate functions for operating on 8-bit integers, 16-bit integers, 32-bit integer and 32-bit floating-point values.</p>
  131. <h2>Using the Library </h2>
  132. <p>The library installer contains prebuilt versions of the libraries in the <code>Lib</code> folder.</p>
  133. <p>Here is the list of pre-built libraries :</p>
  134. <ul>
  135. <li>arm_cortexM7lfdp_math.lib (Cortex-M7, Little endian, Double Precision Floating Point Unit)</li>
  136. <li>arm_cortexM7bfdp_math.lib (Cortex-M7, Big endian, Double Precision Floating Point Unit)</li>
  137. <li>arm_cortexM7lfsp_math.lib (Cortex-M7, Little endian, Single Precision Floating Point Unit)</li>
  138. <li>arm_cortexM7bfsp_math.lib (Cortex-M7, Big endian and Single Precision Floating Point Unit on)</li>
  139. <li>arm_cortexM7l_math.lib (Cortex-M7, Little endian)</li>
  140. <li>arm_cortexM7b_math.lib (Cortex-M7, Big endian)</li>
  141. <li>arm_cortexM4lf_math.lib (Cortex-M4, Little endian, Floating Point Unit)</li>
  142. <li>arm_cortexM4bf_math.lib (Cortex-M4, Big endian, Floating Point Unit)</li>
  143. <li>arm_cortexM4l_math.lib (Cortex-M4, Little endian)</li>
  144. <li>arm_cortexM4b_math.lib (Cortex-M4, Big endian)</li>
  145. <li>arm_cortexM3l_math.lib (Cortex-M3, Little endian)</li>
  146. <li>arm_cortexM3b_math.lib (Cortex-M3, Big endian)</li>
  147. <li>arm_cortexM0l_math.lib (Cortex-M0 / Cortex-M0+, Little endian)</li>
  148. <li>arm_cortexM0b_math.lib (Cortex-M0 / Cortex-M0+, Big endian)</li>
  149. <li>arm_ARMv8MBLl_math.lib (Armv8-M Baseline, Little endian)</li>
  150. <li>arm_ARMv8MMLl_math.lib (Armv8-M Mainline, Little endian)</li>
  151. <li>arm_ARMv8MMLlfsp_math.lib (Armv8-M Mainline, Little endian, Single Precision Floating Point Unit)</li>
  152. <li>arm_ARMv8MMLld_math.lib (Armv8-M Mainline, Little endian, DSP instructions)</li>
  153. <li>arm_ARMv8MMLldfsp_math.lib (Armv8-M Mainline, Little endian, DSP instructions, Single Precision Floating Point Unit)</li>
  154. </ul>
  155. <p>The library functions are declared in the public file <code><a class="el" href="arm__math_8h.html">arm_math.h</a></code> which is placed in the <code>Include</code> folder. Simply include this file and link the appropriate library in the application and begin calling the library functions. The Library supports single public header file <code> <a class="el" href="arm__math_8h.html">arm_math.h</a></code> for Cortex-M cores with little endian and big endian. Same header file will be used for floating point unit(FPU) variants.</p>
  156. <h2>Examples </h2>
  157. <p>The library ships with a number of examples which demonstrate how to use the library functions.</p>
  158. <h2>Toolchain Support </h2>
  159. <p>The library is now tested on Fast Models building with cmake. Core M0, M7, A5 are tested.</p>
  160. <h2>Building the Library </h2>
  161. <p>The library installer contains a project file to rebuild libraries on MDK toolchain in the <code>CMSIS\DSP\Projects\ARM</code> folder.</p>
  162. <ul>
  163. <li>arm_cortexM_math.uvprojx</li>
  164. </ul>
  165. <p>The libraries can be built by opening the arm_cortexM_math.uvprojx project in MDK-ARM, selecting a specific target, and defining the optional preprocessor macros detailed above.</p>
  166. <p>There is also a work in progress cmake build. The README file is giving more details.</p>
  167. <h2>Preprocessor Macros </h2>
  168. <p>Each library project have different preprocessor macros.</p>
  169. <ul>
  170. <li>ARM_MATH_BIG_ENDIAN:</li>
  171. </ul>
  172. <p>Define macro ARM_MATH_BIG_ENDIAN to build the library for big endian targets. By default library builds for little endian targets.</p>
  173. <ul>
  174. <li>ARM_MATH_MATRIX_CHECK:</li>
  175. </ul>
  176. <p>Define macro ARM_MATH_MATRIX_CHECK for checking on the input and output sizes of matrices</p>
  177. <ul>
  178. <li>ARM_MATH_ROUNDING:</li>
  179. </ul>
  180. <p>Define macro ARM_MATH_ROUNDING for rounding on support functions</p>
  181. <ul>
  182. <li>ARM_MATH_LOOPUNROLL:</li>
  183. </ul>
  184. <p>Define macro ARM_MATH_LOOPUNROLL to enable manual loop unrolling in DSP functions</p>
  185. <ul>
  186. <li>ARM_MATH_NEON:</li>
  187. </ul>
  188. <p>Define macro ARM_MATH_NEON to enable Neon versions of the DSP functions. It is not enabled by default when Neon is available because performances are dependent on the compiler and target architecture.</p>
  189. <ul>
  190. <li>ARM_MATH_NEON_EXPERIMENTAL:</li>
  191. </ul>
  192. <p>Define macro ARM_MATH_NEON_EXPERIMENTAL to enable experimental Neon versions of of some DSP functions. Experimental Neon versions currently do not have better performances than the scalar versions.</p>
  193. <ul>
  194. <li>ARM_MATH_HELIUM:</li>
  195. </ul>
  196. <p>It implies the flags ARM_MATH_MVEF and ARM_MATH_MVEI and ARM_MATH_FLOAT16.</p>
  197. <ul>
  198. <li>ARM_MATH_MVEF:</li>
  199. </ul>
  200. <p>Select Helium versions of the f32 algorithms. It implies ARM_MATH_FLOAT16 and ARM_MATH_MVEI.</p>
  201. <ul>
  202. <li>ARM_MATH_MVEI:</li>
  203. </ul>
  204. <p>Select Helium versions of the int and fixed point algorithms.</p>
  205. <ul>
  206. <li>ARM_MATH_FLOAT16:</li>
  207. </ul>
  208. <p>Float16 implementations of some algorithms (Requires MVE extension).</p>
  209. <hr/>
  210. <h2>CMSIS-DSP in ARM::CMSIS Pack </h2>
  211. <p>The following files relevant to CMSIS-DSP are present in the <b>ARM::CMSIS</b> Pack directories: </p>
  212. <table class="doxtable">
  213. <tr>
  214. <th>File/Folder </th><th>Content </th></tr>
  215. <tr>
  216. <td><b>CMSIS\Documentation\DSP</b> </td><td>This documentation </td></tr>
  217. <tr>
  218. <td><b>CMSIS\DSP\DSP_Lib_TestSuite</b> </td><td>DSP_Lib test suite </td></tr>
  219. <tr>
  220. <td><b>CMSIS\DSP\Examples</b> </td><td>Example projects demonstrating the usage of the library functions </td></tr>
  221. <tr>
  222. <td><b>CMSIS\DSP\Include</b> </td><td>DSP_Lib include files </td></tr>
  223. <tr>
  224. <td><b>CMSIS\DSP\Lib</b> </td><td>DSP_Lib binaries </td></tr>
  225. <tr>
  226. <td><b>CMSIS\DSP\Projects</b> </td><td>Projects to rebuild DSP_Lib binaries </td></tr>
  227. <tr>
  228. <td><b>CMSIS\DSP\Source</b> </td><td>DSP_Lib source files </td></tr>
  229. </table>
  230. <hr/>
  231. <h2>Revision History of CMSIS-DSP </h2>
  232. <p>Please refer to <a class="el" href="ChangeLog_pg.html">Revision History of CMSIS-DSP</a>. </p>
  233. </div></div><!-- contents -->
  234. </div><!-- doc-content -->
  235. <!-- start footer part -->
  236. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  237. <ul>
  238. <li class="footer">Generated on Thu Apr 9 2020 15:49:24 for CMSIS-DSP Version 1.8.0 by Arm Ltd. All rights reserved.
  239. <!--
  240. <a href="http://www.doxygen.org/index.html">
  241. <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6
  242. -->
  243. </li>
  244. </ul>
  245. </div>
  246. </body>
  247. </html>