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.

4.69 Function GFLIB_Lut1D_FLT<br />

This function implements the one-dimensional look-up table.<br />

4.69.1 Declaration<br />

tFloat GFLIB_Lut1D_FLT(tFloat fltIn, const GFLIB_LUT1D_T_FLT *const pParam);<br />

4.69.2 Arguments<br />

Table 4-88. GFLIB_Lut1D_FLT arguments<br />

Type Name Direction Description<br />

tFloat fltIn input The abscissa <strong>for</strong> which 1D interpolation is per<strong>for</strong>med.<br />

const<br />

GFLIB_LUT1D_T_FLT<br />

*const<br />

4.69.3 Return<br />

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

look-up table function.<br />

The interpolated value from the look-up table.<br />

4.69.4 Description<br />

where:<br />

Equation GFLIB_Lut1D_Eq1<br />

Chapter 4 API References<br />

• y is the interpolated value<br />

• y 1 <strong>and</strong> y 2 are the function values at the beginning <strong>and</strong> the end of the researched<br />

interpolation interval<br />

• x 1 <strong>and</strong> x 2 are the values on the x-axis which determine the beginning <strong>and</strong> the end of<br />

the interpolation interval<br />

• the x is the input value provided to the function in the fltIn argument<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. 365

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

Saved successfully!

Ooh no, something went wrong!