1.4.2.17 mchp_fir_interpolate_init_f32()

mchp_status mchp_fir_interpolate_init_f32 (mchp_fir_interpolate_instance_f32 * S, uint8_t L, uint16_t numTaps, const float32_t * pCoeffs, float32_t * pState, uint32_t blockSize)

Initialization function for the single-precision floating-point FIR interpolator.

Parameters:
in,out S

Points to an instance of the single-precision floating-point FIR interpolator structure

in L

Upsample factor

in numTaps

Number of filter coefficients in the filter

in pCoeffs

Points to the filter coefficient array

in pState

Points to the state variable array

in blockSize

Number of input samples to process per call

Returns:
  • MCHP_MATH_SUCCESS if initialization is successful

  • MCHP_MATH_LENGTH_ERROR if the filter length numTaps is not a multiple of the interpolation factor L.