/* ======================================================================== */
/*                                                                          */
/*  TEXAS INSTRUMENTS, INC.                                                 */
/*                                                                          */
/*  NAME                                                                    */
/*      DSPF_sp_fircirc: Circulary addressed fir filter                     */
/*                                                                          */
/* USAGE                                                                    */
/*                                                                          */
/*    This routine has following C prototype:                               */
/*                                                                          */
/*    void DSPF_sp_fircirc (float *x, float *h, float *r, int index,        */
/*                     int csize, int nh, int nr)                           */
/*                                                                          */
/*            x[]     :     Input array (circular buffer of 2^(csize+1)     */
/*                      bytes)                                              */
/*                          Must be aligned at 2^(csize+1) byte boundary    */
/*            h[nh]   :     Filter coefficients array                       */
/*                          Must be double-word aligned                     */
/*            r[nr]   :     Output array                                    */
/*            index   :     Offset by which to start reading from the       */
/*                      input array. Must be multiple of 2                  */
/*            csize   :     Size of circular buffer x[] is 2^(csize+1)      */
/*                      bytes. Must be 2 <= csize <= 31.                    */
/*            nh      :     Number of filter coefficients                   */
/*                          Must be multiple of 2 and >= 4                  */
/*            nr      :     Size of output array                            */
/*                          Must be multiple of 4                           */
/*                                                                          */
/* DESCRIPTION                                                              */
/*    This routine implements a circularly addressed FIR filter.            */
/*    'nh' is the number of filter coefficients. 'nr' is the number         */
/*    of the output samples.                                                */
/*                                                                          */
/* ------------------------------------------------------------------------ */
/*            Copyright (c) 2003 Texas Instruments, Incorporated.           */
/*                           All Rights Reserved.                           */
/* ======================================================================== */

#ifndef DSPF_SP_FIRCIRC
#define DSPF_SP_FIRCIRC 1

void DSPF_sp_fircirc(
					float x[],	//Pointer to input samples
					float h[],	//Pointer to impulse response samples
					float r[],	//Pointer to output samples
					int index,	//Offset by which to start reading from input array
					int csize,	//Size of circular buffer for input is 2^(csize+1) bytes
					int nh,		//Number of impulse response samples
					int nr		//Number of output samples
				);
				
#endif
/* ======================================================================== */
/*  End of file:  dspf_sp_fircirc.h                                         */
/* ------------------------------------------------------------------------ */
/*            Copyright (c) 2003 Texas Instruments, Incorporated.           */
/*                           All Rights Reserved.                           */
/* ======================================================================== */