03.08.2013 Views

Embedded Software and Motor Control Libraries for PXR40xx

Embedded Software and Motor Control Libraries for PXR40xx

Embedded Software and Motor Control Libraries for PXR40xx

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

4.15.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_F16 unless periodic clearing of filter<br />

buffers is required.<br />

4.15.5 Re-entrancy<br />

The function is re-entrant.<br />

4.15.6 Code Example<br />

#include "gdflib.h"<br />

GDFLIB_FILTER_IIR2_T_F16 f16trMyIIR2 = GDFLIB_FILTER_IIR2_DEFAULT_F16;<br />

void main(void)<br />

{<br />

// function returns no value<br />

GDFLIB_FilterIIR2Init_F16 (&f16trMyIIR2);<br />

}<br />

// function returns no value<br />

GDFLIB_FilterIIR2Init (&f16trMyIIR2, Define F16);<br />

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

// Available only if 16-bit fractional implementation selected<br />

// as default<br />

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

// function returns no value<br />

GDFLIB_FilterIIR2Init (&f16trMyIIR2);<br />

4.16 Function GDFLIB_FilterIIR2_F16<br />

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

4.16.1 Declaration<br />

Chapter 4 API References<br />

tFrac16 GDFLIB_FilterIIR2_F16(tFrac16 f16In, GDFLIB_FILTER_IIR2_T_F16 *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>PXR40xx</strong>, Rev. 1.0<br />

Freescale Semiconductor, Inc. 187

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

Saved successfully!

Ooh no, something went wrong!