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.

Table 4-86. GFLIB_Lut1D_F16 arguments (continued)<br />

Type Name Direction Description<br />

const<br />

GFLIB_LUT1D_T_F16<br />

*const<br />

4.68.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.68.4 Description<br />

where:<br />

Equation GFLIB_Lut1D_Eq1<br />

• y is the interpolated value<br />

• y 1 <strong>and</strong> y 2 are the ordinate values at, respectively, the beginning <strong>and</strong> the end of the<br />

interpolating interval<br />

• x 1 <strong>and</strong> x 2 are the abscissa values at, respectively, the beginning <strong>and</strong> the end of the<br />

interpolating interval<br />

• the x is the input value provided to the function in the f16In argument<br />

The interpolating intervals are defined in the table provided by the pf16Table member of<br />

the parameters structure. The table contains ordinate values consecutively over the entire<br />

interpolating range. The abscissa values are assumed to be defined implicitly by a single<br />

interpolating interval length <strong>and</strong> a table index, while the interpolating index zero is the<br />

table element pointed to by the pf16Table parameter. The abscissa value is equal to the<br />

multiplication of the interpolating index <strong>and</strong> the interpolating interval length. For<br />

example, let's consider the following interpolating table:<br />

Table 4-87. GFLIB_Lut1D example table<br />

ordinate (y) interpolating index abscissa (x)<br />

-0.5 -1 -1*(2 -1 )<br />

pf16Table 0.0 0 0*(2 -1 )<br />

0.25 1 1*(2 -1 )<br />

Table continues on the next page...<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. 361

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

Saved successfully!

Ooh no, something went wrong!