stm32f407均方根函数使用

2019-07-20 10:55发布

stm32f407DSP库均方根函数调用。。怎么使用呀?函数原型是什么?
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
14条回答
mack13013
1楼-- · 2019-07-20 11:22
本帖最后由 mack13013 于 2017-11-17 06:39 编辑
mack13013 发表于 2017-11-17 01:43
函数原型???

这个是DSP硬件实现的算法,大概过程就是给某个地址提交一些参数,然后设置一个en,然 ...
函数原型,一直以为是说函数源码....
在arm_math.h中有RMS函数原型如下:


[mw_shl_code=c,true]
  /**
   * @brief  Root Mean Square of the elements of a floating-point vector.
   * @param[in]  pSrc       is input pointer
   * @param[in]  blockSize  is the number of samples to process
   * @param[out] pResult    is output value.
   */
  void arm_rms_f32(
  float32_t * pSrc,
  uint32_t blockSize,
  float32_t * pResult);


  /**
   * @brief  Root Mean Square of the elements of a Q31 vector.
   * @param[in]  pSrc       is input pointer
   * @param[in]  blockSize  is the number of samples to process
   * @param[out] pResult    is output value.
   */
  void arm_rms_q31(
  q31_t * pSrc,
  uint32_t blockSize,
  q31_t * pResult);


  /**
   * @brief  Root Mean Square of the elements of a Q15 vector.
   * @param[in]  pSrc       is input pointer
   * @param[in]  blockSize  is the number of samples to process
   * @param[out] pResult    is output value.
   */
  void arm_rms_q15(
  q15_t * pSrc,
  uint32_t blockSize,
  q15_t * pResult);
[/mw_shl_code]
正点原子
2楼-- · 2019-07-20 14:15
帮顶
feiyang0725
3楼-- · 2019-07-20 19:16
 精彩回答 2  元偷偷看……
正点原子
4楼-- · 2019-07-20 19:25
 精彩回答 2  元偷偷看……
feiyang0725
5楼-- · 2019-07-20 20:23
正点原子 发表于 2017-11-14 20:28
sqrt

这是开方。。我看到DSP库里面有提到有均方根函数。。。可惜没找到原型
正点原子
6楼-- · 2019-07-21 00:42
 精彩回答 2  元偷偷看……

一周热门 更多>