69 #include "stm32f4xx.h"
73 #include "arm_const_structs.h"
82 #ifndef LIB_ALLOC_FUNC
83 #define LIB_ALLOC_FUNC malloc
88 #define LIB_FREE_FUNC free
110 const arm_cfft_instance_f32*
S;
182 #define TM_FFT_GetMaxValue(FFT) ((FFT)->MaxValue)
190 #define TM_FFT_GetMaxIndex(FFT) ((FFT)->MaxIndex)
198 #define TM_FFT_GetFFTSize(FFT) ((FFT)->FFT_Size)
207 #define TM_FFT_GetFromBuffer(FFT, index) ((FFT)->Output[(uint16_t)(index)])
const arm_cfft_instance_f32 * S
Definition: tm_stm32f4_fft.h:110
void TM_FFT_SetBuffers_F32(TM_FFT_F32_t *FFT, float32_t *InputBuffer, float32_t *OutputBuffer)
Sets input and output buffers for FFT calculations.
uint16_t FFT_Size
Definition: tm_stm32f4_fft.h:107
void TM_FFT_Free_F32(TM_FFT_F32_t *FFT)
Free input and output buffers.
FFT main structure for 32-bit float.
Definition: tm_stm32f4_fft.h:104
uint8_t UseMalloc
Definition: tm_stm32f4_fft.h:108
uint8_t TM_FFT_Init_F32(TM_FFT_F32_t *FFT, uint16_t FFT_Size, uint8_t use_malloc)
Initializes and prepares FFT structure for signal operations.
float32_t * Input
Definition: tm_stm32f4_fft.h:105
float32_t * Output
Definition: tm_stm32f4_fft.h:106
uint32_t MaxIndex
Definition: tm_stm32f4_fft.h:112
float32_t MaxValue
Definition: tm_stm32f4_fft.h:111
uint8_t TM_FFT_AddToBuffer(TM_FFT_F32_t *FFT, float32_t sampleValue)
Adds new sample to input buffer in FFT array.
void TM_FFT_Process_F32(TM_FFT_F32_t *FFT)
Processes and calculates FFT from InputBuffer and saves data to Output buffer.
uint16_t Count
Definition: tm_stm32f4_fft.h:109