CSI-DSP
Version 1.0.0
CSI DSP Software Library
|
Content | |
Radix-8 Complex FFT Functions | |
Complex FFT Tables | |
Functions | |
void | csky_cfft_f32 (const csky_cfft_instance_f32 *S, float32_t *p1, uint8_t ifftFlag, uint8_t bitReverseFlag) |
Processing function for the floating-point complex FFT. More... | |
void | csky_cfft_q15 (const csky_cfft_instance_q15 *S, q15_t *p1, uint8_t ifftFlag, uint8_t bitReverseFlag) |
Processing function for the Q15 complex FFT. More... | |
void | csky_cfft_q31 (const csky_cfft_instance_q31 *S, q31_t *p1, uint8_t ifftFlag, uint8_t bitReverseFlag) |
Processing function for the fixed-point complex FFT in Q31 format. More... | |
2*fftLen
interleaved values as shown below. {real[0], imag[0], real[1], imag[1],..}The FFT result will be contained in the same array and the frequency domain values will have the same interleaving.
fftLen
when computing the forward transform. The inverse transform includes a scale of 1/fftLen
as part of the calculation and this matches the textbook definition of the inverse FFT. csky_const_structs.h
. Include this header in your function and then pass one of the constant structures as an argument to csky_cfft_f32. For example: csky_cfft_f32(csky_cfft_sR_f32_len64, pSrc, 1, 1)
fftLen
when computing the forward transform. The inverse transform includes a scale of 1/fftLen
as part of the calculation and this matches the textbook definition of the inverse FFT. csky_const_structs.h
. Include this header in your function and then pass one of the constant structures as an argument to csky_cfft_q31. For example: csky_cfft_q31(csky_cfft_sR_q31_len64, pSrc, 1, 1)
void csky_cfft_f32 | ( | const csky_cfft_instance_f32 * | S, |
float32_t * | p1, | ||
uint8_t | ifftFlag, | ||
uint8_t | bitReverseFlag | ||
) |
[in] | *S | points to an instance of the floating-point CFFT structure. |
[in,out] | *p1 | points to the complex data buffer of size 2*fftLen . Processing occurs in-place. |
[in] | ifftFlag | flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. |
[in] | bitReverseFlag | flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. |
void csky_cfft_q15 | ( | const csky_cfft_instance_q15 * | S, |
q15_t * | p1, | ||
uint8_t | ifftFlag, | ||
uint8_t | bitReverseFlag | ||
) |
[in] | *S | points to an instance of the Q15 CFFT structure. |
[in,out] | *p1 | points to the complex data buffer of size 2*fftLen . Processing occurs in-place. |
[in] | ifftFlag | flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. |
[in] | bitReverseFlag | flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. |
void csky_cfft_q31 | ( | const csky_cfft_instance_q31 * | S, |
q31_t * | p1, | ||
uint8_t | ifftFlag, | ||
uint8_t | bitReverseFlag | ||
) |
[in] | *S | points to an instance of the fixed-point CFFT structure. |
[in,out] | *p1 | points to the complex data buffer of size 2*fftLen . Processing occurs in-place. |
[in] | ifftFlag | flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. |
[in] | bitReverseFlag | flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. |