You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

filter_fir.md 849B

123456789101112131415161718
  1. filter_fir 140418
  2. Filters the audio stream using FIR coefficients supplied by the user.
  3. The ARM library has two q15 functions which perform an FIR filter. One uses
  4. a 64-bit accumulator (arm_fir_q15) and the other uses a 32-bit accumulator
  5. (arm_fir_fast_q15). When instantiating a filter a boolean argument specifies
  6. which version to use. Specifying USE_FAST_FIR (defined as boolean true) uses
  7. the fast code otherwise the slower code is used. For example:
  8. AudioFilterFIR myFilterL(USE_FAST_FIR);
  9. void begin(short *cp,int n_coeffs)
  10. Starts the filter using coefficients at *cp and the number of coefficients
  11. is n_coeffs. The special value FIR_PASSTHRU can be used in place of the
  12. address of the coefficient array, in which case the function will just pass
  13. audio samples through without filtering.
  14. void stop(void)
  15. Stops the filter.