TFilter link is broken. (Audio design tool Description for FIR filter)

I've updated the link. Thanks. :)

You are welcome, just trying to contribute.

Also, I posted this question and solved it this morning, but the TFilter requires an even numbered filter array from the various tests I did. Could you include that in the notes as well to help young players such as myself?

Here is the code that I think proves my observations:

From filter_fir.h

Code:
		// Initialize FIR instance (ARM DSP Math Library)
		if (coeff_p && (coeff_p != FIR_PASSTHRU) && n_coeffs <= FIR_MAX_COEFFS) {
			arm_fir_init_q15(&fir_inst, n_coeffs, (q15_t *)coeff_p,
				&StateQ15[0], AUDIO_BLOCK_SAMPLES);
		}

From arm_math.h

Code:
  /**
   * @brief  Initialization function for the Q15 FIR filter.
   * @param[in,out] *S points to an instance of the Q15 FIR filter structure.
   * @param[in] numTaps  Number of filter coefficients in the filter. Must be even and greater than or equal to 4.
   * @param[in] *pCoeffs points to the filter coefficients.
   * @param[in] *pState points to the state buffer.
   * @param[in] blockSize number of samples that are processed at a time.
   * @return The function returns ARM_MATH_SUCCESS if initialization was successful or ARM_MATH_ARGUMENT_ERROR if
   * <code>numTaps</code> is not a supported value.
   */

  arm_status arm_fir_init_q15(
  arm_fir_instance_q15 * S,
  uint16_t numTaps,
  q15_t * pCoeffs,
  q15_t * pState,
  uint32_t blockSize);
 
Back
Top