03.08.2013 Views

Embedded Software and Motor Control Libraries for PXS20xx

Embedded Software and Motor Control Libraries for PXS20xx

Embedded Software and Motor Control Libraries for PXS20xx

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Function GDFLIB_FilterIIR2_FLT<br />

4.17.4 Description<br />

This function clears the internal buffers of a second order IIR filter. The function shall be<br />

called after filter parameter initialization <strong>and</strong> whenever the filter initialization is required.<br />

Note<br />

This function shall not be called together with<br />

GDFLIB_FilterIIR2_FLT unless periodic clearing of filter<br />

buffers is required.<br />

4.17.5 Re-entrancy<br />

The function is re-entrant.<br />

4.17.6 Code Example<br />

#include "gdflib.h"<br />

GDFLIB_FILTER_IIR2_T_FLT flttrMyIIR2 = GDFLIB_FILTER_IIR2_DEFAULT_FLT;<br />

void main(void)<br />

{<br />

// function returns no value<br />

GDFLIB_FilterIIR2Init_FLT (&flttrMyIIR2);<br />

}<br />

// function returns no value<br />

GDFLIB_FilterIIR2Init (&flttrMyIIR2, Define FLT);<br />

// ##############################################################<br />

// Available only if single precision floating point<br />

// implementation selected as default<br />

// ##############################################################<br />

// function returns no value<br />

GDFLIB_FilterIIR2Init (&flttrMyIIR2);<br />

4.18 Function GDFLIB_FilterIIR2_FLT<br />

This function implements the second order IIR filter.<br />

4.18.1 Declaration<br />

tFloat GDFLIB_FilterIIR2_FLT(tFloat fltIn, GDFLIB_FILTER_IIR2_T_FLT *const pParam);<br />

<strong>Embedded</strong> <strong>Software</strong> <strong>and</strong> <strong>Motor</strong> <strong>Control</strong> <strong>Libraries</strong> <strong>for</strong> <strong>PXS20xx</strong>, Rev. 1.0<br />

192 Freescale Semiconductor, Inc.

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

Saved successfully!

Ooh no, something went wrong!