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.

4.70.2 Arguments<br />

Table 4-89. GFLIB_Lut2D_F32 arguments<br />

Type Name Direction Description<br />

tFrac32 f32In1 input First input variable <strong>for</strong> which 2D interpolation is per<strong>for</strong>med.<br />

tFrac32 f32In2 input Second input variable <strong>for</strong> which 2D interpolation is per<strong>for</strong>med.<br />

const<br />

GFLIB_LUT2D_T_F32<br />

*const<br />

4.70.3 Return<br />

pParam input Pointer to the parameters structure with parameters of the two<br />

dimensional look-up table function.<br />

The interpolated value from the look-up table with 16-bit accuracy.<br />

4.70.4 Description<br />

The GFLIB_Lut2D_F32 function per<strong>for</strong>ms two dimensional linear interpolation over a<br />

2D table of data.<br />

The following interpolation <strong>for</strong>mulas are used:<br />

where:<br />

Equation GFLIB_Lut2D_Eq1<br />

Equation GFLIB_Lut2D_Eq2<br />

Equation GFLIB_Lut2D_Eq3<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. 369

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

Saved successfully!

Ooh no, something went wrong!