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.

}<br />

flttrMyIIR1.trFiltCoeff.fltB0 = (tFloat)(0.030468747091254);<br />

flttrMyIIR1.trFiltCoeff.fltB1 = (tFloat)(0.030468747091254);<br />

flttrMyIIR1.trFiltCoeff.fltA1 = (tFloat)(-0.939062505817492);<br />

// output should be 0.007617<br />

GDFLIB_FilterIIR1Init_FLT (&flttrMyIIR1);<br />

fltOut = GDFLIB_FilterIIR1_FLT (fltIn, &flttrMyIIR1);<br />

// output should be 0.007617<br />

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

fltOut = GDFLIB_FilterIIR1 (fltIn, &flttrMyIIR1, Define FLT);<br />

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

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

// implementation selected as default<br />

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

// output should be 0.007617<br />

GDFLIB_FilterIIR1Init (&flttrMyIIR1);<br />

fltOut = GDFLIB_FilterIIR1 (fltIn, &flttrMyIIR1);<br />

4.13 Function GDFLIB_FilterIIR2Init_F32<br />

This function initializes the Second order IIR filter buffers.<br />

4.13.1 Declaration<br />

void GDFLIB_FilterIIR2Init_F32(GDFLIB_FILTER_IIR2_T_F32 *const pParam);<br />

4.13.2 Arguments<br />

Table 4-13. GDFLIB_FilterIIR2Init_F32 arguments<br />

Type Name Direction Description<br />

GDFLIB_FILTER_IIR2_<br />

T_F32 *const<br />

4.13.3 Return<br />

Function returns no value.<br />

pParam input,<br />

output<br />

Chapter 4 API References<br />

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

parameters.<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. 181

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

Saved successfully!

Ooh no, something went wrong!