30.10.2014 Views

o_195h4n6al16jb186b1b2qs7fgssa.pdf

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

} IIRCanonicStruct;<br />

extern fractional* IIRCanonic (<br />

int numSamps,<br />

fractional* dstSamps,<br />

fractional* srcSamps,<br />

IIRCanonicStruct* filter<br />

);<br />

Arguments: Filter structure:<br />

numSectionsLess1 1 less than number of cascaded second<br />

order (biquadratic) sections (also S-1)<br />

coeffsBase pointer to filter coefficients (also {a, b}),<br />

either within X-Data or program memory<br />

coeffsPage coefficients buffer page number, or 0xFF00<br />

(defined value COEFFS_IN_DATA)if<br />

coefficients in data space<br />

delayBase pointer to filter delay (also d), onlyin Y-Data<br />

initialGain initial gain value<br />

finalShift output scaling (shift left)<br />

Filter Description:<br />

numSamps number of input samples to filter (also N)<br />

dstSamps pointer to destination samples (also y)<br />

srcSamps pointer to source samples (also x)<br />

filter pointer to IIRCanonicStructfilter structure<br />

Return Value: Pointer to base address of destination samples.<br />

Remarks: There are 5 coefficients per secondorder (biquadratic) sections<br />

arranged in the ordered set {a2[s], a1[s], b2[s], b1[s], b0[s]}, 0 ≤s

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!