1.4.2.11 mchp_fir_decimate_init_q31()

mchp_status mchp_fir_decimate_init_q31 (mchp_fir_decimate_instance_q31 * S, uint16_t numTaps, uint8_t M, const q31_t * pCoeffs, q31_t * pState, uint32_t blockSize)

Initialization function for the Q31 FIR decimator.

Parameters:
in,out S

points to an instance of the Q31 FIR decimator structure

in numTaps

number of coefficients in the filter

in M

decimation factor

in pCoeffs

points to the filter coefficients

in pState

points to the state buffer

in blockSize

number of input samples to process per call

Returns:
execution status
  • MCHP_MATH_SUCCESS : Operation successful

  • MCHP_MATH_LENGTH_ERROR : blockSize is not a multiple of M