CMSIS-DSP  Version 1.4.4
CMSIS DSP Software Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
arm_common_tables.h File Reference

Macros

#define twiddleCoef
 
#define ARMBITREVINDEXTABLE__16_TABLE_LENGTH
 
#define ARMBITREVINDEXTABLE__32_TABLE_LENGTH
 
#define ARMBITREVINDEXTABLE__64_TABLE_LENGTH
 
#define ARMBITREVINDEXTABLE_128_TABLE_LENGTH
 
#define ARMBITREVINDEXTABLE_256_TABLE_LENGTH
 
#define ARMBITREVINDEXTABLE_512_TABLE_LENGTH
 
#define ARMBITREVINDEXTABLE1024_TABLE_LENGTH
 
#define ARMBITREVINDEXTABLE2048_TABLE_LENGTH
 
#define ARMBITREVINDEXTABLE4096_TABLE_LENGTH
 
#define ARMBITREVINDEXTABLE_FIXED___16_TABLE_LENGTH
 
#define ARMBITREVINDEXTABLE_FIXED___32_TABLE_LENGTH
 
#define ARMBITREVINDEXTABLE_FIXED___64_TABLE_LENGTH
 
#define ARMBITREVINDEXTABLE_FIXED__128_TABLE_LENGTH
 
#define ARMBITREVINDEXTABLE_FIXED__256_TABLE_LENGTH
 
#define ARMBITREVINDEXTABLE_FIXED__512_TABLE_LENGTH
 
#define ARMBITREVINDEXTABLE_FIXED_1024_TABLE_LENGTH
 
#define ARMBITREVINDEXTABLE_FIXED_2048_TABLE_LENGTH
 
#define ARMBITREVINDEXTABLE_FIXED_4096_TABLE_LENGTH
 

Variables

const uint16_t armBitRevTable [1024]
 
const q15_t armRecipTableQ15 [64]
 
const q31_t armRecipTableQ31 [64]
 
const float32_t twiddleCoef_16 [32]
 
const float32_t twiddleCoef_32 [64]
 
const float32_t twiddleCoef_64 [128]
 
const float32_t twiddleCoef_128 [256]
 
const float32_t twiddleCoef_256 [512]
 
const float32_t twiddleCoef_512 [1024]
 
const float32_t twiddleCoef_1024 [2048]
 
const float32_t twiddleCoef_2048 [4096]
 
const float32_t twiddleCoef_4096 [8192]
 
const q31_t twiddleCoef_16_q31 [24]
 
const q31_t twiddleCoef_32_q31 [48]
 
const q31_t twiddleCoef_64_q31 [96]
 
const q31_t twiddleCoef_128_q31 [192]
 
const q31_t twiddleCoef_256_q31 [384]
 
const q31_t twiddleCoef_512_q31 [768]
 
const q31_t twiddleCoef_1024_q31 [1536]
 
const q31_t twiddleCoef_2048_q31 [3072]
 
const q31_t twiddleCoef_4096_q31 [6144]
 
const q15_t twiddleCoef_16_q15 [24]
 
const q15_t twiddleCoef_32_q15 [48]
 
const q15_t twiddleCoef_64_q15 [96]
 
const q15_t twiddleCoef_128_q15 [192]
 
const q15_t twiddleCoef_256_q15 [384]
 
const q15_t twiddleCoef_512_q15 [768]
 
const q15_t twiddleCoef_1024_q15 [1536]
 
const q15_t twiddleCoef_2048_q15 [3072]
 
const q15_t twiddleCoef_4096_q15 [6144]
 
const float32_t twiddleCoef_rfft_32 [32]
 
const float32_t twiddleCoef_rfft_64 [64]
 
const float32_t twiddleCoef_rfft_128 [128]
 
const float32_t twiddleCoef_rfft_256 [256]
 
const float32_t twiddleCoef_rfft_512 [512]
 
const float32_t twiddleCoef_rfft_1024 [1024]
 
const float32_t twiddleCoef_rfft_2048 [2048]
 
const float32_t twiddleCoef_rfft_4096 [4096]
 
const uint16_t armBitRevIndexTable16 [ARMBITREVINDEXTABLE__16_TABLE_LENGTH]
 
const uint16_t armBitRevIndexTable32 [ARMBITREVINDEXTABLE__32_TABLE_LENGTH]
 
const uint16_t armBitRevIndexTable64 [ARMBITREVINDEXTABLE__64_TABLE_LENGTH]
 
const uint16_t armBitRevIndexTable128 [ARMBITREVINDEXTABLE_128_TABLE_LENGTH]
 
const uint16_t armBitRevIndexTable256 [ARMBITREVINDEXTABLE_256_TABLE_LENGTH]
 
const uint16_t armBitRevIndexTable512 [ARMBITREVINDEXTABLE_512_TABLE_LENGTH]
 
const uint16_t armBitRevIndexTable1024 [ARMBITREVINDEXTABLE1024_TABLE_LENGTH]
 
