1.4.2.10 mchp_fir_decimate_init_f32()

mchp_status mchp_fir_decimate_init_f32 (mchp_fir_decimate_instance_f32 * S, uint16_t numTaps, uint8_t M, const float32_t * pCoeffs, float32_t * pState, uint32_t blockSize)

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

Parameters:
in,out S

Points to an instance of the single-precision floating-point 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 variable array

in blockSize

Number of samples to process

Returns:
  • MCHP_MATH_SUCCESS if success

  • MCHP_MATH_LENGTH_ERROR if blockSize is not a multiple of M