⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fir32.c

📁 freescale MAC DSP的算法库(FFT
💻 C
字号:
/**
 * Copyright (c) 2005, Freescale Semiconductor
 * Freescale Confidential Proprietary
 *
 * File name   : fir32.c
 * Project name: Mazatlan
 *
 * Author(s)   : Jaime Herrero
 *               Luis Reynoso
 * Department  : Guadalajara Applications Laboratory - RTAC Americas
 *
 * Description : fir32 Creation and Destruction 
 *               
 * History     :
 * 05/03/2005  : Created (A19257).
 */


#include "fir32.h"
#include "Memory\memalloc.h"

struct tFir32Struct* FIR32Create( Frac32* pCoef, uint16 u16Num){
    struct tFir32Struct* pFIR;
    
  	pFIR=(struct tFir32Struct*)memalloc(sizeof( struct tFir32Struct));
  	pFIR->pFirCoef=pCoef;
 	pFIR->iFirCoefCount=u16Num;
 	pFIR->pFirHistory=(Frac32*)memalloc((u16Num-1)*sizeof(Frac32));

    pFIR->iFirHistoryCount=0;

    return pFIR;    
}
	
void FIR32Destroy( struct tFir32Struct* pFIR){
    memfree (pFIR->pFirHistory);
    memfree (pFIR);
    return;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -