📄 dspf_sp_fir_gen.h
字号:
/* ======================================================================== */
/* TEXAS INSTRUMENTS, INC. */
/* */
/* NAME */
/* DSPF_sp_fir_gen -- Single Precision Generic FIR filter */
/* */
/* USAGE */
/* */
/* This routine is C Callable and can be called as: */
/* */
/* void DSPF_sp_fir_gen(const float *x, const float *h, */
/* float * restrict r,int nh, int nr); */
/* */
/* x : Pointer to array holding the input floating point array */
/* h : Pointer to array holding the coefficient floating point */
/* array */
/* r : Pointer to output array */
/* nh: Number of coefficents */
/* nr: Number of output values */
/* */
/* DESCRIPTION */
/* */
/* This routine implements a block FIR filter. There are "nh" */
/* filter coefficients, "nr" output samples, and "nh+nr-1" */
/* input samples. The coefficients need to be placed in the "h" */
/* array in reverse order {h(nh-1), ... , h(1), h(0)} and the */
/* array "x" starts at x(-nh+1) and ends at x(nr-1). The */
/* routine calculates y(0) through y(nr-1) using the following */
/* formula: */
/* */
/* r(n) = h(0)*x(n) + h(1)*x(n-1) + ... + h(nh-1)*x(n-nh+1) */
/* */
/* where n = {0, 1, ... , nr-1}. */
/* ------------------------------------------------------------------------ */
/* Copyright (c) 2003 Texas Instruments, Incorporated. */
/* All Rights Reserved. */
/* ======================================================================== */
#ifndef DSPF_SP_FIR_GEN_
#define DSPF_SP_FIR_GEN_ 1
void DSPF_sp_fir_gen(
const float * restrict x,
const float * restrict h,
float * restrict r,
int nh,
int nr
);
#endif
/* ======================================================================== */
/* End of file: dspf_sp_fir_gen.h */
/* ------------------------------------------------------------------------ */
/* Copyright (C) 2003 Texas Instruments, Incorporated. */
/* All Rights Reserved. */
/* ======================================================================== */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -