Hi, Friends,
I see that you would like to use the following api function to compute the complex FFT which is defined in arm_cfft_f32.c.
If it is the case, you use the function:
void arm_cfft_f32(
const arm_cfft_instance_f32 * S,
float32_t * p1,
uint8_t ifftFlag,
uint8_t bitReverseFlag)
* The FFT functions operate in-place. That is, the array holding the input data
* will also be used to hold the corresponding result. The input data is complex
* and contains <code>2*fftLen</code> interleaved values as shown below.
* <pre> {real[0], imag[0], real[1], imag[1],..} </pre>
* The FFT result will be contained in the same array and the frequency domain
* values will have the same interleaving.
as the above direction, you can define a structure:
typedef struct {
float32_t real;
float32_t image;
} complex;
complex array[64];
after you initialize the array[] and call the arm_cfft_f32(), it is okay.
BR
Xiangjun Rong