XCORE SDK
XCORE Software Development Kit
|
A biquad filter block. More...
#include <xs3_filters.h>
Public Attributes | |
unsigned | biquad_count |
int32_t | state [2][9] |
int32_t | coef [5][8] |
A biquad filter block.
Contains the coeffient and state information for a cascade of up to 8 biquad filter sections.
To process a new input sample, xs3_filter_biquad_s32() can be used with a pointer to one of these structs.
For longer cascades, an array of xs3_biquad_filter_s32_t
structs can be used with xs3_filter_biquads_s32().
This library includes a python script which converts existing floating-point cascaed biquad filter coefficients into a suitable representation and generates code for easily initializing and executing the filter. See Note: Digital Filter Conversion for more.
unsigned xs3_biquad_filter_s32_t::biquad_count |
The number of biquad sections in this biquad filter block.
int32_t xs3_biquad_filter_s32_t::coef[5][8] |
Coefficients for the biquad sections.
The second index corresponds to the biquad section.
The first index corresponds to coefficients \(b_0\), \(b_1\), \(b_2\), \(-a_1\) and \(-a_2\), in that order.
int32_t xs3_biquad_filter_s32_t::state[2][9] |
Contains filter state inforamtion.
state[j][k] is the value x_k[j], i.e. x[n-j] of the kth biquad. x[j][8] are outputs of 8th biquad