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.11.2 Arguments<br />

Table 4-11. GDFLIB_FilterIIR1Init_FLT arguments<br />

Type Name Direction Description<br />

GDFLIB_FILTER_IIR1_<br />

T_FLT *const<br />

4.11.3 Return<br />

Function returns no value.<br />

4.11.4 Description<br />

pParam input,<br />

output<br />

Pointer to a filter structure with filter buffer <strong>and</strong> filter<br />

parameters. Arguments of the structure contain single<br />

precision floating point values.<br />

This function clears the internal buffers of a first 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_FilterIIR1_FLT unless periodic clearing of filter<br />

buffers is required.<br />

4.11.5 Re-entrancy<br />

The function is re-entrant.<br />

4.11.6 Code Example<br />

#include "gdflib.h"<br />

GDFLIB_FILTER_IIR1_T_FLT flttrMyIIR1 = GDFLIB_FILTER_IIR1_DEFAULT_FLT;<br />

void main(void)<br />

{<br />

// function returns no value<br />

GDFLIB_FilterIIR1Init_FLT (&flttrMyIIR1);<br />

// function returns no value<br />

GDFLIB_FilterIIR1Init (&flttrMyIIR1, Define FLT);<br />

Chapter 4 API References<br />

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

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

// implementation selected as default<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. 177

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

Saved successfully!

Ooh no, something went wrong!