初级会员

- 积分
- 76
- 金钱
- 76
- 注册时间
- 2014-3-2
- 在线时间
- 8 小时
|
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);
第一个参数是如何传递进去的,单步调试都找不到,也没有找到给结构体赋值的语句。很郁闷,自己仿照这写了这样的函数,定义了一个结构体变量,可是参数始终传递不进去
|
|