Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches

◆ nrf_dsp_cfft_twiddle_factors_f32()

uint16_t nrf_dsp_cfft_twiddle_factors_f32 ( flt32_t * p_twiddle_cfft,
uint16_t fft_len )

#include <include/nrf_edgeai/dsp/transform/fft/nrf_dsp_fft_f32.h>

Generate floating-point complex twiddle factors buffer.

Parameters
[out]p_twiddle_cfftOutput complex twiddle factors buffer, the output buffer should be 2*fft_len in length the twiddle factors will be written in interleaved fashion (cos0,sin0,cos1,sin1,..., cosN,sinN),
[in]fft_lenFFT length for which complex twiddle factors table will be generated, should be in power of 2
Returns
Number of twiddle factors in the output buffer, if fft_len is not power of 2, returns 0