const uint16_t armBitRevIndexTable2048 [ARMBITREVINDEXTABLE2048_TABLE_LENGTH]
 
const uint16_t armBitRevIndexTable4096 [ARMBITREVINDEXTABLE4096_TABLE_LENGTH]
 
const uint16_t armBitRevIndexTable_fixed_16 [ARMBITREVINDEXTABLE_FIXED___16_TABLE_LENGTH]
 
const uint16_t armBitRevIndexTable_fixed_32 [ARMBITREVINDEXTABLE_FIXED___32_TABLE_LENGTH]
 
const uint16_t armBitRevIndexTable_fixed_64 [ARMBITREVINDEXTABLE_FIXED___64_TABLE_LENGTH]
 
const uint16_t armBitRevIndexTable_fixed_128 [ARMBITREVINDEXTABLE_FIXED__128_TABLE_LENGTH]
 
const uint16_t armBitRevIndexTable_fixed_256 [ARMBITREVINDEXTABLE_FIXED__256_TABLE_LENGTH]
 
const uint16_t armBitRevIndexTable_fixed_512 [ARMBITREVINDEXTABLE_FIXED__512_TABLE_LENGTH]
 
const uint16_t armBitRevIndexTable_fixed_1024 [ARMBITREVINDEXTABLE_FIXED_1024_TABLE_LENGTH]
 
const uint16_t armBitRevIndexTable_fixed_2048 [ARMBITREVINDEXTABLE_FIXED_2048_TABLE_LENGTH]
 
const uint16_t armBitRevIndexTable_fixed_4096 [ARMBITREVINDEXTABLE_FIXED_4096_TABLE_LENGTH]
 
const float32_t sinTable_f32 [FAST_MATH_TABLE_SIZE+1]
 
const q31_t sinTable_q31 [FAST_MATH_TABLE_SIZE+1]
 
const q15_t sinTable_q15 [FAST_MATH_TABLE_SIZE+1]
 

Macro Definition Documentation

#define ARMBITREVINDEXTABLE1024_TABLE_LENGTH

Referenced by arm_rfft_fast_init_f32().

#define ARMBITREVINDEXTABLE2048_TABLE_LENGTH

Referenced by arm_rfft_fast_init_f32().

#define ARMBITREVINDEXTABLE4096_TABLE_LENGTH
#define ARMBITREVINDEXTABLE_128_TABLE_LENGTH

Referenced by arm_rfft_fast_init_f32().

#define ARMBITREVINDEXTABLE_256_TABLE_LENGTH

Referenced by arm_rfft_fast_init_f32().

#define ARMBITREVINDEXTABLE_512_TABLE_LENGTH

Referenced by arm_rfft_fast_init_f32().

#define ARMBITREVINDEXTABLE__16_TABLE_LENGTH

Referenced by arm_rfft_fast_init_f32().

#define ARMBITREVINDEXTABLE__32_TABLE_LENGTH

Referenced by arm_rfft_fast_init_f32().

#define ARMBITREVINDEXTABLE__64_TABLE_LENGTH

Referenced by arm_rfft_fast_init_f32().

#define ARMBITREVINDEXTABLE_FIXED_1024_TABLE_LENGTH
#define ARMBITREVINDEXTABLE_FIXED_2048_TABLE_LENGTH
#define ARMBITREVINDEXTABLE_FIXED_4096_TABLE_LENGTH
#define ARMBITREVINDEXTABLE_FIXED__128_TABLE_LENGTH
#define ARMBITREVINDEXTABLE_FIXED__256_TABLE_LENGTH
#define ARMBITREVINDEXTABLE_FIXED__512_TABLE_LENGTH
#define ARMBITREVINDEXTABLE_FIXED___16_TABLE_LENGTH
#define ARMBITREVINDEXTABLE_FIXED___32_TABLE_LENGTH
#define ARMBITREVINDEXTABLE_FIXED___64_TABLE_LENGTH
#define twiddleCoef

Variable Documentation

const uint16_t armBitRevIndexTable1024[ARMBITREVINDEXTABLE1024_TABLE_LENGTH]

Referenced by arm_rfft_fast_init_f32().

const uint16_t armBitRevIndexTable128[ARMBITREVINDEXTABLE_128_TABLE_LENGTH]

Referenced by arm_rfft_fast_init_f32().

const uint16_t armBitRevIndexTable16[ARMBITREVINDEXTABLE__16_TABLE_LENGTH]

Referenced by arm_rfft_fast_init_f32().

const uint16_t armBitRevIndexTable2048[ARMBITREVINDEXTABLE2048_TABLE_LENGTH]

Referenced by arm_rfft_fast_init_f32().

const uint16_t armBitRevIndexTable256[ARMBITREVINDEXTABLE_256_TABLE_LENGTH]

Referenced by arm_rfft_fast_init_f32().

const uint16_t armBitRevIndexTable32[ARMBITREVINDEXTABLE__32_TABLE_LENGTH]

