This repository has been archived on 2024-11-23. You can view files and clone it, but cannot push or open issues or pull requests.
SSTV-Decoder/include/fft/fft.h
liuyihui 109c1b74b0 style: macro location;
fix: hanning window width
2023-04-28 14:45:46 +08:00

11 lines
215 B
C

#pragma once
#include "derivative.h"
#define FFT_N 1024
#define FFT_BIN(num, re) (uint16_t)((float)(num + 0.5) * re)
#define FFT_INDEX(freq, re) (uint16_t)((float)freq / re)
void FFT(q15_t *data, uint16_t len);