OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 5890|回复: 2

FFT arm_cfft_f32 参数传递不进去

[复制链接]

6

主题

10

帖子

0

精华

初级会员

Rank: 2

积分
76
金钱
76
注册时间
2014-3-2
在线时间
8 小时
发表于 2016-1-12 20:02:19 | 显示全部楼层 |阅读模式
1金钱
int32_t main(void)
{
for(index=0;index<2048;index++)
         {  
                  testInput_f32_10khz[index]= 100*sin(3.14*index/512);
        }

  arm_cfft_f32(&arm_cfft_sR_f32_len1024, testInput_f32_10khz, ifftFlag, doBitReverse);

  arm_cmplx_mag_f32(testInput_f32_10khz, testOutput, fftSize);  

  arm_max_f32(testOutput, fftSize, &maxValue, &testIndex);

   for(index=0;index<1024;index++)
         {
           printf("index%d =%d\r\n",index,(u32)testOutput[index]);
         
         }

  while(1);                             /* main function does not return */
}




看到有很多这个相关的例子,有一点不明白的是,arm_cfft_f32(&arm_cfft_sR_f32_len1024, testInput_f32_10khz, ifftFlag, doBitReverse);
第一个参数是如何传递进去的,单步调试都找不到,也没有找到给结构体赋值的语句。很郁闷,自己仿照这写了这样的函数,定义了一个结构体变量,可是参数始终传递不进去

正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

530

主题

11万

帖子

34

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
165377
金钱
165377
注册时间
2010-12-1
在线时间
2111 小时
发表于 2016-1-12 22:54:05 | 显示全部楼层
回复

使用道具 举报

5

主题

37

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
213
金钱
213
注册时间
2017-4-27
在线时间
58 小时
发表于 2020-12-20 15:47:55 | 显示全部楼层
https://arm-software.github.io/C ... st__structs_8h.html

const arm_cfft_instance_f32 arm_cfft_sR_f32_len1024
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-3-1 08:29

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表