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

◆ NRF_DSP_CFFT_TWIDDLE_COEF_1024_F32

const flt32_t NRF_DSP_CFFT_TWIDDLE_COEF_1024_F32[2048]
Example code for Floating-point Twiddle factors Generation:
for (i = 0; i< N/; i++)
{
      NRF_DSP_CFFT_TWIDDLE_COEF[2*i]   = cos(i * 2*PI/(flt32_t)N);
      NRF_DSP_CFFT_TWIDDLE_COEF[2*i+1] = sin(i * 2*PI/(flt32_t)N);
} 
where N = 1024, PI = 3.14159265358979
Cos and Sin values are in interleaved fashion