35 #define BUFFSIZE (NUMBLOCKS * BLOCKSIZE) 52 fprintf(stderr,
"Failed to initialise Ne10.\n");
61 fprintf(stderr,
"Failed to initialise FIR instance structure.\n");
66 for (
int i = 0; i <
NUMTAPS; i++)
86 printf(
"Coefficients:\n");
87 for (
int i = NUMTAPS - 1; i >= 0; i--)
89 printf(
"\tb[%d] = %5.4f\n", NUMTAPS - (i + 1), coeffs[i]);
93 printf(
"IN[%2d]: %9.4f\t", i, src[i]);
94 printf(
"OUT[%2d]: %9.4f\n", i, dst[i]);
ne10_result_t ne10_fir_init_float(ne10_fir_instance_f32_t *S, ne10_uint16_t numTaps, ne10_float32_t *pCoeffs, ne10_float32_t *pState, ne10_uint32_t blockSize)
Instance structure for the floating-point FIR filter.
ne10_result_t ne10_init(void)
int fir_sample_main(void)
void(* ne10_fir_float)(const ne10_fir_instance_f32_t *S, ne10_float32_t *pSrc, ne10_float32_t *pDst, ne10_uint32_t blockSize)