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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

}<br />

}<br />

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

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

// implementation selected as default<br />

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

// fltOut contains step response of the filter<br />

fltOutBuf[ii] = GDFLIB_FilterFIR ((tFloat)(1), &Param, &State);<br />

4.7 Function GDFLIB_FilterIIR1Init_F32<br />

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

4.7.1 Declaration<br />

void GDFLIB_FilterIIR1Init_F32(GDFLIB_FILTER_IIR1_T_F32 *const pParam);<br />

4.7.2 Arguments<br />

Table 4-7. GDFLIB_FilterIIR1Init_F32 arguments<br />

Type Name Direction Description<br />

GDFLIB_FILTER_IIR1_<br />

T_F32 *const<br />

4.7.3 Return<br />

Function returns no value.<br />

4.7.4 Description<br />

pParam input,<br />

output<br />

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

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

buffers is required.<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 />

Chapter 4 API References<br />

Freescale Semiconductor, Inc. 167

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

Saved successfully!

Ooh no, something went wrong!