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.

F32);<br />

}<br />

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

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

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

{<br />

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

f32OutBuf[ii] = GDFLIB_FilterFIR_F32 (FRAC32 (1.0), &Param, &State);<br />

}<br />

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

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

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

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

// as default<br />

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

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

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

4.3 Function GDFLIB_FilterFIRInit_F16<br />

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

4.3.1 Declaration<br />

void GDFLIB_FilterFIRInit_F16(const GDFLIB_FILTERFIR_PARAM_T_F16 *const pParam,<br />

GDFLIB_FILTERFIR_STATE_T_F16 *const pState, tFrac16 *pInBuf);<br />

4.3.2 Arguments<br />

Table 4-3. GDFLIB_FilterFIRInit_F16 arguments<br />

Type Name Direction Description<br />

const<br />

GDFLIB_FILTERFIR_P<br />

ARAM_T_F16 *const<br />

GDFLIB_FILTERFIR_S<br />

TATE_T_F16 *const<br />

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

pState input,<br />

output<br />

tFrac16 * pInBuf input,<br />

output<br />

Pointer to the 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 a 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. 155

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

Saved successfully!

Ooh no, something went wrong!