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.147 Function MLIB_MacSat_F32F16F16<br />

This function implements the multiply accumulate function saturated if necessary.<br />

4.147.1 Declaration<br />

tFrac32 MLIB_MacSat_F32F16F16(register tFrac32 f32In1, register tFrac16 f16In2, register<br />

tFrac16 f16In3);<br />

4.147.2 Arguments<br />

Table 4-184. MLIB_MacSat_F32F16F16 arguments<br />

Type Name Direction Description<br />

register tFrac32 f32In1 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.147.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.147.4 Description<br />

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

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

fractional values, second <strong>and</strong> third input values are considered as 16-bit fractional values.<br />

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

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

The output of the function is defined by the following simple equation:<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. 609

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

Saved successfully!

Ooh no, something went wrong!