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
2023-04-27 01:20:47 +08:00

12 lines
224 B
C

#pragma once
#include <inttypes.h>
#define q15_t int16_t
#define q31_t int32_t
#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);