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.

Function GDFLIB_FilterIIR2_F32<br />

4.13.4 Description<br />

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

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_F32 unless periodic clearing of filter<br />

buffers is required.<br />

4.13.5 Re-entrancy<br />

The function is re-entrant.<br />

4.13.6 Code Example<br />

#include "gdflib.h"<br />

GDFLIB_FILTER_IIR2_T_F32 f32trMyIIR2 = GDFLIB_FILTER_IIR2_DEFAULT_F32;<br />

void main(void)<br />

{<br />

// function returns no value<br />

GDFLIB_FilterIIR2Init_F32 (&f32trMyIIR2);<br />

}<br />

// function returns no value<br />

GDFLIB_FilterIIR2Init (&f32trMyIIR2, Define F32);<br />

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

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

// as default<br />

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

// function returns no value<br />

GDFLIB_FilterIIR2Init (&f32trMyIIR2);<br />

4.14 Function GDFLIB_FilterIIR2_F32<br />

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

4.14.1 Declaration<br />

tFrac32 GDFLIB_FilterIIR2_F32(tFrac32 f32In, GDFLIB_FILTER_IIR2_T_F32 *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 />

182 Freescale Semiconductor, Inc.

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

Saved successfully!

Ooh no, something went wrong!