2023-04-23 21:24:45 +08:00
|
|
|
#pragma once
|
|
|
|
|
2023-04-27 01:20:47 +08:00
|
|
|
#include <inttypes.h>
|
2023-04-23 21:24:45 +08:00
|
|
|
|
2023-04-23 21:36:04 +08:00
|
|
|
#define q15_t int16_t
|
|
|
|
#define q31_t int32_t
|
2023-04-23 21:24:45 +08:00
|
|
|
|
2023-04-24 01:05:42 +08:00
|
|
|
#define FFT_BIN(num, re) (uint16_t)((float)(num + 0.5) * re)
|
|
|
|
#define FFT_INDEX(freq, re) (uint16_t)((float)freq / re)
|
2023-04-23 21:24:45 +08:00
|
|
|
|
2023-04-25 19:09:55 +08:00
|
|
|
void FFT(q15_t *data);
|