Basic Audio Signal Processing Library

Dependents:   unzen_sample_nucleo_f746 skeleton_unzen_nucleo_f746 ifmag_noise_canceller synthesizer_f746

Embed: (wiki syntax)

« Back to documentation index

BiQuadCascadeDF2T Class Reference

BiQuadCascadeDF2T Class Reference

Wrapper class of the arm_biquad_cascade_df2T_f32() and the arm_biquad_cascade_df2T_init_f32(). More...

#include <biquadcascadedf2t.h>

Inherits amakusa::AbstractFilter.

Public Member Functions

 BiQuadCascadeDF2T (uint16_t stages, float32_t *pCoeff, uint32_t block_size)
 Constructor.
virtual ~BiQuadCascadeDF2T ()
 Destructor.
virtual void run (float32_t *pSrc, float32_t *pDst)
 Run the filter.

Detailed Description

Wrapper class of the arm_biquad_cascade_df2T_f32() and the arm_biquad_cascade_df2T_init_f32().

To use this class, include amakusa.h

The biquad filter is depicted as following. The pCoeff array has b0, b1, b2, a1, a2 parameter by this order. If the stage is N, N blockes of these parameers are given. The length of pCoeff is 5N.

x[n]---+-- b0 -->+---------+---y[n]
       |         ^         |
       |         D         |
       +-- b1 -->+<-- a1 --+
       |         D         |
       +-- b2 -->+<-- a2 --+

Definition at line 24 of file biquadcascadedf2t.h.


Constructor & Destructor Documentation

BiQuadCascadeDF2T ( uint16_t  stages,
float32_t *  pCoeff,
uint32_t  block_size 
)

Constructor.

Parameters:
[in]stagesNumber of the Bi-Quad stages.
[in]pCoeffPonter to the coefficients array.
[in]blockSizeMaximum number of the samples to be given to run() method at onece.

Definition at line 3 of file biquadcascadedf2t.cpp.

~BiQuadCascadeDF2T (  ) [virtual]

Destructor.

Definition at line 14 of file biquadcascadedf2t.cpp.


Member Function Documentation

void run ( float32_t *  pSrc,
float32_t *  pDst 
) [virtual]

Run the filter.

Parameters:
[in]pSrcPointer to the source buffer to be filtered.
[out]pDstPointer to the destination buffer to store the filtered signal.

Definition at line 18 of file biquadcascadedf2t.cpp.