How sansen10/cmsis_stft works
This is a lightweight STM32/Cortex-M STFT library using CMSIS-DSP. A caller initializes an instance, optionally configures ADC conversion and a callback, then submits a buffer for windowing, FFT and magnitude processing; results are delivered through the callback. The runtime supports floating-point and q15/q31 fixed-point paths, plus instance cleanup. The excerpts show parts of initialization, window generation and q15 execution; other advertised paths and capabilities are represented from the README rather than assumed source details.
Main entry points: cmsis_stft.c Float processing · cmsis_stft.h STFT API · stft_port.h Core detection
Components 10
Public interface
- STFT API
inc/cmsis_stft.h - ADC configuration
src/cmsis_stft.c
STFT runtime
- Float processing
src/cmsis_stft.c - Fixed-point processing
src/cmsis_stft.c - Window generation
src/cmsis_stft.c - Instance lifecycle
src/cmsis_stft.c
DSP platform
- Core detection
inc/stft_port.h - CMSIS-DSP
Other components
- Application
- Result callback
Connections 11
- Application → STFT API: uses
README.md - STFT API → Core detection: includes
inc/cmsis_stft.h - Application → Float processing: submits float data
README.md - Application → Fixed-point processing: submits ADC data
README.md - Application → ADC configuration: sets ADC parameters
README.md - Float processing → Window generation: generates coefficients
src/cmsis_stft.c - Float processing → CMSIS-DSP: uses FFT math
README.md - Fixed-point processing → CMSIS-DSP: calls FFT routines
src/cmsis_stft.c - Fixed-point processing → Result callback: invokes callback
src/cmsis_stft.c - Float processing → Result callback: provides callback output
README.md - Application → Instance lifecycle: frees instance
README.md