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.148.2 Arguments<br />

Table 4-185. MLIB_MacSat_F16 arguments<br />

Type Name Direction Description<br />

register tFrac16 f16In1 input Input value to be add.<br />

register tFrac16 f16In2 input First value to be multiplied.<br />

register tFrac16 f16In3 input Second value to be multiplied.<br />

4.148.3 Return<br />

Multiplied second <strong>and</strong> third input value with adding of first input value. The output value<br />

is saturated if necessary.<br />

4.148.4 Description<br />

This inline function returns the multiplied second <strong>and</strong> third input value with adding of<br />

first input value. The input values as well as output value is considered as 16-bit<br />

fractional values. The output saturation is implemented in this function, thus in case the<br />

output value is outside the (-1, 1) interval, the output value is limited to the boundary<br />

value.<br />

The output of the function is defined by the following simple equation:<br />

Equation MLIB_MacSat_Eq1<br />

Note<br />

Due to effectivity reason this function is implemented as inline<br />

<strong>and</strong> thus is not ANSI-C compliant.<br />

4.148.5 Re-entrancy<br />

The function is re-entrant.<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. 611

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

Saved successfully!

Ooh no, something went wrong!