計測用コードのみ記載
1.コード
1)計測
(1)<fft_peak.h>
/** Project Name:FFT_F4 File Name:fft_peak.h Description: USB speaker with isochronous transfer Generation Information : Device : STM32F411CEU6 Version : 01 Created on : 2023/12/20 */ /** Copyright (c) 2023 luke24e-hbid This software is released under the MIT License. http://opensource.org/licenses/mit-license.php */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef INC_FFT_PEAK_H_ #define INC_FFT_PEAK_H_ /* Includes ------------------------------------------------------------------*/ #include "main.h" #define ARM_MATH_CM4 #include "arm_math.h" #include "arm_const_structs.h" #include "arm_common_tables.h" /* Private defines -----------------------------------------------------------*/ /* Function prototype declaration ------------------------------------------*/ // Read FFT Data void read_data_sin(float32_t fin); // FFT peak detect float32_t rfft_spline(uint32_t nfft); #endif /* INC_FFT_PEAK_H_ */