1 #ifndef FFT_RADIX2_DIF_H
2 #define FFT_RADIX2_DIF_H
9 #define NOF_FFT_PER_RANGE_BIN NUMBER_OF_PULSES/NFFT
10 #define NOF_FFT_BATCHES NOF_FFT_PER_RANGE_BIN//*NUMBER_OF_RANGE_BINS
11 #define PI 3.14159265359
12 #define MAX_POW 10 // Maximum 1024 point FFT
14 #define PORT_DATA_IN "data_input"
15 #define PORT_DATA_OUT "data_output"
17 typedef struct _local_states
19 // These are not needed anymore, since we are reading a vector, we don't have to save the values for till next firing.
20 // ComplexNumber Samples_Inp[NFFT];
21 // ComplexNumber Samples_Out[NFFT];
22 // int sample_counter;
30 } FFT_Radix2_DIF_State;
32 void FFT_Radix2_DIF_init(DOLProcess * p);
33 int FFT_Radix2_DIF_fire(DOLProcess * p);
34 void Bit_Reverse_Reorder(ComplexNumber * input, ComplexNumber * output, int N, DOLProcess * p);
35 void FFT_Radix2(ComplexNumber * data, int N);