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

BiQuadCascadeDF1 Class Reference

BiQuadCascadeDF1 Class Reference

Wrapper class of the arm_biquad_cascade_df1_f32() and the arm_biquad_cascade_df1_init_f32(). More...

#include <biquadcascadedf1.h>

Inherits amakusa::AbstractFilter.

Public Member Functions

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

Detailed Description

Wrapper class of the arm_biquad_cascade_df1_f32() and the arm_biquad_cascade_df1_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 biquadcascadedf1.h.


Constructor & Destructor Documentation

BiQuadCascadeDF1 ( 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 biquadcascadedf1.cpp.

~BiQuadCascadeDF1 (  ) [virtual]

deconstructor

Definition at line 14 of file biquadcascadedf1.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 biquadcascadedf1.cpp.