STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
Macros | Functions | Variables
FFT.c File Reference
#include <math.h>
#include "FFT.h"
#include "arm_const_structs.h"
#include "stm32f769i_discovery_lcd.h"

Go to the source code of this file.

Macros

#define ROUND(x)   ((x)>=0?(q31_t)((x)+0.5):(q31_t)((x)-0.5))
 
#define ALPHA   0.9999
 

Functions

void FFT_Display_BarGraph (int ch)
 Draw FFT as bar graph. More...
 
void FFT_Display_Points (int ch)
 Draw FFT as points. More...
 
void FFT_Display_Lines (int ch)
 Draw FFT as (connected) lines (default) More...
 
int32_t FFT_Init (void)
 
int32_t FFT_Ready (float32_t **result, int *numResults)
 
int32_t FFT_Filter (int ch)
 
void FFT_DisplayGraph (int ch)
 Display the FFT, depending on the barType - which type we want to display. More...
 

Variables

uint32_t ifftFlag = 0
 
uint32_t doBitReverse = 1
 
uint32_t refIndex = 213
 
const uint8_t lookupInd [] = {25, 27, 30, 34, 39, 45, 52, 60, 69, 79, 90, 102, 115, 127}
 

Macro Definition Documentation

#define ALPHA   0.9999
#define ROUND (   x)    ((x)>=0?(q31_t)((x)+0.5):(q31_t)((x)-0.5))

Function Documentation

void FFT_Display_BarGraph ( int  ch)

Draw FFT as bar graph.

Parameters
ch- the channel 0 or 1
Return values
None

Definition at line 499 of file FFT.c.

void FFT_Display_Lines ( int  ch)

Draw FFT as (connected) lines (default)

Parameters
ch- the channel 0 or 1
Return values
None

Definition at line 685 of file FFT.c.

void FFT_Display_Points ( int  ch)

Draw FFT as points.

Parameters
ch- the channel 0 or 1
Return values
None

Definition at line 611 of file FFT.c.

void FFT_DisplayGraph ( int  ch)

Display the FFT, depending on the barType - which type we want to display.

Parameters
None
Return values
None

Definition at line 436 of file FFT.c.

int32_t FFT_Filter ( int  ch)

Definition at line 336 of file FFT.c.

int32_t FFT_Init ( void  )

Definition at line 288 of file FFT.c.

int32_t FFT_Ready ( float32_t **  result,
int *  numResults 
)

Definition at line 296 of file FFT.c.

Variable Documentation

uint32_t doBitReverse = 1

Definition at line 113 of file FFT.c.

uint32_t ifftFlag = 0

Definition at line 112 of file FFT.c.

const uint8_t lookupInd[] = {25, 27, 30, 34, 39, 45, 52, 60, 69, 79, 90, 102, 115, 127}
Attention
This is just for 256 point FFT (128 bins)

Definition at line 492 of file FFT.c.

uint32_t refIndex = 213

Definition at line 116 of file FFT.c.