- Main Page
- Modules
- Data Structures
- Files
- Examples

- File List
- Globals

# arm_biquad_cascade_df2T_init_f32.c

Go to the documentation of this file.

    00001 /*-----------------------------------------------------------------------------
    00002 * Copyright (C) 2010 ARM Limited. All rights reserved.
    00003 *
    00004 * $Date:        29. November 2010
    00005 * $Revision:    V1.0.3
    00006 *
    00007 * Project:      CMSIS 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-M4/Cortex-M3
    00014 *
    00015 * Version 1.0.3 2010/11/29
    00016 *    Re-organized the CMSIS folders and updated documentation.
    00017 *
    00018 * Version 1.0.2 2010/11/11
    00019 *    Documentation updated.
    00020 *
    00021 * Version 1.0.1 2010/10/05
    00022 *    Production release and review comments incorporated.
    00023 *
    00024 * Version 1.0.0 2010/09/20
    00025 *    Production release and review comments incorporated
    00026 *
    00027 * Version 0.0.7  2010/06/10
    00028 *    Misra-C changes done
    00029 * ---------------------------------------------------------------------------*/
    00030
    00031 #include "arm_math.h"
    00032
    00070 void arm_biquad_cascade_df2T_init_f32(
    00071   arm_biquad_cascade_df2T_instance_f32 * S,
    00072   uint8_t numStages,
    00073   float32_t * pCoeffs,
    00074   float32_t * pState)
    00075 {
    00076   /* Assign filter stages */
    00077   S->numStages = numStages;
    00078
    00079   /* Assign coefficient pointer */
    00080   S->pCoeffs = pCoeffs;
    00081
    00082   /* Clear state buffer and size is always 2 * numStages */
    00083   memset(pState, 0, (2u * (uint32_t) numStages) * sizeof(float32_t));
    00084
    00085   /* Assign state pointer */
    00086   S->pState = pState;
    00087 }
    00088

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines