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.

Function GFLIB_Lut2D_FLT<br />

4.72.2 Arguments<br />

Table 4-93. GFLIB_Lut2D_FLT arguments<br />

Type Name Direction Description<br />

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

Input value is in single precision floating data <strong>for</strong>mat.<br />

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

Input value is in single precision floating data <strong>for</strong>mat.<br />

const<br />

GFLIB_LUT2D_T_FLT<br />

*const<br />

4.72.3 Return<br />

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

dimensional look-up table function.<br />

The function returns the interpolated value. The output value is in single precision<br />

floating point <strong>for</strong>mat.<br />

4.72.4 Description<br />

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

2D table of data.<br />

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

Equation GFLIB_Lut2D_Eq1<br />

Equation GFLIB_Lut2D_Eq2<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 />

382 Freescale Semiconductor, Inc.

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

Saved successfully!

Ooh no, something went wrong!