40#ifndef __INCLUDE_FILTERS_FIR_DECIMATOR_H
41#define __INCLUDE_FILTERS_FIR_DECIMATOR_H
50#include <nuttx/config.h>
52#ifdef CONFIG_EXTERNALS_CMSIS_DSP
62 arm_fir_decimate_instance_f32 inst;
63} decimator_instancef_t;
68#error "FIR filter needs CMSIS DSP library"
72# define EXTERN extern "C"
102 int tr_width,
int blocksz);
118 int taps,
int blocksz);
133 float *output,
int output_len);
void decimator_deletef(decimator_instancef_t *dec)
int decimator_executef(decimator_instancef_t *dec, float *input, int input_len, float *output, int output_len)
decimator_instancef_t * create_decimatorf(int fs, int dec_factor, int tr_width, int blocksz)
int decimator_tapnumf(decimator_instancef_t *dec)
decimator_instancef_t * create_decimatorf_tap(int fs, int dec_factor, int taps, int blocksz)