/*
 * fx32_fir.c
 *
 *  Created on: 2013/05/02
 *      Author: takemasa
 */

#include "fx32_fir.h"

	/*
	 * FIR initialization routine.
	 *
	 * This routine have to be called once before involing fract32_fir() funciton.
	 */
void fract32_fir_init( TFIR32 *filter, int taps, fract32 * coeff, fract32 * delayline)
{
	int i;

		// Initialize the pointers and taps variable of filter object.
	filter->taps = taps;
	filter->coeff = coeff;
	filter->delayline = delayline;
	filter->headhead = delayline;

		// Initialize the internal state variable.
	for ( i= 0; i<taps; i++ )
		delayline[i] = 0;
}
