STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
FFT.h
Go to the documentation of this file.
1 /*
2  * FFT.h
3  *
4  * Created on: May 31, 2016
5  * Author: Torsten
6  */
7 
8 #ifndef FFT_H_
9 #define FFT_H_
10 
11 #include "AudioPlayer.h"
12 
13 #define FFT_SIZE 256 //256, 512 or 1024, nothing else, just 256 supported
14 #define FFT_SAMPLES (2*FFT_SIZE)
15 
16 #define FFT_Y_BORDER 0
17 #define FFT_Y_BORDER_TOP 70
18 #define FFT_X_WIDTH 20
19 #define FFT_X_W_RECT (FFT_X_WIDTH-3)
20 #define FFT_X_START 20
21 
22 #define X_STEPS 7 //for line and point graph
23 
24 #define FFT_BIN_SKIP 0 //0..10 : how many low freq. bins to skip for higher resolution on higher freq.
25 #define FFT_DISP_TYPE 2 //0..2 : 0 = bars, 1 = points, 2 = lines - 1: points, it the fastest way
26 
27 #define COLOR_INACTIVE LCD_COLOR_BLACK
28 #define COLOR_LEFT LCD_COLOR_YELLOW
29 #define COLOR_RIGHT LCD_COLOR_GREEN
30 
31 extern int32_t FFT_Init(void);
32 extern int32_t FFT_Filter(int ch);
33 extern int32_t FFT_Ready(float32_t **result, int *numResults);
34 extern void FFT_DisplayGraph(int ch);
35 
36 #endif /* FFT_H_ */
float float32_t
32-bit floating-point type definition.
Definition: arm_math.h:407
return ch
Definition: lcd_log.c:311
int32_t FFT_Init(void)
Definition: FFT.c:288
int32_t FFT_Filter(int ch)
Definition: FFT.c:336
void FFT_DisplayGraph(int ch)
Display the FFT, depending on the barType - which type we want to display.
Definition: FFT.c:436
int32_t FFT_Ready(float32_t **result, int *numResults)
Definition: FFT.c:296