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.

F16);<br />

}<br />

GDFLIB_FilterFIRInit (&Param, &State, &f16InBuf[0]);<br />

// Compute step response of the filter<br />

<strong>for</strong>(ii=0; ii < OUT_LEN; ii++)<br />

{<br />

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

f16OutBuf[ii] = GDFLIB_FilterFIR_F16 (FRAC16 (1.0), &Param, &State);<br />

}<br />

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

f16OutBuf[ii] = GDFLIB_FilterFIR (FRAC16 (1.0), &Param, &State, Define<br />

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

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

// as default<br />

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

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

f16OutBuf[ii] = GDFLIB_FilterFIR (FRAC16 (1.0), &Param, &State);<br />

4.5 Function GDFLIB_FilterFIRInit_FLT<br />

This function initializes the FIR filter buffers.<br />

4.5.1 Declaration<br />

void GDFLIB_FilterFIRInit_FLT(const GDFLIB_FILTERFIR_PARAM_T_FLT *const pParam,<br />

GDFLIB_FILTERFIR_STATE_T_FLT *const pState, tFloat *pInBuf);<br />

4.5.2 Arguments<br />

Table 4-5. GDFLIB_FilterFIRInit_FLT<br />

arguments<br />

Type Name Direction Description<br />

const<br />

GDFLIB_FILTERFIR_P<br />

ARAM_T_FLT *const<br />

GDFLIB_FILTERFIR_S<br />

TATE_T_FLT *const<br />

pParam input Pointer to a parameters structure.<br />

pState input,<br />

output<br />

tFloat * pInBuf input,<br />

output<br />

Pointer to a state structure.<br />

Chapter 4 API References<br />

Pointer to a buffer <strong>for</strong> storing filter input signal values, must<br />

point to a R/W memory region <strong>and</strong> must be the filter order + 1<br />

long.<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. 161

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

Saved successfully!

Ooh no, something went wrong!