stm32f407均方根函数使用

2019-07-20 10:55发布

stm32f407DSP库均方根函数调用。。怎么使用呀?函数原型是什么?
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
14条回答
mack13013
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]

一周热门 更多>