This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to build parameterized band-pass filter implemented with CMSIS-DSP?

How to build parameterized band-pass filter implemented with ARM CMSIS-DSP library? For example I would like to filter out frequencies other than the specified one, e.g. 50Hz on STM32H7A3.
I think I need to use one of filtering functions like: arm_fir_*arm_iir_* or arm_biquad_*.
There are some examples available here and there (e.g. this one) but they all rely on coefs generated with Matlab FDATool fir1() function which I cannot use since I need to be able to alter frequency response programmatically on the fly.

How to create coefficients required as an input by CMSIS-DSP functions in my C/C++ code based on filter pass frequency, Q factor and sample rate, in a similar fashion that it is done in this online calculator or by Matlab fdatool?

0