Referenced by arm_rfft_fast_init_f32().

const uint16_t armBitRevIndexTable4096[ARMBITREVINDEXTABLE4096_TABLE_LENGTH]
const uint16_t armBitRevIndexTable512[ARMBITREVINDEXTABLE_512_TABLE_LENGTH]

Referenced by arm_rfft_fast_init_f32().

const uint16_t armBitRevIndexTable64[ARMBITREVINDEXTABLE__64_TABLE_LENGTH]

Referenced by arm_rfft_fast_init_f32().

const uint16_t armBitRevIndexTable_fixed_1024[ARMBITREVINDEXTABLE_FIXED_1024_TABLE_LENGTH]
const uint16_t armBitRevIndexTable_fixed_128[ARMBITREVINDEXTABLE_FIXED__128_TABLE_LENGTH]
const uint16_t armBitRevIndexTable_fixed_16[ARMBITREVINDEXTABLE_FIXED___16_TABLE_LENGTH]
const uint16_t armBitRevIndexTable_fixed_2048[ARMBITREVINDEXTABLE_FIXED_2048_TABLE_LENGTH]
const uint16_t armBitRevIndexTable_fixed_256[ARMBITREVINDEXTABLE_FIXED__256_TABLE_LENGTH]
const uint16_t armBitRevIndexTable_fixed_32[ARMBITREVINDEXTABLE_FIXED___32_TABLE_LENGTH]
const uint16_t armBitRevIndexTable_fixed_4096[ARMBITREVINDEXTABLE_FIXED_4096_TABLE_LENGTH]
const uint16_t armBitRevIndexTable_fixed_512[ARMBITREVINDEXTABLE_FIXED__512_TABLE_LENGTH]
const uint16_t armBitRevIndexTable_fixed_64[ARMBITREVINDEXTABLE_FIXED___64_TABLE_LENGTH]
const q15_t armRecipTableQ15[64]

end of CFFT_CIFFT group

Referenced by arm_lms_norm_init_q15().

const q31_t armRecipTableQ31[64]

Referenced by arm_lms_norm_init_q31().

const float32_t sinTable_f32[FAST_MATH_TABLE_SIZE+1]
Example code for the generation of the floating-point sine table:
tableSize = 512;    
for(n = 0; n < (tableSize + 1); n++)    
{    
     sinTable[n]=sin(2*pi*n/tableSize);    
}
where pi value is 3.14159265358979

Referenced by arm_cos_f32(), arm_sin_cos_f32(), and arm_sin_f32().

const q15_t sinTable_q15[FAST_MATH_TABLE_SIZE+1]
Table values are in Q15 (1.15 fixed-point format) and generation is done in three steps. First, generate sin values in floating point:
tableSize = 512;      
for(n = 0; n < (tableSize + 1); n++)    
{    
     sinTable[n]= sin(2*pi*n/tableSize);    
} 
where pi value is 3.14159265358979
Second, convert floating-point to Q15 (Fixed point): (sinTable[i] * pow(2, 15))
Finally, round to the nearest integer value: sinTable[i] += (sinTable[i] > 0 ? 0.5 :-0.5);

Referenced by arm_cos_q15(), and arm_sin_q15().

const q31_t sinTable_q31[FAST_MATH_TABLE_SIZE+1]
Table values are in Q31 (1.31 fixed-point format) and generation is done in three steps. First, generate sin values in floating point:
tableSize = 512;      
for(n = 0; n < (tableSize + 1); n++)    
{    
     sinTable[n]= sin(2*pi*n/tableSize);    
} 
where pi value is 3.14159265358979
Second, convert floating-point to Q31 (Fixed point): (sinTable[i] * pow(2, 31))
Finally, round to the nearest integer value: sinTable[i] += (sinTable[i] > 0 ? 0.5 :-0.5);

Referenced by arm_cos_q31(), arm_sin_cos_q31(), and arm_sin_q31().

const float32_t twiddleCoef_rfft_1024[1024]

Referenced by arm_rfft_fast_init_f32().

const float32_t twiddleCoef_rfft_128[128]

Referenced by arm_rfft_fast_init_f32().

const float32_t twiddleCoef_rfft_2048[2048]

Referenced by arm_rfft_fast_init_f32().

const float32_t twiddleCoef_rfft_256[256]

Referenced by arm_rfft_fast_init_f32().

const float32_t twiddleCoef_rfft_32[32]
Example code for Floating-point RFFT Twiddle factors Generation:
TW = exp(2*pi*i*[0:L/2-1]/L - pi/2*i).' 
Real and Imag values are in interleaved fashion

Referenced by arm_rfft_fast_init_f32().

const float32_t twiddleCoef_rfft_4096[4096]

Referenced by arm_rfft_fast_init_f32().

const float32_t twiddleCoef_rfft_512[512]

Referenced by arm_rfft_fast_init_f32().

const float32_t twiddleCoef_rfft_64[64]

Referenced by arm_rfft_fast_init_f32().