/* Initialization function for the Q31 sparse FIR filter.  */
void arm_fir_sparse_init_q31(arm_fir_sparse_instance_q31 *S, uint16_t numTaps, const q31_t *pCoeffs, q31_t *pState, int32_t *pTapDelay, uint16_t maxDelay, uint32_t blockSize)
/* Initialization function for the Q31 sparse FIR filter.  */
void arm_fir_sparse_init_q31(arm_fir_sparse_instance_q31 *S, uint16_t numTaps, const q31_t *pCoeffs, q31_t *pState, int32_t *pTapDelay, uint16_t maxDelay, uint32_t blockSize)
{
  S->numTaps = numTaps;
  S->pCoeffs = pCoeffs;
  S->pTapDelay = pTapDelay;
  S->maxDelay = maxDelay;
  S->stateIndex = 0U;
  memset(pState, 0, (maxDelay + blockSize) * sizeof(q31_t));
  S->pState = pState;
}