forked from parallella/pal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
p_firint.c
31 lines (27 loc) · 877 Bytes
/
p_firint.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <pal.h>
/**
* Computes a interpolating FIR filter (direct-form) on input data 'x' using
* coefficient stored in 'h' and places result in 'r'. This function
* retains the address of the delay filter memory containing the previous
* delayed values to allow consecutive processing of blocks.
*
* @param x Pointer to input vector of 'nx' elements
*
* @param h Pointer to 'nh' filter coefficients
*
* @param r Output vector of size 'nx*ifactor'
*
* @param nx The number of input samples
* @param nh The number of coefficients of the filter
*
* @param ifactor Interpolation factor. 'ifactor' output samples produced
* for every 1 input sample
*
* @return None
*
*/
void p_firint_f32(const float *x, const float *h, float *r, int nx, int nh,
int ifactor)
{
/*PLACE CODE HERE*/
}