00001 /*----------------------------------------------------------------------------- 00002 * Copyright (C) 2011 ARM Limited. All rights reserved. 00003 * 00004 * $Date: 15. December 2011 00005 * $Revision: V2.0.0 00006 * 00007 * Project: Cortex-R DSP Library 00008 * Title: arm_biquad_cascade_df2T_init_f32.c 00009 * 00010 * Description: Initialization function for the floating-point transposed 00011 * direct form II Biquad cascade filter. 00012 * 00013 * Target Processor: Cortex-R4/R5 00014 * 00015 * Version 1.0.0 2011/03/08 00016 * Alpha release. 00017 * 00018 * Version 1.0.1 2011/09/30 00019 * Beta release. 00020 * 00021 * Version 2.0.0 2011/12/15 00022 * Final release. 00023 * 00024 * ---------------------------------------------------------------------------*/ 00025 #include "arm_math.h" 00026 00064 void arm_biquad_cascade_df2T_init_f32( 00065 arm_biquad_cascade_df2T_instance_f32 * S, 00066 uint8_t numStages, 00067 float32_t * pCoeffs, 00068 float32_t * pState) 00069 { 00070 /* Assign filter stages */ 00071 S->numStages = numStages; 00072 00073 /* Assign coefficient pointer */ 00074 S->pCoeffs = pCoeffs; 00075 00076 /* Clear state buffer and size is always 2 * numStages */ 00077 memset(pState, 0, (2u * (uint32_t) numStages) * sizeof(float32_t)); 00078 00079 /* Assign state pointer */ 00080 S->pState = pState; 00081 } 00082