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.

Figure 4-24. atan(x) vs. GFLIB_Atan_FLT(fltIn)<br />

Note<br />

The input value is assumed to be in the interval (-2 128 , 2 128 ).<br />

The function call is slightly different from common approach in<br />

the library set. The function can be called in four different<br />

ways:<br />

• With implementation postfix (i.e. GFLIB_Atan_FLT(fltIn,<br />

&pParam)), where the &pParam is pointer to<br />

approximation coefficients. In case the default<br />

approximation coefficients are used, the &pParam must be<br />

replaced with GFLIB_ATAN_DEFAULT_FLT symbol.<br />

The &pParam parameter is m<strong>and</strong>atory.<br />

• With additional implementation parameter (i.e.<br />

GFLIB_Atan(fltIn, &pParam, FLT), where the &pParam is<br />

pointer to approximation coefficients. In case the default<br />

approximation coefficients are used, the &pParam must be<br />

replaced with GFLIB_ATAN_DEFAULT_FLT symbol.<br />

The &pParam parameter is m<strong>and</strong>atory.<br />

• With preselected default implementation (i.e.<br />

GFLIB_Atan(fltIn, &pParam), where the &pParam is<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. 245

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

Saved successfully!

Ooh no, something went wrong!