/* Initialization function for the Q15 FIR lattice filter.  */
void arm_fir_lattice_init_q15(arm_fir_lattice_instance_q15 *S, uint16_t numStages, const q15_t *pCoeffs, q15_t *pState)
/* Initialization function for the Q15 FIR lattice filter.  */
void arm_fir_lattice_init_q15(arm_fir_lattice_instance_q15 *S, uint16_t numStages, const q15_t *pCoeffs, q15_t *pState)
{
  S->numStages = numStages;
  S->pCoeffs = pCoeffs;
  memset(pState, 0, (numStages) * sizeof(q15_t));
  S->pState = pState;
}